Skip to content

Commit 401b738

Browse files
committed
fix from django.conf.urls.default
1 parent a9f6089 commit 401b738

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fileupload/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.conf.urls.defaults import patterns, url
1+
from django.conf.urls import patterns, url
22
from fileupload.views import PictureCreateView, PictureDeleteView
33

44
urlpatterns = patterns('',

urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.conf.urls.defaults import patterns, include, url
1+
from django.conf.urls import patterns, include, url
22
from django.http import HttpResponseRedirect
33

44
# Uncomment the next two lines to enable the admin:
@@ -21,5 +21,5 @@
2121

2222
import os
2323
urlpatterns += patterns('',
24-
(r'^media/(.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.abspath(os.path.dirname(__file__)), 'media')}),
24+
(r'^media/(.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.abspath(os.path.dirname(__file__)), 'media')}),
2525
)

0 commit comments

Comments
 (0)