dancerfly / django-brambling

Event website manager, specifically designed for dance weekends or other events with multiple simultaneous tracks of classes.
BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

Upgrade to Django 1.9 #900

Closed harrislapiroff closed 5 years ago

harrislapiroff commented 6 years ago

This is the first step toward upgrading to Django 1.11.x (LTS) and Python 3!

harrislapiroff commented 6 years ago

Collected Django 1.10 Deprecation Warnings

/XXXXXXXXXXX/grappelli/urls.py:21: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^switch/user/(?P<object_id>\d+)/$', switch_user, name="grp_switch_user"),

/XXXXXXXXXXX/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates.
  "unable to load templates.", RemovedInDjango110Warning)

/XXXXXXXXXXX/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)

/XXXXXXXXXXX/talkback/urls.py:4: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got talkback.views.feedback_ajax_submit). Pass the callable instead.
  url(r'^submit/$', 'talkback.views.feedback_ajax_submit'),  # noqa

/XXXXXXXXXXX/talkback/urls.py:4: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^submit/$', 'talkback.views.feedback_ajax_submit'),  # noqa

/XXXXXXXXXXX/django-brambling-NpFHlxMw/src/django-zenaida/zenaida/contrib/hints/urls.py:4: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got zenaida.contrib.hints.views.dismiss). Pass the callable instead.
  url(r'^dismiss/$', 'zenaida.contrib.hints.views.dismiss'),

/XXXXXXXXXXX/django-brambling-NpFHlxMw/src/django-zenaida/zenaida/contrib/hints/urls.py:4: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^dismiss/$', 'zenaida.contrib.hints.views.dismiss'),

/XXXXXXXXXXX/django-brambling/brambling/views/organizer.py:305: RemovedInDjango110Warning: `brambling.views.organizer.EventCreateView.get_form` method must define a default value for its `form_class` argument.
  class EventCreateView(CreateView):

/XXXXXXXXXXX/django-brambling/brambling/urls.py:289: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.contrib.auth.views.login). Pass the callable instead.
  name='login'),

/XXXXXXXXXXX/django-brambling/brambling/urls.py:293: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.contrib.auth.views.password_reset). Pass the callable instead.
  name='password_reset'),

/XXXXXXXXXXX/django-brambling/brambling/urls.py:297: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.contrib.auth.views.password_reset_confirm). Pass the callable instead.
  name='password_reset_confirm'),

/XXXXXXXXXXX/django-brambling/brambling/urls.py:368: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.views.defaults.page_not_found). Pass the callable instead.
  url(r'^404/$', 'django.views.defaults.page_not_found'),

/XXXXXXXXXXX/django-brambling/brambling/urls.py:370: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got django.views.defaults.server_error). Pass the callable instead.
  url(r'^500/$', 'django.views.defaults.server_error'),

/XXXXXXXXXXX/django-brambling/dancerfly_project/urls.py:11: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^', include('brambling.urls')),

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/django/template/smartif.py:168: RemovedInDjango110Warning: Operator '=' is deprecated and will be removed in Django 1.10. Use '==' instead.
  mapped_tokens.append(self.translate_token(token))

/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py:37: RemovedInDjango110Warning: django.core.context_processors is deprecated in favor of django.template.context_processors.
  __import__(name)

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/compressor/base.py:318: RemovedInDjango110Warning: Backwards compatibility for storage backends without support for the `max_length` argument in Storage.get_available_name() will be removed in Django 1.10.
  self.storage.save(new_filepath, ContentFile(content.encode(self.charset)))

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/compressor/base.py:345: RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.
  return render_to_string(template_name, context_instance=final_context)

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/talkback/utils/widgets.py:12: RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.
  }, context_instance=RequestContext(request))

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/django/template/defaulttags.py:499: RemovedInDjango110Warning: Reversing by dotted path is deprecated (talkback.views.feedback_ajax_submit).
  url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)

/XXXXXXXXXXX/django-brambling-NpFHlxMw/src/django-zenaida/zenaida/contrib/hints/templatetags/hints.py:90: RemovedInDjango110Warning: Reversing by dotted path is deprecated (zenaida.contrib.hints.views.dismiss).
  'dismiss_action': reverse('zenaida.contrib.hints.views.dismiss'),

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/rest_framework/utils/model_meta.py:137: RemovedInDjango110Warning: 'get_all_related_objects is an unofficial API that has been deprecated. You may be able to replace it with 'get_fields()'
  for relation in opts.get_all_related_objects():

/XXXXXXXXXXX/django-brambling-NpFHlxMw/lib/python2.7/site-packages/rest_framework/utils/model_meta.py:149: RemovedInDjango110Warning: 'get_all_related_many_to_many_objects is an unofficial API that has been deprecated. You may be able to replace it with 'get_fields()'
  for relation in opts.get_all_related_many_to_many_objects():
melinath commented 6 years ago

I'm excited this is happening! Forgot to say that :-)

harrislapiroff commented 6 years ago

@melinath I've renamed this PR to make it clear that it is complete and just does the 1.9 update. I will do further updates in subsequent branches.