Home > other >  Help you! Questions about the Django!
Help you! Questions about the Django!

Time:09-25

D: \ TestDjango \ book> Python manage. Py runserver then executes
Unhandled exception in the thread started by & lt; The function check_errors. & lt; Locals> The wrapper at 0 x000001efbe76b2f0 & gt;
Traceback (the most recent call last) :
The File "D: \ python3 \ lib \ site - packages \ django \ utils \ autoreload py", line 225, wrapper in
Fn (* args, * * kwargs)
The File "D: \ python3 \ lib \ site - packages \ django/core/management/commands \ runserver then executes py", line 109, in inner_run
Autoreload. Raise_last_exception ()
The File "D: \ python3 \ lib \ site - packages \ django \ utils \ autoreload py", line 248, in raise_last_exception
Raise _exception [1]
File "D: \ python3 \ lib \ site - packages \ django/core/management/set py", line 337, in the execute
Autoreload. Check_errors (django. Setup) ()
The File "D: \ python3 \ lib \ site - packages \ django \ utils \ autoreload py", line 225, wrapper in
Fn (* args, * * kwargs)
The File "D: \ python3 \ lib \ site - packages \ django \ set py", line 24, in the setup
Apps. The populate (Settings. The INSTALLED_APPS)
The File "D: \ python3 \ lib \ site - packages \ django \ apps \ registry py", line 112, in the populate
App_config. Import_models ()
The File "D: \ python3 \ lib \ site - packages \ django \ apps \ config py", line 198, in import_models
Self. Models_module=import_module (models_module_name)
The File "D: \ python3 \ lib \ importlib \ set py", line 126, in import_module
Return _bootstrap. _gcd_import (name [level:], package, level)
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 994, in _gcd_import
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 971, in _find_and_load
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 955, in _find_and_load_unlocked
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 665, in _load_unlocked
The File "& lt; Frozen importlib. _bootstrap_external & gt;" , line 678, in exec_module
The File "& lt; Frozen importlib. _bootstrap & gt;" , line 219, in _call_with_frames_removed
The File "D: \ TestDjango/book/login/models. Py", line 2, the in & lt; module>
The from DjangoUeditor. Models import UEditorField
The File "D: \ python3 \ lib \ site - packages \ DjangoUeditor \ models py", line 4, the in & lt; module>
The from widgets import UEditorWidget, AdminUEditorWidget
ModuleNotFoundError: No module named 'widgets'

The last error is a problem of widgets; But I am looking for a long time on the net, is say it's because I'm DjangoUeditor and python version not only lead to adapt to, and then taught me to specify the version DjangoUeditor, the key is to download, install and successful, finally submitted to the wrong...

CodePudding user response:

I've never used DjangoUeditor, do do?


DjangoUeditor is based on the Python 2.7, support for Python3 has a problem, lead to widgets. Py file error, can't import, the solution to modify widgets. Py or modified version online DjangoUeditor3
https://github.com/twz915/DjangoUeditor3
  • Related