sry... mysql is not the problem. it should be a strict wsgi issue...
anyway i cant understand the problem. could it be that root should
have write permissions to the media folder because apache is started
as root?

On Oct 9, 3:53 pm, andreas schmid <a.schmi...@gmail.com> wrote:
> hi,
>
> im experiencing problems with my project while im using mysql and wsgi.
> the problem happens when i want to create a user profile with an avatar.
> it works fine if i start the process with the runserver command.
>
> this is the error:http://www.pastebin.org/41177
>
>     OSError: [Errno 13] Permission denied:
>     '/opt/django/fslabs/fslabs/media/avatars/avatar-1726.gif
>
> does that mean that it has not the permission to upload the image to
> that path?
> because it doesnt create the profile at all.
> anyway the media folder is owned by the user django and all the
> executables too.
>
> my wsgi script looks like this:
>
>     #!/usr/bin/python
>
>     import sys
>     sys.path[0:0] = [
>       '/opt/src/django/eggs/djangorecipe-0.19.1-py2.5.egg',
>       '/opt/src/django/eggs/zc.recipe.egg-1.2.2-py2.5.egg',
>       '/opt/src/django/eggs/zc.buildout-1.4.1-py2.5.egg',
>       '/opt/src/django/eggs/setuptools-0.6c9-py2.5.egg',
>       '/opt/django/fslabs/parts/django',
>       '/opt/django/fslabs',
>       '/opt/django/fslabs/parts/site-packages',
>       ]
>
>     import djangorecipe.wsgi
>
>     application = djangorecipe.wsgi.main('fslabs.production', logfile='')
>
> and the apache configuration is:
>
>     <VirtualHost xx.xx.xxx.xx:80>
>     ServerName xxxxxxxxxxx.org
>
>     Alias /site-media/ /var/www/fslabs/media/
>
>     <Directory /var/www/fslabs/media>
>     Order deny,allow
>     Allow from all
>     </Directory>
>
>     WSGIScriptAlias / /opt/django/fslabs/bin/django.wsgi
>
>     <Directory /opt/django/fslabs/bin>
>     Order deny,allow
>     Allow from all
>     </Directory>
>
>     Alias /media/
>     /opt/django/fslabs/parts/django/django/contrib/admin/media/
>     <Directory /opt/django/fslabs/parts/django/django/contrib/admin/media>
>     Order deny,allow
>     Allow from all
>     </Directory>
>
>     </VirtualHost>
>
> the django project is symlinked in /var/www/
>
> could someone point me to the solution?
--~--~---------~--~----~------------~-------~--~----~
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 
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