D
D
dr sbtn2016-10-02 13:16:42
Django
dr sbtn, 2016-10-02 13:16:42

How to deal with running uwsgi?

I enter this line in the terminal:

$ uwsgi --http :8080 --home /home/darya/gorgeousrouteProject/gorgeousrouteEnv --chdir /home/darya/gorgeousrouteProject/gorgeousrouteApp -w wsgi.py

to which he answers me: (specially highlighted the line that is of particular interest to me) the
7d2ca7f84e7f4d25982947ed109ab3d1.png
folder with the environment is in the project folder.
the wsgi.py file is in the gorgeousrouteApp folder.
what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-10-03
@sim3x

sudo apt-get install uwsgi uwsgi-plugin-python3

virtualenv tdjango -p `which python3`

source tdjango/bin/activate

pip install django

django-admin startproject progtdjango

uwsgi --http-socket :8000 --plugins python3 \
--module=progtdjango.wsgi:application \
--home `pwd`/tdjango \
--chdir `pwd`/progtdjango

Now you can open 127.0.0.1:8000
in the browser further here
https://www.digitalocean.com/community/tutorials/h...
Just don't do it
there are already such packages in ubuntu
sudo apt-get install virtualenv virtualenvwrappe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question