// archives

Archive for July, 2008

Bug? ImageField validation error

Go to c:/python2.4/lib/site-packages/django/core/validators.py
or
/usr/lib/python2.4/site-packages/django/core/validators.py , if you
are using Fedora
comment the following lines (the line numbers in my version is 186 and
187
trial_image = Image.open(StringIO(content))
trial_image.load()
could be related to http://code.djangoproject.com/ticket/7608

Tip: Create models.py from existing database

Ever wanted to use an old, existing, legacy database with a Django Project? That’s totally possible!
Django allows you to create a models.py file based on an existing database. To do this, you first have to make sure your database settings are properly specified in the settings.py file. Here’s an example of what the database settings [...]

Tutorial: Writing you first Django app

The best tutorial to start with when beginning with Django is found on the Django Project website (www.djangoproject.com).
It assumes you already have Django installed, and takes you through the basics of the fabulous framework:
http://docs.djangoproject.com/en/dev/intro/tutorial01/

Categories

  • No categories

Django Hosting:

DjangoDays recommends the following Django hosting provider: