mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 09:05:41 +01:00
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:
@@ -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'),
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user