Django tests fails - migration error

2017-12-09 Thread Matej Šnuderl
Since upgrading to Django 2.0 I'm getting SQL error while trying to run python manage.py test. (rest) λ → ✘ msnuderl@Matejs-MBP  ~/Workspace/Personal/homsterNoi   master ●  python manage.py test Creating test database for alias 'default'... Got an error creating the test database: database

Re: Migrations don't create tables

2017-08-17 Thread Matej Tacer
That worked. Thank you, Dylan! > On Aug 17, 2017, at 3:08 PM, Dylan Reinhold wrote: > > Add the app name to the end of makemigrations. > > Seems like the first time an app is added you have the force makemigrations > to find it. > > Dylan > > > On Aug 17, 2017 11:58 AM, "matejrpls"

Re: Decorator aware Django

2011-12-14 Thread Matej Cepl
On 13.12.2011 15:14, Javier Guerra Giraldez wrote: for me, is opposed to the "explicit is better than implicit" in the Zen of Python. not a bad thing on itself, but something to be careful about. (and, personally, it's a big part of why i like Django so much better than RoR) I am a complete

Re: get translated text from ugettext_lazy() result

2009-03-20 Thread Matej
Yes this was it. My field is ui = models.SmallIntegerField(default=0,choices=RATING_CHOICES) Thank you very much. On Feb 26, 10:31 pm, Arien wrote: > [fixed top-posting] > > > > On Thu, Feb 26, 2009 at 09:31,Matej wrote: > > On Feb 26, 3:38 pm, Alex Gaynor wrote: >

Re: Faster Database?

2009-02-27 Thread Matej
I agree with Clifford. I was able to speed up my postgresql database by 200% just by changing configurations how much memory database can use. On Feb 27, 9:11 am, CLIFFORD ILKAY wrote: > Sean wrote: > > Anyone have any suggestion how can I make this process faster, or > > there is any other supe

Re: get translated text from ugettext_lazy() result

2009-02-26 Thread Matej
irst field insted of the second. Here I get 3 but I want 'OK' or it's translation. On Feb 26, 3:38 pm, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 4:36 AM, Matej wrote: > > > Hello. > > I would like to get my translated text from ugettext_lazy() result. >

get translated text from ugettext_lazy() result

2009-02-26 Thread Matej
Hello. I would like to get my translated text from ugettext_lazy() result. How can I do that? Example: http://dpaste.com/1744/ #models.py RATING_CHOICES = ( ('0', _('I don\'t know')), ('1', _('Very bad')), ('2', _('Bad')), ('3', _('OK')), ('4', _('Good')), ('5', _('Excele