Re: help with time

2012-03-02 Thread
You can change the contents of TIME_CHOICES,every time before render one template, since django render one form up to the attribute of the form . 2012/3/3 Scott Macri > OK, I'm experimenting with time. To be specific datetime.time. My > goal is to generate a list of times in a pull down menu s

Re: Adding ImageField to Existing Models Results in Errors...and Confusion

2012-03-02 Thread
"no such column: report_userprofile.profile_pic" This error suggests that your database table has no such column profile_pic. After you add one column in the model of django,you have to add the according column with proper column type for the table.Django won't do it for you. You can refer to http

Re: Django, nginx, Passenger

2012-03-02 Thread
I suggest you do a pressure test on the url that have triggered the problem to see whether it will show up again.If yes, to see the system status such as the number of sockets being used and the number of connections from nginx to fastcgi service in the status of waiting to be accepted. 2012/3/3 D

Re: How can I load a custom template filter which is in my project directory ?

2012-02-15 Thread
refer to https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ 2012/2/15 Thomas Rega > Am 14.02.12 21:28, schrieb Nolhian: > > Hello everyone, >> >> In my template I put : >> >> {% load pygmentize %} >> >> But I got : >> TemplateSyntaxError at / >> 'pygmentize' is not a valid tag li

Re: IntegrityError while testing

2012-02-15 Thread
Did you delete one key or update the key to different values that was referenced by another table as foreign key. 2012/2/15 xina towner > Hello, I get this error when I try to test my app. I'm using mysql. I > think it's when django tries to delete the table. I've tried with all On > delete optio

Re: @commit_on_success with Class based view in Django 1.3

2012-02-15 Thread
The commit_on_success decorator only garrentees that one commit is done when no exception is raised from the function and rollback if there is any . You have to ensure on your own hand the values in the two tables are equal. 2012/2/15 Yann > Hi, > > In a class view, I am trying to modify two ins