Hi folks, I'm having trouble with reversed urls when they are being called as template tags. I posted my question on Stack Overflow last week with no adequate responses. I'll copy it here (with slight modifications) for convenience.
http://stackoverflow.com/questions/2189119/project-name-inserted-automatically-in-url-when-using-django-template-url-tag I have my urls named like so in my root urls.py file... ... url(r'^login/$', 'login', name='site_login'), ... This allows me to access /login at my site's root. I have my template tag defined like so... ... <a href="{% url site_login %}"> ... It works fine, except that Django automatically resolves that url as / myprojectname/login, not /login. Both urls are accessible. Only one is defined. Why is the projectname being inserted to the url automagically? This occurs for all url tags, not just this one. Thanks, Adam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.