projects
/
cascardo
/
ema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
17b1974
)
Added admin autodiscover and updated admin url
author
Marcelo Jorge Vieira (metal
<metal@alucinados.com>
Wed, 22 Oct 2008 17:12:46 +0000
(15:12 -0200)
committer
Lincoln de Sousa
<lincoln@alfaiati.net>
Thu, 23 Oct 2008 01:10:40 +0000
(23:10 -0200)
urls.py
patch
|
blob
|
history
diff --git
a/urls.py
b/urls.py
index
8db2b3f
..
89b3856
100644
(file)
--- a/
urls.py
+++ b/
urls.py
@@
-22,6
+22,10
@@
from diario.models import Entry
from contents.models import Menu, Index
from ema.views import get_entry_by_slug
+from django.contrib import admin
+admin.autodiscover()
+
+
MEDIA = {'document_root': settings.INSTANCE('media')}
# the only difference between info_dict and info_dict_full is that the
@@
-44,7
+48,7
@@
info_dict_full = {
}
urlpatterns = patterns('',
- (r'^admin/
', include('django.contrib.admin.urls')
),
+ (r'^admin/
(.*)', admin.site.root
),
url(regex='^$',
view='django.views.generic.list_detail.object_list',