Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:36 pm, Ben Dembroski <i...@ionraystudios.com> wrote: > On Mar 15, 2:22 pm, Tom Evans <tevans...@googlemail.com> wrote: > > > > > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski <i...@ionraystudios.com> > > wrote: > > > Hi all, >

Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:22 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski <i...@ionraystudios.com> wrote: > > Hi all, > > > I'm trying to pass a ValidationError as a string to a template, but I > > can't seem to dete

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()

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 <i...@ionraystudios.com> wrote: > Hi all. > > Another silly question.  I'm hoping someone h

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',

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 <lreku...@gmail.com> wrote: > On 31 January 2011 12:17, Ben Dembroski <i...@ionraystudios.com> wrote: > > > Hi all, > > &

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

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
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 Jan 25, 4:02 pm, Ben Dembroski &

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
; > > > > > On Tue, 2011-01-25 at 07:36 -0800, Ben Dembroski wrote: > > 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

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

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 <x...@thebuild.com> wrote: > On Jan 17, 2011, at 2:0

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.