U
U
uturet2017-05-30 15:48:35
Django
uturet, 2017-05-30 15:48:35

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:80everything 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.

Screenshot of the error page
73c1911dd66348ddb3c1096f8099a2df.png

What data to write?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
uturet, 2017-05-31
@uturet

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-packagesnecessary libraries to /home/projects/djenv/lib/python3.5/site-packagesthose that were duplicated there, and everything worked.

A
Alexander Penshin, 2017-05-30
@apenshin

Is djenv requests installed in the virtual environment (pip freeze)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question