how to display and update the same form? wait online

2009-03-05 Thread Chr1s
hi folks, I have a customized form, I want to it can be displayed, if user made a change, it can be submitted and saved. what should I do? the form was made from 2 different models. here is my code: =forms.py=== class ChangePersonalInfo(forms.Form):

I got 'invalid literal for int() with base 10: 'AA'' error, please help

2008-12-09 Thread Chr1s
ValueError at /vote/add/ invalid literal for int() with base 10: 'AA' Request Method: POST Request URL:http://localhost:8000/vote/add/ Exception Type: ValueError Exception Value: invalid literal for int() with base 10: 'AA' Exception Location:

error when installing the django-tagging

2008-08-21 Thread Chr1s
Hi all, I am writing a project on django, everything is fine, acutally I have finished few apps already. btw I am using django itself to debug and act as web-server. I got the develop version of django and django-tagging. when I try to install django-tagging as the command sudo python setup.py

Re: django-registration with my custom user profile

2008-06-14 Thread Chr1s
any help:? On Jun 13, 6:02 pm, Chr1s <[EMAIL PROTECTED]> wrote: > Hi thanks for your replay, > It is the second situation, I re-write the form.py like this > > class RegistrationForm(forms.Form): >   (other stuff  ) > def save(self, profile_callback=Non

Re: django-registration with my custom user profile

2008-06-13 Thread Chr1s
arguments (4 given) thanks On Jun 13, 5:17 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > 2008/6/13 Chr1s <[EMAIL PROTECTED]>: > > > But still I don't know how to implement this, anyone could give me a > > simple example? thanks very much > > This

django-registration with my custom user profile

2008-06-13 Thread Chr1s
Hi guys I am newbie for django, today I tried django-registration, in the source code it said that --- To enable creation of a custom user profile along with the ``User`` (e.g., the model specified

django-registration with my custom user profile

2008-06-13 Thread Chr1s
Hi guys, I tried django-registration 0.5 today, it is powerful indeed, but I have a site-specific user profile just like this writen in my model.py class Userdetail(models.Model): user = models.ForeignKey(User, primary_key = True) # nickname = models.CharField(max_length=30) DOB =