Probleme runserver Django

Probleme runserver Django - Python - Programmation

Marsh Posté le 07-11-2008 à 11:05:13    

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 :
  1. C:\Documents and Settings\jesslallly\Bureau\Jess\Django\trunk\miraemos> python m
  2. anage.py runserver
  3. Traceback (most recent call last):
  4.   File "manage.py", line 11, in <module>
  5.     execute_manager(settings)
  6.   File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
  7. 340, in execute_manager
  8.     utility.execute()
  9.   File "C:\Python26\lib\site-packages\django\core\management\__init__.py", line
  10. 295, in execute
  11.     self.fetch_command(subcommand).run_from_argv(self.argv)
  12.   File "C:\Python26\lib\site-packages\django\core\management\base.py", line 195,
  13. in run_from_argv
  14.     self.execute(*args, **options.__dict__)
  15.   File "C:\Python26\lib\site-packages\django\core\management\base.py", line 213,
  16. in execute
  17.     translation.activate('en-us')
  18.   File "C:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
  19. e 73, in activate
  20.     return real_activate(language)
  21.   File "C:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
  22. e 43, in delayed_loader
  23.     return g['real_%s' % caller](*args, **kwargs)
  24.   File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
  25. ine 209, in activate
  26.     _active[currentThread()] = translation(language)
  27.   File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
  28. ine 198, in translation
  29.     default_translation = _fetch(settings.LANGUAGE_CODE)
  30.   File "C:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
  31. ine 181, in _fetch
  32.     app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:
  33. ])
  34.   File "C:\Python26\lib\site-packages\django\contrib\admin\__init__.py", line 1,
  35. in <module>
  36.     from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
  37.   File "C:\Python26\lib\site-packages\django\contrib\admin\options.py", line 5,
  38. in <module>
  39.     from django.contrib.contenttypes.models import ContentType
  40.   File "C:\Python26\lib\site-packages\django\contrib\contenttypes\models.py", li
  41. ne 1, in <module>
  42.     from django.db import models
  43.   File "C:\Python26\lib\site-packages\django\db\models\__init__.py", line 10, in
  44. <module>
  45.     from django.db.models.fields.files import FileField, ImageField
  46.   File "C:\Python26\lib\site-packages\django\db\models\fields\files.py", line 7,
  47. in <module>
  48.     from django.core.files.storage import default_storage
  49.   File "C:\Python26\lib\site-packages\django\core\files\storage.py", line 231, i
  50. n <module>
  51.     default_storage = DefaultStorage()
  52.   File "C:\Python26\lib\site-packages\django\core\files\storage.py", line 125, i
  53. n __init__
  54.     self.location = os.path.abspath(location)
  55.   File "C:\Python26\lib\ntpath.py", line 458, in abspath
  56.     path = _getfullpathname(path)
  57. TypeError: coercing to Unicode: need string or buffer, tuple found
  58. 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
Reply

Marsh Posté le 07-11-2008 à 11:05:13   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed