Et tu n'as pas réussi à la comprendre ? L'as-tu au moins lue (cette erreur)
?

=> "Your STATICFILES_DIRS setting is not a tuple or list; " <=

Je viens de voir qu'en effet, dans ta liste de settings copiée, tu as
oublié la virgule pour indiquer que c'est un tuple. Lorsqu'il n'y a qu'un
seul élément dans un tuple python, il est alors interprété comme son
contenu (ici une chaîne de caractère).

2012/5/31 carlos <[email protected]>

> voici l'erreur qu'affiche http://localhost:8000/static/img/logo.png:
>
> [CODE]
> Traceback (most recent call last):
>
>  File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py",
> line 283, in run
>    self.result = application(self.environ, self.start_response)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py",
> line 69, in __call__
>    return super(StaticFilesHandler, self).__call__(environ,
> start_response)
>
>  File "C:\Python27\lib\site-packages\django\core\handlers\wsgi.py", line
> 272, in __call__
>    response = self.get_response(request)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py",
> line 59, in get_response
>    return self.serve(request)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py",
> line 52, in serve
>    return serve(request, self.file_path(request.path), insecure=True)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\views.py", line
> 35, in serve
>    absolute_path = finders.find(normalized_path)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\finders.py", line
> 228, in find
>    for finder in get_finders():
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\finders.py", line
> 242, in get_finders
>    yield get_finder(finder_path)
>
>  File "C:\Python27\lib\site-packages\django\utils\functional.py", line
> 124, in wrapper
>    result = func(*args)
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\finders.py", line
> 263, in _get_finder
>    return Finder()
>
>  File
> "C:\Python27\lib\site-packages\django\contrib\staticfiles\finders.py", line
> 52, in __init__
>    "Your STATICFILES_DIRS setting is not a tuple or list; "
>
> ImproperlyConfigured: Your STATICFILES_DIRS setting is not a tuple or
> list; perhaps you forgot a trailing comma?
> [/CODE]
> _______________________________________________
> django mailing list
> [email protected]
> http://lists.afpy.org/mailman/listinfo/django
>
_______________________________________________
django mailing list
[email protected]
http://lists.afpy.org/mailman/listinfo/django

Répondre à