Re: url - hot to set properly?

2011-03-27 Thread galgal
I have APPEND_SLASH True but / is not added :) -- 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...@googlegrou

Re: url - hot to set properly?

2011-03-27 Thread Łukasz Rekucki
On 27 March 2011 14:51, Pascal Germroth wrote: > Hi, > >>    urlpatterns = patterns('', >>    url(r'^admin/', include(admin.site.urls)), >>    (r'^', include('apps.textcontent.urls')), >>    ) > >> when i pass: /admin/ all is ok, but when I pass /admin - >> apps.textcontent.urls are executed, but

Re: url - hot to set properly?

2011-03-27 Thread Pascal Germroth
Hi, urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), (r'^', include('apps.textcontent.urls')), ) when i pass: /admin/ all is ok, but when I pass /admin - apps.textcontent.urls are executed, but why? Well because the URL pattern is a regular expression th

url - hot to set properly?

2011-03-27 Thread galgal
I need to make some settings in urls. I want admin site enabled and 1 view method to catch rest of the request parts. So if someone's url is :/admin - ADMIN panel is show, also if someone pass: /admin/ (/ <- is important) If someone pass: /, /contact, gallery,. my custom method is activated.