django - localeurl with django1.5 -


i migrated django 1.5 , since have problem {% url "localeurl_change_locale"%}.

in fact have form:

  <form id="ch_lg" method="post" action="{% url "localeurl_change_locale" %}">   {% csrf_token %}       <select id="country-options" name="locale" onchange="$('#locale_switcher').submit()">           {% lang in languages %}               <option value="{{ lang.0 }}" {% ifequal lang.0 language_code %}selected="selected"{% endifequal %}>{{ lang.1 }}</option>           {% endfor %}       </select>       <noscript>           <input type="submit" value="set" />       </noscript>   </form>   

it worked perfectly, since url change, have problem @ action {% url "localeurl_change_locale"%}.

after research don't understand do. thank you

i found answer ... didn't add

locale_paths = ( '/ path_project /', ) 

in settings.py

that'll teach me not read new features. if post can others same problem.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -