Hi,

I've read the tutorial, and bits of docs here and there. I would like
to thank the great Django community for making this a splendid
learning experience!

So, I felt confident enough to start writing a simple image gallery
app.

Here's the code for the main app's models.py.

http://dpaste.com/38695/

I've enabled the admin app, syncdb'd and created a user. So I log in,
but the image upload doesn't work.

When I pick an image and click on Save, the form complains that there
is an error I need to fix, but it doesn't pinpoint the erroneous
field.

After a while, I tried to remove the lines 59 and 60, and also the
width_field, and height_field from line 58. I also removed the
matching columns from the MySQL database manually, because syncdb
doesn't do that for me. Then I restarted the app, but then I had a
different situation. The image and its record get saved, but the
post_save signal is not emitted (aparently, because there is nothing
in the admin's history view for the item, not even its creation) and
instead of the admin page, I get an error page which says 'width'
field doesn't have a default value.

Can anyone please take a look at dpaste and tell me if I did something
wrong there? (I'm almost sure I did.)

Thanks,


Branko
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to