Monday, June 28, 2010

Re: url template tag

On Mon, Jun 28, 2010 at 8:10 AM, Rufman <stephanerufer@gmail.com> wrote:
for some reason i get a template syntax error when i use the url tag:

<a href="{%url export %}">export</a>

export is the name of a url. I have added the url() function to all
url.py files.

The url tag certainly works, so the "some reason" lies in information you have not included in your post, such as the specifics of the error (contents of the text box when you click on the link to switch to copy-and-paste view on the debug page) and what exactly you have in your urls.py. Without that information it is going to be difficult for anyone to point you in the right direction.

Karen
--
http://tracey.org/kmt/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment