hello,
if i want to use simple generic view only for certain url, but the
normal view.py def for others how to combine both without errors.

urlpatterns = patterns('django.views.generic.simple',
 (r'^cefinban/recettes/$', 'cefinban.recettes.views.index')
 (r'^cefinban/faq/$',   'direct_to_template', {'template': 'faq'})
)

(r'^cefinban/recettes/$', 'cefinban.recettes.views.index')
wont work.

similarly
urlpatterns = patterns(' ',
(r'^cefinban/faq/$',   'direct_to_template', {'template': 'faq'})
(r'^cefinban/recettes/$', 'cefinban.recettes.views.index')
)

(r'^cefinban/faq/$',   'direct_to_template', {'template': 'faq'})
wont work.

What's the trick ? to make them cohabit.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to