Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added note on DJANGO_SETTINGS_MODULE

...

Code Block
languagebash
# Settings files 
ls -l nephwork/settings
total 20
-rw-r--r--. 1 nephwork nephwork 3975 Nov 25 16:32 base.py
-rw-r--r--. 1 nephwork nephwork   29 Nov 25 16:32 __init__.py
-rw-r--r--. 1 nephwork nephwork  429 Nov 25 16:32 local.py
-rw-r--r--. 1 nephwork nephwork 1213 Nov 25 16:32 production.py

# Configure productions settings
export DJANGO_SETTINGS_MODULE=nephwork.settings.production


Note

Note the environment needs setting before running the start script to ensure the correct settings file is picked up 

export DJANGO_SETTINGS_MODULE=nephwork.settings.production;/home/nephwork/bin/nephwork start 


The site is managed using a script in  /home/nephwork/bin/nephwork  which takes commands start, stop, force-reload/restart 

...