Hello, I'm using the photologue application and would like to redirect the base site (i.e. '') to 'pl-gallery-list'.
/urls.py ... snip ... urlpatterns = patterns('', (r'^photologue/', include('photologue.urls')), # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), ) /photologue/urls.py ... snip ... # galleries gallery_args = {'allow_empty': True, 'queryset': Gallery.objects.filter(is_public=True), 'extra_context': {'sample_size':SAMPLE_SIZE}} urlpatterns = patterns('django.views.generic.list_detail', url(r'^gallery/?$', 'object_list', gallery_args, name='pl-gallery- list'), url(r'^gallery/(?P<slug>[\-\d\w]+)/$', 'object_detail', {'slug_field': 'slug', 'queryset': Gallery.objects.filter(is_public=True), 'extra_context': {'sample_size':SAMPLE_SIZE}}, name='pl-gallery-detail'), ) ... snip ... What I would like to do is something like this (in /urls.py): urlpatterns += ('', (r'', reverse('pl-gallery-list') ) However, this doesn't work. Is this the right way of going about doing this? Should I use a HTTPRedirect, or simply copy the full 'pl-gallery- list' regex from /photologue/urls.py (although this is not very DRY)? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---