Answer the question
In order to leave comments, you need to log in
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
Nginx + uwsgi
https://habrahabr.ru/post/226419/
Everything is simple and step by step
---"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
Read deployment deployment guides in production? There are thousands of them on the Internet. Look for uwsgi
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).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question