##// END OF EJS Templates
Updated urls list to be a plain list instead of 'patterns' method which is...
neko259 -
r1486:c55955ce default
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 from django.conf.urls import patterns, url
1 from django.conf.urls import url
2 2 #from django.views.i18n import javascript_catalog
3 3
4 4 import neboard
@@ -19,7 +19,7 b' js_info_dict = {'
19 19 'packages': ('boards',),
20 20 }
21 21
22 urlpatterns = patterns('',
22 urlpatterns = [
23 23 # /boards/
24 24 url(r'^$', all_threads.AllThreadsView.as_view(), name='index'),
25 25
@@ -79,9 +79,8 b" urlpatterns = patterns('',"
79 79 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
80 80
81 81 # Post preview
82 url(r'^preview/$', PostPreviewView.as_view(), name='preview')
83
84 )
82 url(r'^preview/$', PostPreviewView.as_view(), name='preview'),
83 ]
85 84
86 85 # Search
87 86 if 'haystack' in neboard.settings.INSTALLED_APPS:
@@ -1,4 +1,4 b''
1 from django.conf.urls import patterns, include, url
1 from django.conf.urls import include, url
2 2
3 3 # Uncomment the next two lines to enable the admin:
4 4 from django.conf.urls.static import static
@@ -9,12 +9,12 b' from boards.views.not_found import NotFo'
9 9
10 10 admin.autodiscover()
11 11
12 urlpatterns = patterns('',
12 urlpatterns = [
13 13 # Uncomment the admin/doc line below to enable admin documentation:
14 14 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
15 15
16 16 url(r'^admin/', include(admin.site.urls), name='admin'),
17 17 url(r'^', include('boards.urls')),
18 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
18 ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
19 19
20 20 handler404 = NotFoundView.as_view()
General Comments 0
You need to be logged in to leave comments. Login now