theirc / CTS

Commodity Tracking System (CTS) built by The International Rescue Committee (IRC)
BSD 3-Clause "New" or "Revised" License
24 stars 6 forks source link

[26] Django 1.8 #27

Closed dpoirier closed 8 years ago

dpoirier commented 8 years ago

Upgrade from Django 1.7 (now out of support) to Django 1.8 (Long Term Support)

Fixes #26

vkurup commented 8 years ago

A few 1.9 deprecation warnings now pop up. They don't need to be fixed in this PR, but some of them seem pretty simple to fix, so maybe you want to:

/home/vkurup/dev/CTS/catalog/utils.py:7: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
  from django.forms.util import ErrorDict

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/settings.py:22: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils import importlib, six

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:19: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
  from django.contrib.contenttypes.generic import GenericForeignKey

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:154: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
  return SortedDict(fields)

/home/vkurup/dev/CTS/catalog/utils.py:7: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
  from django.forms.util import ErrorDict

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/settings.py:22: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils import importlib, six

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:19: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
  from django.contrib.contenttypes.generic import GenericForeignKey

/home/vkurup/.virtualenvs/cts/local/lib/python2.7/site-packages/rest_framework/serializers.py:154: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
  return SortedDict(fields)

Looks reasonable to me :cactus:

dpoirier commented 8 years ago

Three of the Django 1.9 deprecation warnings are in Django Rest Framework. They would probably go away if we upgraded it, but upgrading DRF often requires other changes, so I'll pass on that for this pull request.

dpoirier commented 8 years ago

This is deployed to staging.