when I use django admin create a new book auther ( order the django book
introduction )
but the "headshot" still is required
and, if give any img
the error as follows,

Attempted access to '/tmp/avatar_005.jpeg' denied.

Request Method:     POST
Request URL:     http://127.0.0.1/admin/books/author/add/
Exception Type:     SuspiciousOperation
Exception Value:

Attempted access to '/tmp/avatar_005.jpeg' denied.

Exception Location:
/usr/lib/python2.6/site-packages/django/core/files/storage.py in path, line
214
Python Executable:     /usr/bin/python
Python Version:     2.6.2
Python Path:     ['/var/www/html', '/usr/lib/python26.zip',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages',
'/usr/lib/python2.6/site-packages/PIL']
Server time:     Tue, 15 Dec 2009 03:04:14 +0800


google get an solution:
change  " headshot = models.ImageField(upload_to='/tmp') " to " headshot =
models.ImageField(upload_to='tmp') "  in models.pyheadshot =
models.ImageField(upload_to='tmp')

but grep 'headshot' /usr/lib/python2.6/site-packages/django/* -R
will find nothing useful

what's wrong with this problem ??

======
Fedora 12
django 1.1


-- 
小yú

--

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


Reply via email to