Use local_settings only if it exists.
parent
3818ecd836
commit
df77477ad0
@ -1,5 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/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
|
daphne -u site.sock camera_site.asgi:application
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue