1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Users\lenovo>dev\cfehome\Scripts\activate
(cfehome) C:\Users\lenovo>cd "dev\cfehome\disquaire_project"
(cfehome) C:\Users\lenovo\dev\cfehome\disquaire_project>manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified some issues:
WARNINGS:
?: (debug_toolbar.W001) debug_toolbar.middleware.DebugToolbarMiddleware is missi
ng from MIDDLEWARE.
HINT: Add debug_toolbar.middleware.DebugToolbarMiddleware to MIDDLEWARE.
System check identified 1 issue (0 silenced).
August 22, 2019 - 09:31:06
Django version 2.2.4, using settings 'disquaire_project.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\utils\module_loadin
g.py", line 20, in import_string
return getattr(module, class_name)
AttributeError: module 'debug_toolbar.middleware' has no attribute 'DebugToolbar
Middelware'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\servers\baseht
tp.py", line 45, in get_internal_wsgi_application
return import_string(app_path)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\utils\module_loadin
g.py", line 17, in import_string
module = import_module(module_path)
File "C:\Users\lenovo\dev\cfehome\lib\importlib\__init__.py", line 127, in imp
ort_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\lenovo\dev\cfehome\disquaire_project\disquaire_project\wsgi.py"
, line 16, in <module>
application = get_wsgi_application()
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\wsgi.py", line
13, in get_wsgi_application
return WSGIHandler()
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\handlers\wsgi.
py", line 135, in __init__
self.load_middleware()
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\handlers\base.
py", line 35, in load_middleware
middleware = import_string(middleware_path)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\utils\module_loadin
g.py", line 24, in import_string
) from err
ImportError: Module "debug_toolbar.middleware" does not define a "DebugToolbarMi
ddelware" attribute/class
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\python37-32\Lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "c:\python37-32\Lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\utils\autoreload.py
", line 54, in wrapper
fn(*args, **kwargs)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\management\com
mands\runserver.py", line 137, in inner_run
handler = self.get_handler(*args, **options)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\contrib\staticfiles
\management\commands\runserver.py", line 27, in get_handler
handler = super().get_handler(*args, **options)
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\management\com
mands\runserver.py", line 64, in get_handler
return get_internal_wsgi_application()
File "C:\Users\lenovo\dev\cfehome\lib\site-packages\django\core\servers\baseht
tp.py", line 50, in get_internal_wsgi_application
) from err
django.core.exceptions.ImproperlyConfigured: WSGI application 'disquaire_project
.wsgi.application' could not be loaded; Error importing module. |
Partager