Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Django 1.8 #166

Open
merenbach opened this issue May 1, 2015 · 1 comment
Open

Upgrade to Django 1.8 #166

merenbach opened this issue May 1, 2015 · 1 comment

Comments

@merenbach
Copy link
Contributor

Django 1.8 is a long-term support release:

Additionally, the Django team will occasionally designate certain releases to be “Long-term support” (LTS) releases. LTS releases will get security and data loss fixes applied for a guaranteed period of time, typically 3+ years, regardless of the pace of releases afterwards.

Some changes include how the Django template system is configured in settings.py. Since development environments will ideally work with the same settings.py as production, a general path could be:

  1. Create a new app in Django 1.8. Customize default directory names as desired.
  2. Merge in "global" settings to settings.py. These apply regardless of whether the program is running in development, production, etc.
  3. Set up settings.py to read environmental vars from a .env file, which can be in place on production and staging servers as well as local boxes. This would contain things like secret keys, mail server credentials, etc. A default file under source control (say sample.env) should be "copyable" to .env with little to no tweaking to get a local install up and running.
  4. Update settings.py with new settings names and formats. Template configuration has been refactored, for instance.
  5. Update source to fix deprecated code.
  6. Perform whatever testing is required prior to being production ready.
@bestan
Copy link
Collaborator

bestan commented Aug 12, 2015

After the upgrade is completed, it's worth replacing django-aggregate-if dependency introduced in https://github.com/bestan/mchp-dev/commit/37e0eff9c84fefaafc29a6843143b6be5c519edb with https://docs.djangoproject.com/en/1.8/ref/models/conditional-expressions/#conditional-aggregation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants