Commit 06910aaf by ichuang

urls: do admin autodiscover if settings.DEBUG

parent 4280c791
......@@ -6,8 +6,9 @@ from django.conf.urls.static import static
import django.contrib.auth.views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
if settings.DEBUG:
from django.contrib import admin
admin.autodiscover()
urlpatterns = ('',
url(r'^$', 'student.views.index'), # Main marketing page, or redirect to courseware
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment