Thursday, January 31, 2013

Re: newbie confused about urls

You mean mappings urls to views(pages?). Because if get_absolue_url is like request.get_full_path() then you would use that in the view itself and use urls.py to map urls to pages/views. And templates are are called from in views.

frocco wrote:
Hi All,

I am trouble understanding how to use urls.
I see tutorials that have get_absolue_url, url  mysite, ect.

I need to do:

1. load a page with no parameters
2. load a page with 1 parameter
3. load a page with more than 1 parameter

What should my templates look like?

Thank you



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--  Mike Doroshenko, Junior Sys Admin  TecKnoQuest Inc.  miked@tecknoquest.com  www.tecknoquest.com

No comments:

Post a Comment