Hi everyone, I have problem with my site, when I'm runnig it I have this logs:
2021-06-28 20:38:15,525: Not Found: /favicon.ico 2021-06-28 21:16:52,435: Error running WSGI application 2021-06-28 21:16:52,444: ModuleNotFoundError: No module named 'cukiernia.settings' 2021-06-28 21:16:52,445: File "/var/www/wykarmelizowany_pythonanywhere_com_wsgi.py", line 32, in <module> 2021-06-28 21:16:52,445: application = get_wsgi_application() 2021-06-28 21:16:52,445: 2021-06-28 21:16:52,445: File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2021-06-28 21:16:52,445:
django.setup(set_prefix=False) 2021-06-28 21:16:52,445: 2021-06-28 21:16:52,446: File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/init.py", line 19, in setup 2021-06-28 21:16:52,446:
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2021-06-28 21:16:52,446: 2021-06-28 21:16:52,446: File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/conf/init.py", line 82, in getattr 2021-06-28 21:16:52,446: self._setup(name) 2021-06-28 21:16:52,446: 2021-06-28 21:16:52,446: File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/conf/init.py", line 69, in _setup 2021-06-28 21:16:52,447: self._wrapped = Settings(settings_module) 2021-06-28 21:16:52,447: 2021-06-28 21:16:52,447: File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/conf/init.py", line 170, in init 2021-06-28 21:16:52,447: mod = importlib.import_module(self.SETTINGS_MODULE) 2021-06-28 21:16:52,447:
So I run in Bash: python -i /var/www/wykarmelizowany_pythonanywhere_com_wsgi.py and got this:
File "/var/www/wykarmelizowany_pythonanywhere_com_wsgi.py", line 53, in <module> application = get_wsgi_application() File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application django.setup(set_prefix=False) File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/home/wykarmelizowany/.virtualenvs/myenv/lib/python3.9/site-packages/django/apps/config.py", line 212, in create mod = import_module(mod_path) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'glowna.apps'
I don't know why this not working, because on my local environment it works.