It appears settings.py is usually not placed in the root.
Moves settings-sample.py, updates manage.py and README
This commit is contained in:
1 parent
4b5ebf27f6
commit
0577a9407c
3 files changed
+2
-2
No files matched your search
@@ -10,7 +10,7 @@ Setup environment:
|
|||||||
(venv)mdb$ pip install -r requirements.txt
|
(venv)mdb$ pip install -r requirements.txt
|
||||||
|
|
||||||
Create a config file:
|
Create a config file:
|
||||||
mdb$ cp settings-sample.py settings.py
|
mdb$ cp mdb/settings-sample.py mdb/settings.py
|
||||||
# Edit settings.py with your favorite editor
|
# Edit settings.py with your favorite editor
|
||||||
|
|
||||||
Run the server:
|
Run the server:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mdb.settings")
|
||||||
|
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user