On Jun 17, 7:39 am, "C. Feldmann" <casper.feldm...@googlemail.com>
wrote:
> Good morning,
>
> I was wondering how to implement the following without having to
> hardcode each url.
> I have different apps like i.e. books, authors, magazines, etc.
> Normally I would call upon default views by using something 
> like:http://localhost/books/James_and_the_Giant_Peach
> orhttp://localhost/authors/Roald_Dahl
>
> How can I configure django to search through the different
> possibilities if someone i.e. called up the 
> urlhttp://localhost/James_and_the_Giant_Peach
> orhttp://localhost/Roald_Dahl?
>
> I could probably hardcode "redirects" in the urls file, but there are
> too many possible urls and they change too often. How can I make this
> more dynamic?
>
> Thanks
> Casper

Just out of interest, under what circumstances might someone type
"http://yoursite/James_and_the_Giant_Peach"; into the address bar?

James

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to