Re: Form Wizard and captcha

2009-04-13 Thread Adi Sieker
On 13.04.2009, at 21:43, Kirill Zaborski wrote: > So no answers were given and I tried to fix FormWizard class. > The patch is attached and the only thing changed is that the > revalidation is made with forms which were before the last one (I > do not see any reason for the second

Re: How To Change App Label in Admin Pages

2009-04-09 Thread Adi Sieker
Hi, On 09.04.2009, at 10:15, johan.uhIe wrote: > > I'd also liked to know ... > > On 8 Apr., 13:36, Burcu Hamamcıoğlu wrote: >> I have a question about Internationalization; is there anyway to >> change the >> name of app name in admin pages. But I dont't want to override

Re: Positive integer form field with max lenght

2009-04-09 Thread Adi Sieker
On 09.04.2009, at 09:27, emonk wrote: > Hi people. > This is my doubt > > I need make a form field with this restrictions: > > _field content must be only integers numbers and postive. > _filed content must have a max lenght, for example 8 characters. > > I am confused beacuse

Re: Does anyone know how to prepopulate a form with model data

2009-04-09 Thread Adi Sieker
On 09.04.2009, at 08:18, Briel wrote: > > Hi. > It seems like your error and your problem is not the same. The error > is complaining about the get_object_or_404, not the profile thing. So > changing that code won't actually do anything as it doesn't get that > far. > Well, maybe not. I had the

Re: Pre-filling form data without submission?

2009-04-08 Thread Adi Sieker
On 08.04.2009, at 17:10, Facundo Casco wrote: > > On Tue, Jan 20, 2009 at 11:17 AM, shogunm...@googlemail.com > wrote: >> >> Thanks guys, I'm gonna give this a try! >> >> Mike. > Hi, I'm having the exact same problem you had and I can't find a nice > way around it. >

Re: request.user Null value in foreign key save[Repost]

2009-04-08 Thread Adi Sieker
Hi, On 08.04.2009, at 16:43, ramya wrote: > > class Property(models.Model): > property_id = models.AutoField(primary_key = True) > property_name = models.CharField("Name", max_length = 30) > user = models.ForeignKey(User) > > class PropertyForm(ModelForm): > class Meta: >model =

Re: OperationError: fe_sendauth: no password supplied

2009-04-08 Thread Adi Sieker
Hi, a full traceback would be helpful. did you supply a password for your database in the settings.py? adi On 08.04.2009, at 15:12, LeeRisq wrote: > > I've been following along with the Djangobook. When I try to configure > the postgresql db, I get that error. I've tried tracing the problem

Re: Determining server identity from views.py?

2009-03-31 Thread Adi Sieker
Hi, On 31.03.2009, at 21:54, Ross wrote: > > Thanks for your reply, and you anticipated my follow up question. A > brief look found how to read an enviro var from python: > > os.environ['USER'] give me $USER from the OS it appears (haven't > tried it yet). > > BUT, I also took a close look at

Re: Django and IIS 7

2009-03-26 Thread Adi Sieker
Hi, On 26.03.2009, at 14:21, Sergey Petrov wrote: > > I've blown my brains away, trying to make django work under IIS7 on > Windows Server 2008. > > I've tried PyISAPIe. I've tried fastcgi module. > > I'm no guru of windows, not even a expirienced user, though. > > Google tells nothing about

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-19 Thread Adi Sieker
ere are some regression tests which show you how to use the Fields. adi > On 18 Mar, 13:45, Adi Sieker <a...@sieker.info> wrote: >> Hi, >> >> On 18.03.2009, at 13:01, MarcoS wrote: >> >> >> >>> Hi Adi, thanks for your reply! >>

Re: yet another unicode question...

2009-03-18 Thread Adi Sieker
Hi, On 19.03.2009, at 11:02, Juan Hernandez wrote: > Hi there, > > This has been killing me for hours and I don't know what else to do. > Is about the famous charset in django. > > I have this model: > > class Post(models.Model): > user = models.ForeignKey(User) > category =

Re: Using

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 15:47, NoviceSortOf wrote: > > We have a web form where the enduser clicks on a link and > is moved to different parts of the page. > > With the previous 3 generations of the site, we simply did something > like the following . > > ...in html to mark the spot > > > ...in

Re: DateField with Django

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 11:51, Wim Feijen wrote: > > Hello people, > > It has been over a month do I'd like to raise the same question again, > with all due respect. > > Does anybody know how to control a form's output format of a stored > DateField? Unfortunately, different countries use

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 13:01, MarcoS wrote: > > Hi Adi, thanks for your reply! > > I had just tried the DateField.input_formats, but the problem was that > I'm using the date admin widgets. > If I specify input_formats like: '%d.%m.%y', I can't use the admin > widgets 'cause it insert the date in

Re: Django form: Allow user to insert a date in dd-mm-yyyy format and then convert in yyyy-mm-dd

2009-03-18 Thread Adi Sieker
Hi, On 18.03.2009, at 11:43, MarcoS wrote: > > Hi all, > I'm implementing a form in django with a DateField field in forms.py. > My purpose is to allow a user to insert a date in european format (dd/ > mm/) and then, obviously, convert it in the /mm/dd format to > let's django check if

Re: Django Pluggable application for invoicing / accounts?

2009-03-06 Thread Adi Sieker
Hi, there is also djime http://github.com/mikl/djime/tree/master though that leans more in the direction of hourly charges. adi On 06.03.2009, at 21:15, John Boxall wrote: > > Trolling through the board a bit here are some other postings on > similar topics: > > Suggesting looking at Satchmo

Re: Adding a slug

2009-01-24 Thread Adi Sieker
Hi, as far as I know loaddata doesn't use the ORM to insert the data. So things like signals and overloaded save methods don't work when using loaddata. adi On 24.01.2009, at 17:48, Kless wrote: > > > > On 24 ene, 15:51, Daniel Roseman > wrote: >> Are you

Re: Flatpages

2009-01-21 Thread Adi Sieker
Hi, check this out. http://code.djangoproject.com/ticket/6932 adi On 21.01.2009, at 16:53, Gordon wrote: > > Hi > I've just started to use Django and have been using the flatpages > plugin for serving static pages. Does anyone know how or a plugin that > will generate a content's tree from

Re: Problem saving a User object to a profile

2008-12-19 Thread Adi Sieker
Hi, On 19.12.2008, at 21:15, DragonSlayre wrote: > > I've got a profile model which has a django.contrib.auth.models.User > as a foreign key. > > I am trying to assign the User object to my profile model after I've > checked that the user is valid and that the profile contents are also > valid.

Re: range-like template tag?

2008-12-08 Thread Adi Sieker
Hi, On 08.12.2008, at 17:30, Berco Beute wrote: > > The 'someInt' is an attribute of an object I pass to the template. It > varies with each object. I could of course make a dictionary with the > object and a list of the integers but it would be handy to solve it in > the template (although you

Re: Two different django version on the same server?

2008-12-07 Thread Adi Sieker
Hi, On 07.12.2008, at 16:56, Pablo Ruiz Múzquiz wrote: > Hi all, > > I'm afraid I googled and googled with no success. Django official docs > or my django book weren't of any help either. > > I've got a "legacy" django project which was developed using 0.97svn a > year ago and a brand new SVN