It worked!

Thanks A lot. Thats what i meant by naming this post as details... its
always such little details that im missing that piss me off the most.
Thanks again for helping me with this one :D

Alan


On Apr 9, 2:36 pm, google torp <toppe...@gmail.com> wrote:
> Hi.
>
> I'm guessing a bit here, not sure if it actually will make any
> difference, but
> try to delete the $ in the include so it'll become:
> (r'^', include('p2.front.urls')),
> $ marks the end of the url, so maybe that is giving you the problem.
>
> ~Jakob
>
> On 9 Apr., 11:55, zayatzz <alan.kesselm...@gmail.com> wrote:
>
> > I think it has:
>
> > My project urlconf is
>
> > urlpatterns = patterns('',
> >         (r'^$', include('p2.front.urls')),
> >         #(r'^lang/(?P<lang_id>\d+)/$', 'p2.front.views.changelang'),
> >         (r'^admin/(.*)', admin.site.root),
> > )
>
> > And front urlconf is:
> > urlpatterns = patterns('p2.front.views',
> >         (r'^$', 'index'),
> >         (r'^lang/(?P<lang_id>\d+)/$', 'changelang'),
> > )
>
> > The thing that i cant figure out is that when i go to 127.0.0.1:8000/
> > the index page opens, and that too does come from front urlconf that
> > is included in project urlconf.
> > And when i uncomment the line in project urlconf, then it all starts
> > working.
>
> > Alan.
>
> > On Apr 9, 11:14 am, "johan.uhIe" <johan.u...@student.hpi.uni-
>
> > potsdam.de> wrote:
> > > When you have a look at the error and at your urlsconf.py, you might
> > > see that the error does not include your urlconf.py, which it actually
> > > should, so the problem must be, that Django is not using your urlconf.
> > > Have you included the urlconf in your projects urls.py?
>
> > > Could be something like this:
>
> > > urlpatterns = patterns('',
> > > # other stuff
> > > (r'^$', include('front.urls')),
> > > )
--~--~---------~--~----~------------~-------~--~----~
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