django-compat
django-compat copied to clipboard
Forward and backwards compatibility layer for Django 1.4, 1.7, 1.8, 1.9, 1.10, and 1.11
This project's tests uses the [`imp` module](https://docs.python.org/3/library/imp.html) which has been deprecated since Python 3.4 and set for removal in 3.12: * Raised `PendingDeprecationWarning` since [3.4 (2014)](https://github.com/python/cpython/commit/e4f41deccf94ccc798b1eb1f44657ade66669a60) * Raised `DeprecationWarning` since...
Tests fail with ``` File "/home/abuild/rpmbuild/BUILD/django-compat-1.0.15/compat/tests/urls.py", line 5, in url(r'^accounts/logout/$', views.logout, name='logout'), AttributeError: module 'django.contrib.auth.views' has no attribute 'logout' ``` Fairly simple to fix https://stackoverflow.com/questions/47065438/attributeerror-module-django-contrib-auth-views-has-no-attribute
The lack of this creates dependency problem as provided by setup.py. See the following Debian bugs: * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896337 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896205
The next version of Django is changing quite radically the way URLs are being included, [by requiring an app name to be provided](https://docs.djangoproject.com/en/1.11/topics/http/urls/#url-namespaces-and-included-urlconfs). One way to do it (and sometimes...
The try/except block here is failing for the most recent version of Django. It's trying to import include from django.conf.urls and then failing into the ImportError exception which then causes...