Browse Source

Use local_settings only if it exists.

Daniel Perelman 1 month 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 @@
1 1
 #!/bin/sh
2 2
 
3
-export DJANGO_SETTINGS_MODULE=camera_site.local_settings
3
+if [ -f camera_site/local_settings.py ]
4
+then
5
+    export DJANGO_SETTINGS_MODULE=camera_site.local_settings
6
+fi
7
+
4 8
 daphne -u site.sock camera_site.asgi:application
5 9
 

Loading…
Cancel
Save