Enable admin interface
This commit is contained in:
parent
68a0bfd00d
commit
22bdbdaf2a
|
@ -115,10 +115,8 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
# Uncomment the next line to enable the admin:
|
'django.contrib.admin',
|
||||||
# 'django.contrib.admin',
|
'django.contrib.admindocs',
|
||||||
# Uncomment the next line to enable admin documentation:
|
|
||||||
# 'django.contrib.admindocs',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# A sample logging configuration. The only tangible logging
|
# A sample logging configuration. The only tangible logging
|
||||||
|
|
13
urls.py
13
urls.py
|
@ -1,17 +1,12 @@
|
||||||
from django.conf.urls.defaults import patterns, include, url
|
from django.conf.urls.defaults import patterns, include, url
|
||||||
|
from django.contrib import admin
|
||||||
# Uncomment the next two lines to enable the admin:
|
admin.autodiscover()
|
||||||
# from django.contrib import admin
|
|
||||||
# admin.autodiscover()
|
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
# Examples:
|
# Examples:
|
||||||
# url(r'^$', 'weblate.views.home', name='home'),
|
# url(r'^$', 'weblate.views.home', name='home'),
|
||||||
# url(r'^weblate/', include('weblate.foo.urls')),
|
# url(r'^weblate/', include('weblate.foo.urls')),
|
||||||
|
|
||||||
# Uncomment the admin/doc line below to enable admin documentation:
|
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
|
|
||||||
# Uncomment the next line to enable the admin:
|
|
||||||
# url(r'^admin/', include(admin.site.urls)),
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user