Closed matthewhanson closed 9 years ago
Ok, this was just a default generated settings file from the geonode_project, I haven't changed it.
Any idea how, or even if, the WSGI_APPLICATION setting is used?
I think it's used when running the Geonode project in production somehow.
Il giovedì 18 giugno 2015, Matthew Hanson notifications@github.com ha scritto:
Any idea how, or even if, the WSGI_APPLICATION setting is used?
— Reply to this email directly or view it on GitHub https://github.com/terranodo/landscapeportal/issues/1#issuecomment-113136313 .
Simone
Settings files added, for master site and a template for a GeoSite.
There is pre_settings and post_settings. Each site first loads pre_settings, then sets site specific variables (e.g., SITE_ID, SITE_NAME), then loads post_settings.
The geonode project has this as individual settings:
Now I haven't tried this in a while, but when I had a multi-tenancy GeoNode running I did this:
Notice the execfile statement. This allows another site file to be included into the current settings as if it were there to begin with. Then, individual keys of dictionaries can be overridden without having to respecify the entire block. I'll add an example of a master_settings file and a site settings file.
The master settings file in turn starts with the base geonode settings file. Once I get some examples we can talk about which things should be able to be changed per site.
As an aside, what is the WSGI_APPLICATION setting used for? Since that has to be set after setting the settings file itself, I'm not sure why it would be needed.