Fix: Upgrade django to 1.11 LTS

New version of django fix the RuntimeError while saving wepb file.

The patch will not be applied to Django 1.8

Ref: https://www.djangoproject.com/download/#supported-versions

Ref: https://github.com/django/django/pull/10331
This commit is contained in:
winkidney
2018-08-24 07:44:28 -07:00
parent 099158b738
commit f85a1e7301
6 changed files with 169 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
from django.conf.urls import patterns, include, url
from django.conf.urls import include, url
from django.views.generic import TemplateView
from tastypie.api import Api
@@ -13,7 +13,7 @@ v1_api.register(ThumbnailResource())
v1_api.register(PinResource())
v1_api.register(UserResource())
urlpatterns = patterns('',
urlpatterns = [
url(r'^api/', include(v1_api.urls, namespace='api')),
url(r'^pins/pin-form/$', TemplateView.as_view(template_name='core/pin_form.html'),
@@ -28,4 +28,4 @@ urlpatterns = patterns('',
name='recent-pins'),
url(r'^$', TemplateView.as_view(template_name='core/pins.html'),
name='recent-pins'),
)
]