File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 119119 'django.contrib.staticfiles' ,
120120 'fileupload' ,
121121 # Uncomment the next line to enable the admin:
122- # 'django.contrib.admin',
122+ 'django.contrib.admin' ,
123123 # Uncomment the next line to enable admin documentation:
124124 # 'django.contrib.admindocs',
125125)
Original file line number Diff line number Diff line change 11from django .conf .urls .defaults import patterns , include , url
2+ from django .shortcuts import redirect
23
34# Uncomment the next two lines to enable the admin:
4- # from django.contrib import admin
5- # admin.autodiscover()
5+ from django .contrib import admin
6+ admin .autodiscover ()
67
78urlpatterns = patterns ('' ,
89 # Examples:
910 # url(r'^$', 'upload.views.home', name='home'),
11+
12+ url (r'^$' , redirect (‘url - name ’)),
1013 url (r'^upload/' , include ('fileupload.urls' )),
1114
1215 # Uncomment the admin/doc line below to enable admin documentation:
1316 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
1417
1518 # Uncomment the next line to enable the admin:
16- # url(r'^admin/', include(admin.site.urls)),
19+ url (r'^admin/' , include (admin .site .urls )),
1720)
1821
1922import os
You can’t perform that action at this time.
0 commit comments