Home > other >  Python web project for bosses
Python web project for bosses

Time:11-19

Access port prompt "Internal Server Error"


Log:
 Python version: 3.7.2 (default, Aug 24, 2020, 22:27:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] 
Python main interpreter the initialized at 0 x1e05870
UWSGI running as root, you can use - uid/gid/chroot options
* * * WARNING: you are running uWSGI as root!!!!!! (use the uid flag) - * * *
Python threads support enabled
Your server socket listen backlog is limited to 100 connections
Your mercy corps for graceful operations on workers is 60 seconds
Mapped 166752 bytes (162 KB) for 2 cores
* * * * * * the Operational MODE: implementing
Traceback (the most recent call last) :
The File "./blog/wsgi. Py ", line 16, the in & lt; module>
Application=get_wsgi_application ()
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/core/wsgi. Py", line 12, in get_wsgi_application
Django. Setup (set_prefix=False)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/set py", line 19, in the setup
Configure_logging (Settings. LOGGING_CONFIG Settings. LOGGING)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", 56, line in __getattr__
Self. _setup (name)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", 43, line in _setup
Self. _wrapped=Settings (settings_module)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", line 106, in __init__
Mod=importlib. Import_module (self. SETTINGS_MODULE)
The File "/WWW/server/panel/pyenv/lib/python3.7/importlib/set py", line 127, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
The File "./blog/Settings. Py ", line 31, in & lt; module>
The DEBUG=DEBUG
NameError: name 'debug' is not defined
Unable to load the app 0 (mountpoint=' ') (callable not found or the import error)
Traceback (the most recent call last) :
The File "/WWW/below/blogs/blogs/wsgi. Py", line 16, the in & lt; module>
Application=get_wsgi_application ()
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/core/wsgi. Py", line 12, in get_wsgi_application
Django. Setup (set_prefix=False)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/set py", line 19, in the setup
Configure_logging (Settings. LOGGING_CONFIG Settings. LOGGING)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", 56, line in __getattr__
Self. _setup (name)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", 43, line in _setup
Self. _wrapped=Settings (settings_module)
The File "/WWW/below/blog/test_venv/lib/python3.7/site - packages/django/conf/set py", line 106, in __init__
Mod=importlib. Import_module (self. SETTINGS_MODULE)
The File "/WWW/server/panel/pyenv/lib/python3.7/importlib/set py", line 127, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 1006, in _gcd_import
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 983, in _find_and_load
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 967, in _find_and_load_unlocked
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 677, in _load_unlocked
The File "& lt; Frozen importlib. _bootstrap_external & gt;" , line 728, in exec_module
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 219, in _call_with_frames_removed
The File "./blog/Settings. Py ", line 31, in & lt; module>
The DEBUG=DEBUG
NameError: name 'debug' is not defined
Unable to load the app 0 (mountpoint=' ') (callable not found or the import error)
* * * no app. The loaded going full in dynamic mode * * *
UWSGI running as root, you can use - uid/gid/chroot options
* * * WARNING: you are running uWSGI as root!!!!!! (use the uid flag) - * * *
* * * uWSGI is running in multiple interpreter mode * * *
Spawned uWSGI master process (pid 23771)
Spawned uWSGI worker 1 (pid: 23772, cores, 2)
Spawned uWSGI HTTP 1 (23774) pid:

CodePudding user response:

The value of the DEBUG is a True/False to modify it
  • Related