Answer the question
In order to leave comments, you need to log in
How to load required libraries into django server?
The server is running nginx uwsgi python3. I loaded the libraries into the virtual environment and started the server through python3 manage.py runserver 0:80
everything worked, but when I launched it through nginx and uwsgi, I threw an error, even after I installed the necessary libraries on the server itself, and not the virtual environment.
Answer the question
In order to leave comments, you need to log in
The problem was solved
I rummaged through the folders of my virtual environment and found nothing. No modules were installed in it, I transferred it from the /usr/lib/python3.5/site-packages
necessary libraries to /home/projects/djenv/lib/python3.5/site-packages
those that were duplicated there, and everything worked.
Is djenv requests installed in the virtual environment (pip freeze)?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question