Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
i think you need to change the directory permissions for media. To check this 
you can
insecurely open write access for the whole media directory, then go from there:
  chmod -R a+rw media
(from project root)
you should not get a write error after that.
To secure the media dir better, you should read up on Unix permissions.

Original comment by [email protected] on 2 Dec 2008 at 1:10

from django-profile.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I'm sure that it's not unix&permissions related problem, I try all the ways with
permissions (including your way)

Maybe its about PIL libraries, but I dont expect to be answered and resolved in 
a
short time by the PIL team, not so dynamic... and I only have that problem with
django-profile.

I have no problem with admin interface but site throws the errors below

Full tracebak is:
=================
Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/profiles/profile/edit/avatar/
Django Version: 1.1 pre-alpha SVN-9538
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.sitemaps',
 'django.contrib.flatpages',
 'django.contrib.admin',
 'django.core.paginator',
 'django.contrib.comments',
 'myproject',
 'tagging',
 'userprofile',
 'django.contrib.admindocs']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'pagination.middleware.PaginationMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')

Traceback:
File "/Users/neoprolog/django/django-profile/userprofile/views.py" in 
avatarchoose
  214.             image.convert("RGB").save(avatar.image.path, "JPEG")

File "/Library/Python/2.5/site-packages/PIL/Image.py" in save
  1399.             fp = __builtin__.open(fp, "wb")

Exception Type: IOError at /profiles/profile/edit/avatar/
Exception Value: [Errno 13] Permission denied:
u'/Users/neoprolog/django-projects/myproject/media/userprofile/avatars/2008/Dec/
02/avatar_.jpg'


Original comment by [email protected] on 2 Dec 2008 at 6:50

from django-profile.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Okey, thats not an issue, so I'll post to mailing list,
thanks :P

Original comment by [email protected] on 2 Dec 2008 at 7:03

from django-profile.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
in settings,
I18N_URLS = False
resolves the problem :-)

Original comment by [email protected] on 2 Dec 2008 at 7:16

from django-profile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.