Skip to content

Commit e76eff5

Browse files
committed
removed updated .js from original project. default / routing added.
1 parent 9472810 commit e76eff5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
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
)

urls.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
from 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

78
urlpatterns = 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

1922
import os

0 commit comments

Comments
 (0)