M2M frustration

2014-05-17 Thread Joris
Dear all, please help me with this unsolved mystery. Error: "Cannot resolve keyword u'' into field. Choices are: " 1) Error in admin In the admin it only happens when DEBUG=True. Works perfectly when DEBUG=False. The error occurs when opening the form view of the model that has the M2M fiel

Re: Error: No module named mysql.base when trying to sync.db

2014-05-17 Thread Arvind Aj
On Friday, April 15, 2011 2:59:32 PM UTC+5:30, paganplan paganplan wrote: > > Solved! > in settings.py file, option 'ENGINE' must be like this: > django.db.backends.mysql > > 2011/4/14, pagan >: > > same problem. apache2, mod_wsgi, python-mysqldb installed. When i add > > databases engine, name,

Re: Can't get i18n/setLang to match any urls

2014-05-17 Thread Shawn H
G. I read the docs, and I SWEAR it had the "l" as a capital. It's always the simplest things. Thank you! On Saturday, May 17, 2014 1:04:45 AM UTC-5, WongoBongo wrote: > > The L in setLang should be setlang as in the L is lowercase > > From my Django log "POST /i18n/setlang/ HTTP/1.1" 302 0

Re: Django RequestFactory() secure not working

2014-05-17 Thread James Clemence
Great thanks! On 17 May 2014 06:20, "Kelvin Wong" wrote: > If you print out your code you will see that you are adding a key-value to > the WSGI environ: > > # print factory.post('/', secure=True) > > path:/, > GET:, > POST:, > COOKIES:{}, > META:{ > ... > 'PATH_INFO': u'/', > ... > 'REQUEST

Re: Programatically reverse an url to other language

2014-05-17 Thread Jorge Cardoso Leitão
Hi, You were right that I was using ugettext instead of ugettext_lazy. Thank you for your response and for your suggestions on the code. Regards, Jorge On Thursday, May 15, 2014 9:09:18 PM UTC+2, Tomáš Ehrlich wrote: > > Hi, > use ugettext_lazy for translation of urls, models and other stuff wh