I am stumped. I am not sure how to approach this. I think its best if I describe what I would like to happen then I would greatly appreciate some recommendations.
*Imagine this...* You go to www.mysite.com and you are presented solely with two buttons(and nothing else): [Enter in English] | [Enter in Spanish]. You can press either button and what happens next is you enter the site to a different page that says "Welcome" or "hola" (which ever you chose) and language is session is set. I am trying to get two things to happen with one button: 1. set the language and 2. go to a new page(all in one process). *Background: * Internationalization works excellent on my site once you are in the site and you change to another language. I have no problems with my site when you are in and you change the language setting - all is good there. Internationalization works but I can't combine it with an other step. *This is a general idea of what I thought might work - Any suggestions?* urlpatterns = patterns('', url( regex=r'^english/', view = UserEnterInEnglish.asView(), name = 'enter_english' ), url( regex=r'^spanish/', view = UserEnterInSpanish.asView(), name = 'enter_spanish' ),... class UserEnterInEnglish(TemplateView): '''User selects english'' ' get(self, request, *args, **kwargs): #Step 1. Set the language #Post to language which I do not know how to do #Post to' name="language" value="es" action="/i18n/setlang/" #Step 2 Go Enter the Site return HttpResponseRedirect('/about') class UserEnterInSpanish(TemplateView): '''User selects spanish'' ' get(self, request, *args, **kwargs): #Step 1. Set the language #Post to language which I do not know how to do #Post to' name="language" value="es" action="/i18n/setlang/" #Step 2 Go Enter the Site return HttpResponseRedirect('/about') -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d24dbe5-ea73-4024-9b9d-f63f63b62f7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.