djeasy

DjEasy 🎡

PyPI version License Downloads Forks Stars Contributors

Welcome to DjEasy, your go-to tool for simplifying Django project deployments without docker etc.

Compatibility

Installation πŸ› οΈ

Ensure you have the following installed:

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

Package

pip install djeasy
#or
pip3 install djeasy

Configuration

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

#Β Example Project ;

DjangoBlog
β”œβ”€β”€ DjangoBlog
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ settings.py
β”‚   └── urls.py
β”‚   └── wsgi.py
β”œβ”€β”€ Blog
β”‚    β”œβ”€β”€ __init__.py
β”‚    └── admin.py
β”‚    └── apps.py
β”‚    └── tests.py
β”‚    └── views.py
requirements.txt ---> Add!!

Example requirements.txt : https://goo.gl/0Y9yCB

DjEasy

djeasy

Output :

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

Site Publishing Steps

You can follow this;

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

virtualenv -p python3 DjangoEnv # example name : DjangoEnv

Example :

cd /home/
git clone https://github.com/AliYmn/aliyaman.org
mv aliyaman.org DjangoBlog #Β to change name

We’ll finish the process in four steps.

djeasy --create

NOT : You can write multiple site. For example, example1.com example2.com

Example;

server ip or domain = 192.241.163.191 example.com blog.example.com ***

Commands used ;

--nginx                        Nginx restart
gunicorn_name --gunicorn       Gunicorn restart

Example;

djeasy --nginx
djeasy DjangoBlog --gunicorn

Output;

Process completed successfully.

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