jjssll | Bonjour à tous,
J'ai un soucis avec le runserver de Django que j'ai crée (contenu du fichier : python manage.py runserver), quand je clique sur ce fichier pour lancer le serveur et tester mes modules en interne, cela ouvre une commande dos (normal) je vois des choses défilées mais directement apres il se coupe et donc impossible de lancer ce serveur ...
Quand je lance sous dos, voici l'erreur :
Code :
- C:\Documents and Settings\jesslallly\Bureau\Jess\Django\trunk\miraemos> python m
- anage.py runserver
- Traceback (most recent call last):
- File "manage.py", line 11, in <module>
- execute_manager(settings)
- File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
- 340, in execute_manager
- utility.execute()
- File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
- 295, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "C:\Python26\lib\site-packages\django\core\management\base.py", line 195,
- in run_from_argv
- self.execute(*args, **options.__dict__)
- File "C:\Python26\lib\site-packages\django\core\management\base.py", line 213,
- in execute
- translation.activate('en-us')
- File "C:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
- e 73, in activate
- return real_activate(language)
- File "C:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
- e 43, in delayed_loader
- return g['real_%s' % caller](*args, **kwargs)
- File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
- ine 209, in activate
- _active[currentThread()] = translation(language)
- File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
- ine 198, in translation
- default_translation = _fetch(settings.LANGUAGE_CODE)
- File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
- ine 181, in _fetch
- app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:
- ])
- File "C:\Python26\lib\site-packages\django\contrib\admin\__init__.py", line 1,
- in <module>
- from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
- File "C:\Python26\lib\site-packages\django\contrib\admin\options.py", line 5,
- in <module>
- from django.contrib.contenttypes.models import ContentType
- File "C:\Python26\lib\site-packages\django\contrib\contenttypes\models.py", li
- ne 1, in <module>
- from django.db import models
- File "C:\Python26\lib\site-packages\django\db\models\__init__.py", line 10, in
- <module>
- from django.db.models.fields.files import FileField, ImageField
- File "C:\Python26\lib\site-packages\django\db\models\fields\files.py", line 7,
- in <module>
- from django.core.files.storage import default_storage
- File "C:\Python26\lib\site-packages\django\core\files\storage.py", line 231, i
- n <module>
- default_storage = DefaultStorage()
- File "C:\Python26\lib\site-packages\django\core\files\storage.py", line 125, i
- n __init__
- self.location = os.path.abspath(location)
- File "C:\Python26\lib\ntpath.py", line 458, in abspath
- path = _getfullpathname(path)
- TypeError: coercing to Unicode: need string or buffer, tuple found
- C:\Documents and Settings\jesslallly\Bureau\Jess\Django\trunk\miraemos>
|
Quelqu'un sait m'aider ?
Merci Message édité par jjssll le 07-11-2008 à 11:16:32
|