Skip to main content

Django Deploy on Server

Project description


  • Django 1.8+
  • Python 3.x +
  • Python 2.x +
  • Support OS : Ubuntu (Debian Derivatives)
  • Centos (not yet)

You should check this package.


sudo apt-get install python-pip
sudo apt-get install python3-pip
sudo apt-get install virtualenv


pip install djeasy
pip3 install djeasy


This is important this project. Because your project doesn't match this directory doesn't work.

  • You must add requirements.txt

# Example Project ;

├── DjangoBlog
│   ├──
│   ├──
│   └──
│   └──
├── Blog
│    ├──
│    └──
│    └──
│    └──
│    └──
requirements.txt ---> Add!!

Example requirements.txt :

  • Do not forget to add the requirements.txt file.

  • Django ALLOWED_HOSTS = [] server ip or domain add.



Output :

--create                      Create a new site.
--nginx                       Nginx restart

Site Publishing Steps

  • You must create virtualenv for your project and this package.
  • NOT : You should know virtualenv name to use djeasy.

You can follow this;

cd /home/ # as you wish. My recommended in your /home/ directory.

virtualenv -p python3 DjangoEnv # example name : DjangoEnv
  • Upload or clone your project in server directory like /home/

Example :

cd /home/
git clone
mv DjangoBlog # to change name
  • Let's run the package.

We'll finish the process in four steps.

djeasy --create

  • You can give any name you want for nginx and gunicorn name. But you should don't keep in mind names, because you'll use this for restart nginx and gunicorn.

NOT : You can write multiple site. For example,


server ip or domain =

  • Restart the server

Commands used ;

--nginx                        Nginx restart
gunicorn_name --gunicorn       Gunicorn restart


djeasy --nginx
djeasy DjangoBlog --gunicorn


Process completed successfully.

NOT : The Json file is saved in the home directory, please do not delete it.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djeasy-2.0.3.tar.gz (8.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page