Tutorial by Examples

Install gunicorn pip install gunicorn From django project folder (same folder where manage.py resides), run the following command to run current django project with gunicorn gunicorn [projectname].wsgi:application -b 127.0.0.1:[port number] You can use the --env option to set the pat...
Download Heroku Toolbelt. Navigate to the root of the sources of your Django app. You'll need tk Type heroku create [app_name]. If you don't give an app name, Heroku will randomly generate one for you. Your app URL will be http://[app name].herokuapp.com Make a text file with the ...
Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. It lets you execute arbitrary Python functions via the command line. Install fabric via pip install fabric Create fabfile.py in your root directory...
If you plan to host your Django website on Heroku, you can start your project using the Heroku Django Starter Template : django-admin.py startproject --template=https://github.com/heroku/heroku-django-template/archive/master.zip --name=Procfile YourProjectName It has Production-ready configurati...
Three basic tools. nginx - free, open-source, high-performance HTTP server and reverse proxy, with high performance; gunicorn - 'Green Unicorn' is a Python WSGI HTTP Server for UNIX (needed to manage your server); supervisor - a client/server system that allows its users to monitor and control ...
Recommended way of production deployment calls for using Apache/Nginx for serving the static content. Thus, when DEBUG is false static and media contents fail to load. However, we can load the static content in deployment without having to setup Apache/Nginx server for our app using: python manage....

Page 1 of 1