Nevermind... this was my bad. I removed (.*) from my urls.py
This is now working... thanks a bunch.
This is what I get for developing an app that works and then not touching it
for over a year.
I really need to keep up with these things.
--
You received this message because you are subscribed
Well... two people replied with the same answer so rather than picking
favorites I'll just reply to myself.
This seems to work but looks a bit quirky.
When I use {% url admin:index %} the link that gets generated actually has
"admin/(.*)" in it.
This even shows up in the url when I click on it.
On 14 July 2011 16:35, eric.frederich wrote:
> Hello,
>
> I am moving from 1.0.2 to 1.3 and am having problems linking to the
> admin site from within a template.
> I used to have this in my template...
>
> Django Admin
>
> And I used to have this in my urls.py
>
> url(r'^admin/(.*)' ,
From the django docs on url namespaces [1]
Namespaced URLs are specified using the : operator. For example, the
main index page of the admin application is referenced using
admin:index. This indicates a namespace of admin, and a named URL of
index.
So you link to the admin index in your temp
Hello,
I am moving from 1.0.2 to 1.3 and am having problems linking to the
admin site from within a template.
I used to have this in my template...
Django Admin
And I used to have this in my urls.py
url(r'^admin/(.*)' , admin.site.root, name='the-django-
admin'),
I'm sure this was
5 matches
Mail list logo