Closed lsetiawan closed 7 years ago
Yeah, I've been having some issues with the YAML file on the servers. Should this PR remove that file? How does it know if it's using the dev or prod settings?
@miguelcleon On wsgi.py simply use os.environ.setdefault("DJANGO_SETTINGS_MODULE", "templatesAndSettings.settings.development")
or os.environ.setdefault("DJANGO_SETTINGS_MODULE", "templatesAndSettings.settings.production")
or if you are testing run python manage.py runserver --settings='templatesAndSettings.settings.development'
etc
can you change the wsgi.py file to use the development settings then for this PR?
These are some changes to improve the ODM2Admin further. After some research on how others are packaging their settings for the Django App, I've changed how settings configuration are set. There is now a settings module and dev and prod can have different settings while there is a base settings for both. I don't know if you like it this way, but though I should give you the option.. not sure how much I like the whole YAML file settings. Let me know what you think, Thanks.