Browse Source

Use local_settings only if it exists.

tags/blog-initial
Daniel Perelman 3 months ago
parent
commit
df77477ad0
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      run_daphne.sh

+ 5
- 1
run_daphne.sh View File

@@ -1,5 +1,9 @@
#!/bin/sh

export DJANGO_SETTINGS_MODULE=camera_site.local_settings
if [ -f camera_site/local_settings.py ]
then
export DJANGO_SETTINGS_MODULE=camera_site.local_settings
fi

daphne -u site.sock camera_site.asgi:application


Loading…
Cancel
Save