##// 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 #from django.views.i18n import javascript_catalog
2 #from django.views.i18n import javascript_catalog
3
3
4 import neboard
4 import neboard
@@ -19,7 +19,7 b' js_info_dict = {'
19 'packages': ('boards',),
19 'packages': ('boards',),
20 }
20 }
21
21
22 urlpatterns = patterns('',
22 urlpatterns = [
23 # /boards/
23 # /boards/
24 url(r'^$', all_threads.AllThreadsView.as_view(), name='index'),
24 url(r'^$', all_threads.AllThreadsView.as_view(), name='index'),
25
25
@@ -79,9 +79,8 b" urlpatterns = patterns('',"
79 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
79 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
80
80
81 # Post preview
81 # Post preview
82 url(r'^preview/$', PostPreviewView.as_view(), name='preview')
82 url(r'^preview/$', PostPreviewView.as_view(), name='preview'),
83
83 ]
84 )
85
84
86 # Search
85 # Search
87 if 'haystack' in neboard.settings.INSTALLED_APPS:
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 # Uncomment the next two lines to enable the admin:
3 # Uncomment the next two lines to enable the admin:
4 from django.conf.urls.static import static
4 from django.conf.urls.static import static
@@ -9,12 +9,12 b' from boards.views.not_found import NotFo'
9
9
10 admin.autodiscover()
10 admin.autodiscover()
11
11
12 urlpatterns = patterns('',
12 urlpatterns = [
13 # Uncomment the admin/doc line below to enable admin documentation:
13 # Uncomment the admin/doc line below to enable admin documentation:
14 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
14 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
15
15
16 url(r'^admin/', include(admin.site.urls), name='admin'),
16 url(r'^admin/', include(admin.site.urls), name='admin'),
17 url(r'^', include('boards.urls')),
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 handler404 = NotFoundView.as_view()
20 handler404 = NotFoundView.as_view()
General Comments 0
You need to be logged in to leave comments. Login now