1 | (azimzadeh_env1) C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\coffehouse>python manage.py runserver
|
---|
2 | Watching for file changes with StatReloader
|
---|
3 | Performing system checks...
|
---|
4 |
|
---|
5 | System check identified no issues (0 silenced).
|
---|
6 | March 30, 2021 - 12:34:29
|
---|
7 | Django version 3.1.7, using settings 'coffehouse.settings'
|
---|
8 | Starting development server at http://127.0.0.1:8000/
|
---|
9 | Quit the server with CTRL-BREAK.
|
---|
10 | Exception in thread django-main-thread:
|
---|
11 | Traceback (most recent call last):
|
---|
12 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\utils\module_loading.py", line 20, in import_string
|
---|
13 | return getattr(module, class_name)
|
---|
14 | AttributeError: module 'coffehouse.utils.middleware' has no attribute 'CoffehouseMiddleware'
|
---|
15 |
|
---|
16 | The above exception was the direct cause of the following exception:
|
---|
17 |
|
---|
18 | Traceback (most recent call last):
|
---|
19 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\servers\basehttp.py", line 45, in get_internal_wsgi_application
|
---|
20 | return import_string(app_path)
|
---|
21 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\utils\module_loading.py", line 17, in import_string
|
---|
22 | module = import_module(module_path)
|
---|
23 | File "c:\python38\lib\importlib\__init__.py", line 127, in import_module
|
---|
24 | return _bootstrap._gcd_import(name[level:], package, level)
|
---|
25 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
|
---|
26 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
|
---|
27 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
|
---|
28 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
|
---|
29 | File "<frozen importlib._bootstrap_external>", line 783, in exec_module
|
---|
30 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
---|
31 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\coffehouse\coffehouse\wsgi.py", line 16, in <module>
|
---|
32 | application = get_wsgi_application()
|
---|
33 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\wsgi.py", line 13, in get_wsgi_application
|
---|
34 | return WSGIHandler()
|
---|
35 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\handlers\wsgi.py", line 127, in __init__
|
---|
36 | self.load_middleware()
|
---|
37 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\handlers\base.py", line 40, in load_middleware
|
---|
38 | middleware = import_string(middleware_path)
|
---|
39 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\utils\module_loading.py", line 22, in import_string
|
---|
40 | raise ImportError('Module "%s" does not define a "%s" attribute/class' % (
|
---|
41 | ImportError: Module "coffehouse.utils.middleware" does not define a "CoffehouseMiddleware" attribute/class
|
---|
42 |
|
---|
43 | The above exception was the direct cause of the following exception:
|
---|
44 |
|
---|
45 | Traceback (most recent call last):
|
---|
46 | File "c:\python38\lib\threading.py", line 932, in _bootstrap_inner
|
---|
47 | self.run()
|
---|
48 | File "c:\python38\lib\threading.py", line 870, in run
|
---|
49 | self._target(*self._args, **self._kwargs)
|
---|
50 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
|
---|
51 | fn(*args, **kwargs)
|
---|
52 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\management\commands\runserver.py", line 138, in inner_run
|
---|
53 | handler = self.get_handler(*args, **options)
|
---|
54 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\contrib\staticfiles\management\commands\runserver.py", line 27, in get_handler
|
---|
55 | handler = super().get_handler(*args, **options)
|
---|
56 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\management\commands\runserver.py", line 65, in get_handler
|
---|
57 | return get_internal_wsgi_application()
|
---|
58 | File "C:\Users\linux10\Desktop\my_all_envs\azimzadeh_env1\lib\site-packages\django\core\servers\basehttp.py", line 47, in get_internal_wsgi_application
|
---|
59 | raise ImproperlyConfigured(
|
---|
60 | django.core.exceptions.ImproperlyConfigured: WSGI application 'coffehouse.wsgi.application' could not be loaded; Error importing module.
|
---|
61 |
|
---|
62 |
|
---|