ODM2 / CZ-Manager

CZ Manager (formerly ODM2 Admin) is an application for site level data management of environmental observations using Observation Data Model 2 (ODM2) for documentation and a detailed walkthrough see:
http://odm2.github.io/CZ-Manager
MIT License
9 stars 12 forks source link

Added method link in views and extension properties inline in sampling features... #110

Closed lsetiawan closed 7 years ago

lsetiawan commented 7 years ago

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.

miguelcleon commented 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?

lsetiawan commented 7 years ago

@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

miguelcleon commented 7 years ago

can you change the wsgi.py file to use the development settings then for this PR?