From 8ad75a0c4186c1c3ba8335f7187967e428d80ba8 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 19 Apr 2016 17:04:58 +0200 Subject: [PATCH] The local server can now be started with the manager instead --- README.md | 5 +++-- config.sample.py | 3 ++- run.py | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 run.py diff --git a/README.md b/README.md index e894657..f82f3c9 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,11 @@ List of available configuration options: | Name | Description | | ---- | ----------- | -| `SQLALCHEMY_DATABASE_URI` | Database connection string. e.g: `postgresql://user:password@localhost/photowall` +| `SQLALCHEMY_DATABASE_URI` | Database connection string. e.g: `postgresql://user:password@localhost/photowall` | +| `DEBUG` | Enable/disable debug mode ## Getting started Starting the application: -`$ python run.py` \ No newline at end of file +`$ python manage.py runserver` \ No newline at end of file diff --git a/config.sample.py b/config.sample.py index 98e0b48..de45af9 100644 --- a/config.sample.py +++ b/config.sample.py @@ -1,2 +1,3 @@ SQLALCHEMY_DATABASE_URI = 'postgresql://user:password@host/db_name' -SQLALCHEMY_TRACK_MODIFICATIONS = True \ No newline at end of file +SQLALCHEMY_TRACK_MODIFICATIONS = True +DEBUG = True \ No newline at end of file diff --git a/run.py b/run.py deleted file mode 100644 index 0996ddb..0000000 --- a/run.py +++ /dev/null @@ -1,2 +0,0 @@ -from api import app -app.run(debug=True) \ No newline at end of file