Hello All,

This is a example photo gallery application in Django:

http://staticfling.net/withdjango.com/static/code/gallery.zip

This is part of "Python Web Development with Django" and the source is
provided by the book's website itself (withdjango.com).

That django application is a good example of
1) Photo gallery.
2) Image processing done through django.
3) Images can uploaded through admin interface.

While, I unzip the example files and change the settings and load the
project, I can see the app work and can go to admin interface and
upload the photo files to proper specific folder in settings.py.

But the photos fail to display from the gallery application. I always
get a 404 response, no mater how I try. Directory and photo is
present.

Can some else try that application and see if they have gallery up and
with photos?
I unable to figure out what I am missing, I think another experience
guy can help if he tries it too.

In my settings.py I have:

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'book.db'

...
ROOT_URL = '/'
LOGIN_URL = ROOT_URL + 'login/'
MEDIA_URL = ROOT_URL + 'media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'
MEDIA_ROOT = ''


The application will create a directory named 'photos' and it will
store the images uploaded and thumnail versions from there.

I tries to serve from /media/photos/imagename.jpg   but fails to the
photo.

I am bit confused by this.

Thanks in advance,
Senthil






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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