November 2015
Beginner to intermediate
840 pages
26h 30m
English
If you try to run Django’s development server, Django will inform you it doesn’t know where the settings file is anymore. When we invoke it, we can inform Djange of our dev.py file by specifying the settings flag, as shown in Example 29.22.
Example 29.22: Shell Code
$ ./manage.py runserver --settings=suorganizer.settings.dev
Specifying the flag in each and every call to management commands is undesirable. Instead, in Example 29.23, we can set the DJANGO_SETTINGS_MODULE environment variable, which Django will use instead.
Example 29.23: Shell Code
export DJANGO_SETTINGS_MODULE=suorganizer.settings.dev $ ./manage.py runserver
Our development ...
Read now
Unlock full access