installing Django in python3

2021-03-06 Thread Pavel Lopez
When installing Django in python3 I have the following error ValueError: ZIP does not support timestamps before 1980 someone knows how i can solve this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

UniqueConstraint rises fields.E310 error because of issue with backward compatibility with unique_together

2020-01-20 Thread Pavel Garkin
ions to unique_together constraint it works ok. Migrations passes with no errors ... class Meta: unique_together = [['uid', 'source']] As mentioned in docs <https://docs.djangoproject.com/en/2.2/ref/models/options/#unique-together> unique_together may be d

Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread Pavel Kuchin
initial.py#L208 > ) > And based on django documentation the related_name must always be unique ( > https://docs.djangoproject.com/en/1.8/topics/db/models/#be-careful-with-related-name > ) > > It is just an assumption. > > Yours sincerely, > Pavel > > Hello, >>

Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread Pavel Kuchin
/core/migrations/0001_initial.py#L208) And based on django documentation the related_name must always be unique (https://docs.djangoproject.com/en/1.8/topics/db/models/#be-careful-with-related-name) It is just an assumption. Yours sincerely, Pavel Hello, > > After upgrading to 1.8 from 1.7.7 ou

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Yeah, sorry:) 2015-04-16 16:04 GMT+03:00 Vijay Khemlani : > Why are you talking to me? I'm not OP xD > > On Thu, Apr 16, 2015 at 9:57 AM, Pavel Kuchin > wrote: >> >> Hi Vijay, >> >> Looks like Django does not use SortedDict anymore >&

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
, **kw): from your class, ordering should be based on fields definition order. Best regards, Pavel 2015-04-16 15:31 GMT+03:00 Vijay Khemlani : > In the title: "'OrderedDict' object has no attribute 'keyOrder'" > > On Thu, Apr 16, 2015 at 6:13 AM, Pavel Kuc

Re: Django Userena 'OrderedDict' object has no attribute 'keyOrder'

2015-04-16 Thread Pavel Kuchin
Hi Willy, Can you send an error, because I see only the SignupFormExtra class. Yours sincerely, Pavel четверг, 16 апреля 2015 г., 1:41:47 UTC+3 пользователь willyhakim написал: > > Hi everyone, > I am using django-userena and extend the form class to add some of my own > fields

Re: saving data using cleaned data method

2015-04-16 Thread Pavel Kuchin
Hi Sekkizhar, I think django.forms.ModelForm is exactly what you are looking for. (https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#modelform) Yours sincerely, Pavel. Good Morning, > I am trying to save data in the table using cleaned data by get and post > method in th

Re: Django handle new ManyToManyField items with get_or_create()

2015-04-15 Thread Pavel Kuchin
) model_instance.tags.add(t) return HttpResponseRedirect("/") Best regards, Pavel Help me, django-users, you're my only hope :D > > Hi all, my name is Filippo, I'm from Italy and I'm totally stuck on this > problem... > > I have a model with a ManyToManyF

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-13 Thread Pavel Kuchin
Hi Chase, Can you please attach your settings.py (or at least DATABASES and INSTALLED_APPS options) and LocationModel class? Best regards, Pavel 2015-04-13 17:37 GMT+03:00 Chase Cooley : > Yes, I have tried makemigrations and migrate for all modules and it still > doesn't work.

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-12 Thread Pavel Kuchin
Hi Chase, Did you try makemigrations and migrate: $ python manage.py makemigrations $ python manage.py migrate You should run them for all modules at first time (do not set any specific module). Best regards, Pavel. I can post code and errors here, but have already posted on

Re: KeyError: 'default'

2015-04-06 Thread Pavel Kuchin
Hi Mike, I think the issue is that Django can't find your default DB settings. Please take a look: https://docs.djangoproject.com/en/1.8/ref/settings/#databases Best regards, Pavel понедельник, 6 апреля 2015 г., 15:44:01 UTC+3 пользователь Mike Dewhirst написал: > > Can som

OSQA multi language tutorial

2014-10-17 Thread Pavel Vanchugov
Helloevryone. Is there more detailed documentation for achieving multi language site on django? I don't even know what this is https://docs.djangoproject.com/en/1.4/topics/i18n/ All i can see is that django can "multi language" and that's it. -- You received this message because you are subscr

Re: persistent db connections and postgresql_psycopg2 InterfaceError

2013-12-18 Thread Pavel Lurye
rver will fix it as you'll get fresh > connections. What is your CONN_MAX_AGE? > On Dec 17, 2013 4:57 AM, "Pavel Lurye" > > wrote: > >> Hi, >> does anyone have used django1.6 persistent connections with postgresql? >> I've done a simple

persistent db connections and postgresql_psycopg2 InterfaceError

2013-12-17 Thread Pavel Lurye
Hi, does anyone have used django1.6 persistent connections with postgresql? I've done a simple test and I'm not sure, that django behaves correctly. Django can't recover after DB restart, and all further db requests lead to server error: --- Traceback (most recent call last): File "

Re: Is here Ella cms (based on Django) users?

2013-06-11 Thread Pavel
placed views.py? понедельник, 10 июня 2013 г., 11:22:13 UTC+4 пользователь Amirouche написал: > > > > Le lundi 10 juin 2013 00:48:06 UTC+2, Pavel a écrit : >> >> i have some newbie questions ^^ > > > Can you elaborate on yours needs ? They are several CMS in Django:

Re: Deadlock detected

2013-05-27 Thread Pavel Cisar
Hi, I know it's old, but did you find any solution for this? Thanks Pavel Dne čtvrtek, 15. října 2009 17:01:57 UTC+2 Szymon napsal(a): > > Hello, > > Sometimes Django (on higher loads) throws exception: > > TransactionRollbackError: deadlock detected > DETAIL

Re: Which IDE should I use for Django?

2011-12-19 Thread Zhukov Pavel
PyCharm? On Mon, Dec 19, 2011 at 2:34 PM, Alec Taylor wrote: > I'm looking for a Django IDE which incorporates the following features: > - Syntax-highlighting > - Projects (all code file of the project shown separated by directory > in a sidebar) > - Tabs (with close buttons on tab) > - Code-comp

Re: server configuration

2010-10-30 Thread Pavel Zinovkin
> Actually there is nothing about that is not possible to use worker MPM > and daemon mode. Sorry. I meant prefork MPM :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To uns

Re: server configuration

2010-10-30 Thread Pavel Zinovkin
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Apache_Requirements >For Apache 2.0 and 2.2, either the single threaded 'prefork' or multithreaded >'worker' Apache MPMs can be used. >To be able to make use of daemon mode of mod_wsgi, either Apache 2.0 or 2.2 is >required and the corr

select where or

2009-05-26 Thread Pavel
27;Hello') My question is how to enforce django to execute followinq query: SELECT ... WHERE (pub_date > '2005-1-3' OR headline = 'Hello') Thank you in advance, Pavel --~--~-~--~~~---~--~~ You received this message because you are subscribe

last security fix

2008-09-04 Thread pavel srb
hi all please, due to http://www.djangoproject.com/weblog/2008/sep/02/security/ i would like to know, when there will be security patch for debian etch version thank you pavel srb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Tag arguments rendering

2008-07-01 Thread Yosifov Pavel
On 2 июл, 10:54, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-01 at 20:44 -0700, Yosifov Pavel wrote: > > I made own tags. Sometimes I want to "rendering" arguments (when > > arguments of the tag are Django-template-expressions). So, I use >

Tag arguments rendering

2008-07-01 Thread Yosifov Pavel
I made own tags. Sometimes I want to "rendering" arguments (when arguments of the tag are Django-template-expressions). So, I use template.render() method. All is OK but it's look like this: {% some_tag {{var}} %} but in built-in tags this is usually without {{..}}: {% builtin_tag var %} What i

Silly question on models

2008-05-31 Thread Pavel Rebrov
Hello everyone! Sorry for another stupid question, but there it is. I'm building a news app for a website for a self-teaching and figured out I don't understand some basic thing. I want news to publish news from different sources: 1. Add 'em manually all by myself (that's no problem) 2. Allow re

Yet another "social network" help needed

2008-05-25 Thread Pavel Rebrov
Hello everyone, I want to build sort of a multi-user blog system with some "community- building" features. Right now I see it as a set of applications as such: - News. RSS-aggregated, manually translated and republished on the site "Industry News" section - Blog. Each user will have a blog of one

May be useful tags (flatindex, table with shape)?

2008-02-16 Thread Yosifov Pavel
uot;weight" of ranking level. Ranking level add # nestedlen to flatindex if move by 1 (like hypercube). nestedlen *= loop['counter0'] + loop['revcounter0'] + 1 else: ret += loop['counter0']*nestedlen # go to next-up l

Re: underline code in emacs

2007-11-15 Thread pavel srb
pavel srb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

underline code in emacs

2007-11-15 Thread pavel srb
hi all when i am writting html templates for django in emacs, my code is underline. I get some django-mode from web, but that did not solve my problem. So please, what mode or setting you have in your .emacs to do not have underline code in your django templates. thank you very much pavel srb

custom forms

2006-11-03 Thread Pavel Volkovitskiy
rces (i use latest checkout), should i use it? and do validation in view on POST? or if it will be better to use custom manipulator? I need a hint how this should dbe implemented in django way btw, it seems that i can't store fields description in Form or field classes? -- Pavel --~--~--