I
I
ixotep2020-05-02 14:50:06
Django
ixotep, 2020-05-02 14:50:06

How to fix a Django project?

Hello.
the project worked, but after manipulating the renaming of the application, it stopped working. It gives the following error:

return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django.api'
[02/May/2020 11:46:42] "GET /api/posts/ HTTP/1.1" 500 169757

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ixotep, 2020-05-03
@ixotep

If anyone is interested, the following helped:
1. Remove the virtual environment
2. Create a new Wirth. environment
3. Install dependencies
4. PROFIT

D
Dr. Bacon, 2020-05-02
@bacon

There is no 'django.api' module. Start by reading the documentation about libraries in python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question