Update _id field before .save() for ForeignKey

2019-11-29 Thread Maxim Bulatov
Hello, I have lot of lists like follow: (Name1): (V1, V2, V3, V4, ..) And I use many threads to create many db objects: company = Company(Name) for x in vector: v = CompanyValue(company=company, value=x) values.append(v) class CompanyValue(models.Model): company = models.ForeignKey('

Re: Django 1.8 migrations not obeying routers in multi db setup

2015-07-27 Thread Maxim Kiselev
Little explanation: Failed - import into default database. All migration are complete, but in default database. -- 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 1.8 migrations not obeying routers in multi db setup

2015-07-27 Thread Maxim Kiselev
Hi, guys. Problem: django not loading db router. In router.py https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#database-router and pref settings.py Migrations from 2 other app without --database flag are failed. Migrations from one app with custom model field in others models are failed

Re: Allow users to submit django form once per day

2015-07-23 Thread Maxim Boyarskiy
You can check how django rest framework solves it: http://www.django-rest-framework.org/api-guide/throttling/ -- 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 dja

Re: Problem with Django tutorial

2012-04-04 Thread maxim
d dashboard.css. I tried following the steps in the Customizing Admin Look and feel to get custom templates working to change the urls, but with no luck. How do I get the default admin to find its css files? On Wednesday, 4 April 2012 12:51:39 UTC-4, maxim wrote: > > I can't get the

Re: Problem with Django tutorial

2012-04-04 Thread maxim
> * > <http://joelinux117.blogspot.com> > <http://twitter.com/therealjoelinux><http://about.me/joelinux> > > > > On Wed, Apr 4, 2012 at 1:24 PM, maxim wrote: > >> No, I tried removing the file, creating it with touch and I also used >> sqlite3 to

Re: Problem with Django tutorial

2012-04-04 Thread maxim
No, I tried removing the file, creating it with touch and I also used sqlite3 to create a table in there to make sure it actually has some database in there: sqlite3 /home/maxim/mysite/mysite.db SQLite version 3.6.23.1 Enter ".help" for instructions Enter SQL statements termina

Re: Problem with Django tutorial

2012-04-04 Thread maxim
Yes On Wednesday, 4 April 2012 13:12:27 UTC-4, JoeLinux wrote: > > Are you using Django 1.4? > -- > Joey "JoeLinux" Espinosa* > * > <http://joelinux117.blogspot.com> > <http://twitter.com/therealjoelinux><http://about.me/joelinux> > > &g

Problem with the tutorial.

2012-04-04 Thread maxim
r more details. But my settings file has the DATABASE section: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. &

Problem with Django tutorial

2012-04-04 Thread maxim
k settings documentation for more details. My settings file has this for databases: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql

Django CMS and django-admin-tools are together?

2011-12-27 Thread Maxim Boyarskiy
Hi Guys, One question here: Is it possible and justified to use django-admin- tools over django-cms? I have no experience with Django-CMS and django- admin-tools, but I read that django-admin-tools is one of django-cms apps. I mean, I have to implement user filled resource and I look at cms, but I

Re: Word file Display and Save??

2011-01-29 Thread Maxim Mai
s, correct me if this is nonsense Thanks, Maxim Mai On Jan 28, 3:16 pm, nicolas lubkov wrote: > Hello all, is there a way to display a word .doc in the user profile and let > the users edit it and save it to keep in their profile.?? > > -- > Saludos. > > Nicolas Lubkov >

Re: Why I cannot save an object in administration?

2011-01-24 Thread Maxim Mai
it'd be helpful if you can paste the output of your python manage.py runserver and please check that if the debug mode is enabled, it will give you more info when you develop/test your application Maxim On Jan 23, 12:48 am, Flo wrote: > Hi all, > > I'm a new comer to Django.

Re: Filter after annotate

2011-01-03 Thread Maxim
Thanks Karen, It's a pity that this bug isn't fixed for 2 years already. I'll try to find a workaround... On Jan 3, 3:38 pm, Karen Tracey wrote: > On Mon, Jan 3, 2011 at 7:33 AM, Maxim wrote: > > Here's the snippet of my code: > > Actions.objects.val

Filter after annotate

2011-01-03 Thread Maxim
Hi, I've come across a weird behavior, just wondering if it is a bug or a feature. My task is to group a list of actions by user, count the values sum and filter them by absolute value. E.g. user1 5 user1 10 user2 2 user3 -12 and limit = 10, I want to see user1 15 user3 -12 Here's the sn

Re: UTF-8 support in custom tags

2010-12-05 Thread Maxim
The exception occurred before this statement, but I changed it anyway. Thanks. --- Maxim On Dec 5, 4:58 pm, Ramiro Morales wrote: > On Sun, Dec 5, 2010 at 4:23 AM, Maxim wrote: > > Hi Ramiro, > > > Thanks for tip. Setting > > > DEFAULT_CHARSET = "UTF-8"

Re: UTF-8 support in custom tags

2010-12-04 Thread Maxim
Hi Ramiro, Thanks for tip. Setting DEFAULT_CHARSET = "UTF-8" FILE_CHARSET = "UTF-8" did the trick, though I thought it is UTF-8 by default and doesn't have to be set explicitly. Anyway now everything's working. Thanks! --- Maxim On Dec 5, 2:17 am, Ramiro M

UTF-8 support in custom tags

2010-12-04 Thread Maxim
character maps to ') In a trace dump I noticed that this is UnicodeEncodeError, occurring in "self.nodelist.render(context)". Any ideas how to deal with it? --- Maxim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Translation of class names

2007-05-12 Thread Maxim Bodyansky
В сообщении от Суббота 12 мая 2007 12:36 Vinay Sajip написал(a): > On May 11, 4:20 pm, Maxim Bodyansky <[EMAIL PROTECTED]> wrote: > > Hmmm. It just works. And i18n for module names works > > too :) Many-many thanks, Ivan :) > > Это не Иван, это - Vinay Извиняюсь

Re: Translation of class names

2007-05-11 Thread Maxim Bodyansky
le to feed > that back to the list, too. Hmmm. It just works. And i18n for module names works too :) Many-many thanks, Ivan :) -- WBR, Maxim Bodyansky --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django