Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:36 pm, Ben Dembroski wrote: > On Mar 15, 2:22 pm, Tom Evans wrote: > > > > > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski > > wrote: > > > Hi all, > > > > I'm trying to pass a ValidationError as a string to a template, but

Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:22 pm, Tom Evans wrote: > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski wrote: > > Hi all, > > > I'm trying to pass a ValidationError as a string to a template, but I > > can't seem to determine where to find the 'special key' that

Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
Hi all, I'm trying to pass a ValidationError as a string to a template, but I can't seem to determine where to find the 'special key' that is referred to in the documentation here: http://docs.djangoproject.com/en/dev/ref/models/instances/ {quote} Any ValidationError raised by Model.clean() will

Re: cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-07 Thread Ben Dembroski
My apologies to the list. I just noticed the commas at the end of the lines in the views.py file. Once I got rid of those, all was much better. On Feb 7, 11:33 pm, Ben Dembroski wrote: > Hi all. > > Another silly question.  I'm hoping someone here can explain something > a

cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-07 Thread Ben Dembroski
Hi all. Another silly question. I'm hoping someone here can explain something about the way form validation and processing is working in the following example of User Registration: >From forms.py class RegistrationForm(forms.Form): username = forms.CharField(label=u'Username', max_length=30

Re: loading the external css file

2011-01-31 Thread Ben Dembroski
Aha !! Is there a notice of this somewhere obvious on the website that I missed? Thanks again! -- Ben On Jan 31, 11:38 am, Łukasz Rekucki wrote: > On 31 January 2011 12:17, Ben Dembroski wrote: > > > Hi all, > > > I was having the same trouble (using version 1.2).  I do

Re: loading the external css file

2011-01-31 Thread Ben Dembroski
Hi all, I was having the same trouble (using version 1.2). I double checked that I was looking at the correct documentation: http://docs.djangoproject.com/en/1.2/howto/static-files/ and it does indicate that I should be truing to use django.contrib.staticfiles . Should I instead be using the d

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
return self.cursor.execute(sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/ sqlite3/base.py", line 200, in execute return Database.Cursor.execute(self, query, params) DatabaseError: no such column: sample_app_Person.dobestm Any ideas ? Thanks again! On

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
chael wrote: > The database tables are named {{app_label}}_{{model_name}}, so in order > to use the same database you will need to use the same application name > (or specify db_table in the model's Meta). > > -- > Michael > > > > > > > > On Tue, 2011-0

copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
Hi all, Afraid I've got another newbie question. I've been doing some development on a project using sqlite3. All is working well, and I'd like to use the same database file in another project, data intact. I've copied the database file, and the models.py file to the appropriate locations in th

Re: Dates BC

2011-01-18 Thread Ben Dembroski
Thanks. I do need to do some basic date arithmetic, but it doesn't really need to be super accurate. I might be able to get away with this approach. Thanks for the advice! Best, Ben On Jan 17, 10:52 pm, Christophe Pettus wrote: > On Jan 17, 2011, at 2:00 PM, Ben Dembroski wrote: &

Dates BC

2011-01-17 Thread Ben Dembroski
Hi all, I was planning on making a formal introduction to the group when I had a chance. I'm afraid I come seek help instead. I'm a relative newbie to both Python and Django, and in the middle of my first Django project. My client is asking me to store and process dates -- including dates BC.