Re: error 500 & 404 / date time isnot defined

2010-07-27 Thread Hector Garcia
You should first of all set DEBUG and TEMPLATE_DEBUG to True in your settings.py, so you can have a traceback of what is happening. If you still don't have a clue, post the traceback. H. Hector Garcia - Web developer, musician http://nomadblue.com/ On Tue, Jul 27, 2010 at 11:

Re: how to save a forms.ModelForm with extra fields?

2009-11-13 Thread Hector Garcia
Exactly, it ignores whatever POST value not related to the model field. You have to use f.cleaned_data['rating'] to get the rating value and use it or save it wherever it has to be stored, as Andy McKay pointed in his comment. Hector Garcia - Web developer, musician http://nomadblue.

Re: question about facebook connect and django voting

2009-11-13 Thread Hector Garcia
It would be much easier if you post all the models involved Hector Garcia - Web developer, musician http://nomadblue.com/ On Fri, Nov 13, 2009 at 12:54 AM, uno...@gmail.com wrote: > I'm trying to find the most efficient way to accomplish the below: > > I have a list of users (fa

Re: how to save a forms.ModelForm with extra fields?

2009-11-13 Thread Hector Garcia
egerField instead of model.IntegerField? Hector Garcia - Web developer, musician http://nomadblue.com/ On Fri, Nov 13, 2009 at 5:35 AM, Andy Mckay wrote: > On 09-11-12 2:33 PM, jul wrote: >> I've got the Rating model and the AddRestaurantForm shown below. In >> order to add a rating w

Re: Troubleshoot import errors

2009-10-26 Thread Hector Garcia
Check out all your template calls to {% url view_picture %}, you are probably passing wrong arguments to the reverse URL. Hector Garcia - Web developer, musician http://nomadblue.com/ On Mon, Oct 26, 2009 at 12:37 PM, Dave wrote: > > Hi All, I admit I must totally be missing somethi

Re: Using variables as keywords in QuerySet

2009-10-21 Thread Hector Garcia
x27;: 'foo', b: 'bar';}) Cheers, Hector Garcia - Web developer, musician http://nomadblue.com/ On Wed, Oct 21, 2009 at 12:32 PM, Doug Blank wrote: > > On Wed, Oct 21, 2009 at 5:12 AM, Arthur Metasov wrote: >> >> 2009/10/21 valler <180...@gmail.com>

Re: frameworks based on Django ?

2009-10-21 Thread Hector Garcia
http://pinaxproject.com/ Hector Garcia - Web developer, musician http://nomadblue.com/ On Wed, Oct 21, 2009 at 1:35 PM, ssc wrote: > > The future feature list of the project I am currently working on has a > few items that sound to me like they'd been implemented before, but &

Re: installing Django on Mac OS 10.6

2009-10-21 Thread Hector Garcia
On the internets? http://docs.djangoproject.com/en/dev/ref/databases/#mysqldb Hector Garcia - Web developer, musician http://nomadblue.com/ On Wed, Oct 21, 2009 at 12:56 PM, robin wrote: > > I have installed Django on my mac with OS 10.6. It installed just fine > and I was sett

Re: Unittest, fixture and permission

2009-10-21 Thread Hector Garcia
d by default. Overwrites some existing objects >>> management.call_command('loaddata', 'fixture2.json', verbosity=0) >>> Article.objects.all() [, , , ] # Load fixture 3, XML format. >>> management.call_command('loaddata', 'fixture3.xml',

Re: How to confirm a successfull/failed database insert call to the user

2009-10-14 Thread Hector Garcia
Alternately, if you are working with anonymous users you can use anonymous sessions to get the same effect: http://docs.djangoproject.com/en/dev/topics/http/sessions/ Hector Garcia - Web developer, musician http://nomadblue.com/ On Tue, Oct 13, 2009 at 11:03 PM, Sonal Breed wrote