Using a custom settings.py in Docker

61 views
Skip to first unread message

Pepe Silvia

unread,
Dec 7, 2016, 10:28:09 AM12/7/16
to sal-discuss

Everytime I try attaching a custom settings.py I end up breaking nginx - 502 Bad Gateway.  Just want to make sure I'm not crazy (this is for Sal 3.0 btw)

I attach the file to the container like so:

-v /path_to_local_file/settings.py:/home/docker/sal/sal/settings.py \

Where can I get a template for the settings.py that can be edited?  Is that the same file as the system_settings.py https://raw.githubusercontent.com/salopensource/sal/master/sal/system_settings.py ?

Graham Gilbert

unread,
Dec 7, 2016, 10:33:36 AM12/7/16
to sal-d...@googlegroups.com

A more complete option without using environment variables is at https://github.com/salopensource/sal/blob/master/sal/example_settings.py

Sent from my iPhone




--
You received this message because you are subscribed to the Google Groups "sal-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sal-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pepe Silvia

unread,
Dec 7, 2016, 12:04:44 PM12/7/16
to sal-discuss
Thanks Graham!  It looks a lot different than the one I'm used to when setting Timezone for example.  Do you know if this would have support for plugins such as Unathorized admins?

Graham Gilbert

unread,
Dec 7, 2016, 12:45:22 PM12/7/16
to sal-d...@googlegroups.com
Yes, a settings file is where things like that go. 

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages