jebif / jebif-cv

JeBiF - Application CV
http://jebif.fr
2 stars 1 forks source link

Création CV - Donner les droits en écriture sur le serveur pour le fichier #4

Closed sb25 closed 14 years ago

sb25 commented 14 years ago

Environment:

Request Method: POST Request URL: http://jebif.fr/app/cv/ Django Version: 1.1.1 Python Version: 2.6.4 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.admindocs', 'registration', 'candidate', 'users'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'middleware.RequireLoginMiddleware', 'middleware.HttpMethodsMiddleware', 'middleware.TerminalLogging')

Traceback: File "/home/jebif/lib/Django-1.1.1/build/lib/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/jebif/apps/jebif_cv/candidate/views.py" in collection
  2. return _create(request) File "/home/jebif/apps/jebif_cv/candidate/views.py" in _create
  3. cv = form.save() File "/home/jebif/lib/Django-1.1.1/build/lib/django/forms/models.py" in save
  4. fail_message, commit, exclude=self._meta.exclude) File "/home/jebif/lib/Django-1.1.1/build/lib/django/forms/models.py" in save_instance
  5. instance.save() File "/home/jebif/lib/Django-1.1.1/build/lib/django/db/models/base.py" in save
  6. self.save_base(force_insert=force_insert, force_update=force_update) File "/home/jebif/lib/Django-1.1.1/build/lib/django/db/models/base.py" in save_base
  7. values = [(f, f.get_db_prep_save(raw and getattr(self, f.attname) or f.pre_save(self, True))) for f in meta.local_fields if not isinstance(f, AutoField)] File "/home/jebif/lib/Django-1.1.1/build/lib/django/db/models/fields/files.py" in pre_save
  8. file.save(file.name, file, save=False) File "/home/jebif/lib/Django-1.1.1/build/lib/django/db/models/fields/files.py" in save
  9. self.name = self.storage.save(name, content) File "/home/jebif/lib/Django-1.1.1/build/lib/django/core/files/storage.py" in save
  10. name = self._save(name, content) File "/home/jebif/lib/Django-1.1.1/build/lib/django/core/files/storage.py" in _save
  11. os.makedirs(directory) File "/usr/lib/python2.6/os.py" in makedirs
  12. makedirs(head, mode) File "/usr/lib/python2.6/os.py" in makedirs
  13. mkdir(name, mode)

Exception Type: OSError at /cv/ Exception Value: (13, 'Permission denied')

sb25 commented 14 years ago

Résolu