Is there a way to change the url to open the admin site in django? I don't want to use the default /admin url. I am new to django so please try giving a bit more detailed information.
+1
A:
In urls.py, change the line that reads:
(r'^admin/(.*)', admin.site.root),
to something like:
(r'^new_admin/(.*)', admin.site.root),
so now instead of http://example.com/admin you'd use http://example.com/new_admin
nbv4
2009-06-09 05:59:13
Oh i should have guessed that... thanks a lot ya
Vicky
2009-06-09 06:59:24
+1
A:
Sure, the file urls.py in the root of your project maps URLs to handlers. Just change the line
(r'^admin/', include(admin.site.urls)),
Eric Drechsel
2009-06-09 05:59:56