Re: new user needs some advice setting up a model...

2008-09-24 Thread Alexander Pugachev
You can force database to watch after columns to be unique by one or in combinations. Django admin interface also can watch after this restrictions. How to make a model to have few attributes unique together is described here: http://docs.djangoproject.com/en/dev/ref/models/options/#unique-togethe

Re: How can I test my api between two servers running django

2008-09-24 Thread Alexander Pugachev
crazy russian 2008/9/23 Vitaliy <[EMAIL PROTECTED]> > > >so they both created test db for each other > I meen for them selfs :) > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Form serialization

2008-07-02 Thread Alexander Pugachev
Hi. Is there way to store bounded form for later use? For example to put into session, then show it at another way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Newforms makes unicode String from a dictonary

2007-06-28 Thread Alexander Pugachev
I still have them as unicode strings in [5559] 2007/6/11, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Mon, 2007-06-11 at 11:39 +, Christian Schmidt wrote: > > I use at this time the ugly version with eval(). I really don't know > > how ugly it is. Can I have problems if there is python co

Re: Developing in windows

2007-07-02 Thread Alexander Pugachev
You must have "django" directory in site-packages, not "django-0.96". You better make symlink "django" to corresponding directory under "django-0.96". To create symlink in Windows, use "junction" utility. It can be easily found with Google. 2007/6/30, Vladimir Pouzanov <[EMAIL PROTECTED]>: > > > O

Re: DB error when sorting by a column in the generated admin

2007-05-08 Thread Alexander Pugachev
Looks like your models "know" about prefixes in table names. Class reseller should work with table "reseller", but it works with table "fuel_reseller". I do not know how you made that (interesting to know), but why not to call models Reseller and FuelRelease and point them in Meta clases that their

Re: Serving static content with development server?

2007-05-09 Thread Alexander Pugachev
Images are uploaded to directory which name is constructed from 2 parts: MEDIA_ROOT + model's upload_to. Then image url gets constructed from MEDIA_URL and upload_to (and image name itself). So if your C:\django\site_media\ is accessible with web-server, and say C:/django/ is DOCUMENT_ROOT of Apac

Re: How can I get the admin interface to not ignore newlines in a text field?

2007-05-09 Thread Alexander Pugachev
What is the type of the field? It should be TextField? 2007/5/9, Michael Lake <[EMAIL PROTECTED]>: > > > Hi all > > I have a content field which has newlines in it. When I do a select from > the database > of that field I get the output like this: > line 1 > line 2 > > But when I view this in th

Re: How can I get the admin interface to not ignore newlines in a text field?

2007-05-10 Thread Alexander Pugachev
Newlines characters do not break lines in HTML. You need in strings to show text in few lines in list view. 2007/5/10, Michael Lake <[EMAIL PROTECTED]>: > > > Michael Lake wrote: > > Alexander Pugachev wrote: > >>What is the type of the field? It should b