Src -> https://www.thetopsites.net/article/53211578.shtml
server {
location / {
proxy_connect_timeout 159s;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 64k;
Src -> https://www.thetopsites.net/article/53211578.shtml
server {
location / {
proxy_connect_timeout 159s;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 64k;
To merge exist migration files into one file:
django_migration
records table (manually)python manage.py migrate --fake
commandpython manage.py makemigrations
commandpython manage.py migrate --fake-initial
commandpython manage.py migrate contenttypes
commandTesting Gunicorn’s Ability to Serve the Project The last thing we want to do before leaving our virtual environment is test Gunicorn to make sure that it can serve the application. We can do this by entering our project directory and using gunicorn to load the project’s WSGI module:
(myenv) $ cd ~/myprojectdir
(myenv) $ gunicorn --bind 0.0.0.0:8000 myproject.wsgi
Creating systemd Socket and Service Files for Gunicorn We have tested that Gunicorn can interact with our Django application, but we should implement a more robust way of starting and stopping the application server. To accomplish this, we’ll make systemd service and socket files.