Hi people,
I started working on an image gallery with Django and I'm stuck. I
suppose that my static files on the development server are not
configured properly.
I have the following models.py code:
from django.db import models
from PIL import Image
class Photo(models.Model):
name = models
(r'^static/(?P.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
the diffirence.
(r'^static_media/(?P.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
Thanks a lot!! :-)
It cost me one day this tiny problem..
--
You received
2 matches
Mail list logo