mirror of https://github.com/django/django.git
Moved views.admin.main to contrib.admin.views.main. Refs #627. Note that this is still backwards-compatible, assuming people are using django.conf.urls.admin as their admin URLconf
git-svn-id: http://code.djangoproject.com/svn/django/trunk@927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
14bb88a5fc
commit
b4fd513f9f
|
@ -2,7 +2,7 @@ from django.conf.urls.defaults import *
|
||||||
from django.conf.settings import INSTALLED_APPS
|
from django.conf.settings import INSTALLED_APPS
|
||||||
|
|
||||||
urlpatterns = (
|
urlpatterns = (
|
||||||
('^$', 'django.views.admin.main.index'),
|
('^$', 'django.contrib.admin.views.main.index'),
|
||||||
('^logout/$', 'django.views.auth.login.logout'),
|
('^logout/$', 'django.views.auth.login.logout'),
|
||||||
('^password_change/$', 'django.views.registration.passwords.password_change'),
|
('^password_change/$', 'django.views.registration.passwords.password_change'),
|
||||||
('^password_change/done/$', 'django.views.registration.passwords.password_change_done'),
|
('^password_change/done/$', 'django.views.registration.passwords.password_change_done'),
|
||||||
|
@ -48,10 +48,10 @@ if 'ellington.media' in INSTALLED_APPS:
|
||||||
|
|
||||||
urlpatterns += (
|
urlpatterns += (
|
||||||
# Metasystem admin pages
|
# Metasystem admin pages
|
||||||
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/$', 'django.views.admin.main.change_list'),
|
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/$', 'django.contrib.admin.views.main.change_list'),
|
||||||
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/add/$', 'django.views.admin.main.add_stage'),
|
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/add/$', 'django.contrib.admin.views.main.add_stage'),
|
||||||
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/history/$', 'django.views.admin.main.history'),
|
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/history/$', 'django.contrib.admin.views.main.history'),
|
||||||
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/delete/$', 'django.views.admin.main.delete_stage'),
|
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/delete/$', 'django.contrib.admin.views.main.delete_stage'),
|
||||||
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/$', 'django.views.admin.main.change_stage'),
|
('^(?P<app_label>[^/]+)/(?P<module_name>[^/]+)/(?P<object_id>.+)/$', 'django.contrib.admin.views.main.change_stage'),
|
||||||
)
|
)
|
||||||
urlpatterns = patterns('', *urlpatterns)
|
urlpatterns = patterns('', *urlpatterns)
|
||||||
|
|
Loading…
Reference in New Issue