V
V
verity18862016-04-21 14:32:49
Django
verity1886, 2016-04-21 14:32:49

How to make it possible to access the site on Django at the address “sitenmae.ru”, and not “sitename.ru:8000” and not start runserver every time?

I have a test hosting (VPS). I installed python 2.7.9 and Django 1.8.1 on it. To look at the site, I have to run the python manage.py runserver sitenmae.ru:8001 command through PuTTy, and then follow this link. Tell me how to do it right?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
P
Pavel Aksenov, 2016-04-21
@verity1886

Nginx + uwsgi
https://habrahabr.ru/post/226419/
Everything is simple and step by step

M
mukizu, 2016-04-21
@mukizu

Nginx + Gunicorn, e.g.
docs.gunicorn.org/en/latest/deploy.html

B
Bulat Kurbangaliev, 2016-04-21
@ilov3

---"Bad advice mode enabled"---
sudo python manage.py runserver sitename.ru:80
---"Bad advice mode turned off"---
Lead development locally (perhaps in a virtual machine), and run in production before apache 'm or nginx'm

I
Ilya, 2016-04-21
@FireGM

Read deployment deployment guides in production? There are thousands of them on the Internet. Look for uwsgi

A
Alexey Sergeev, 2016-04-21
@SergeevAI

DigitalOcean has a good guide on this topic + look there for supervisor.
PS: If you use python3, don't forget to install python3-dev
And there is a lot of information on Google for all the incomprehensible moments and errors (If any).

A
Andrey Minisol, 2016-04-21
@AmadeyMinisol

proxying from the same nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question