There are always some details im unable to find on web. I understand that i ask questions to which everybody wants to answer the current RTFM equivalent - google it, but either my googling skills suck or there are no such info out there... so here i go again.
How to write not equal if statement in views? Right now i had to write some dummy statement for the case where statement is true.. i really dont need that wtf there if 'language' in request.session: WTF = 1 else: request.session['language'] = lang.objects.get(fdef=True).short Also there must be something why this: urlpatterns = patterns('', (r'^$', include('p2.front.urls')), (r'^lang/(?P<lang_id>\d+)/$', 'p2.front.views.changelang'), (r'^admin/(.*)', admin.site.root), ) in my project urls.py works, but this urlpatterns = patterns('p2.front.views', (r'^$', 'index'), (r'^lang/(?P<lang_id>\d+)/$', 'changelang'), ) Does not. Thanks to anybody who bothers to answer! Alan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---