Skip to content
Django simple quick setup
Branch: master
Clone or download
Latest commit 6a37248 Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
djeasy package.json update. Feb 25, 2017
.gitignore .gitignore update. Feb 11, 2017
LICENSE Initial commit Feb 10, 2017
MANIFEST.in Initial commit Feb 10, 2017
README.md Update README.md Feb 13, 2019
setup.cfg pypi upload. Feb 10, 2017
setup.py package.json update. Feb 25, 2017

README.md

Compatibility

  • Django 1.8+
  • Python 3.x +
  • Distribution : Debian Derivatives

Installations

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

Package

pip3 install djeasy

Configuration

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

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

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

DjEasy

djeasy

Output :

--create                      Create a new site.
--nginx                       Nginx restart
Project_name --gunicorn       Gunicorn restart

Site Publishing Steps

  • Creating a virtual environment.

Follow the steps in turn.

cd /home/
virtualenv -p python3 DjangoEnv
  • Upload your app.

We can create a copy of the project you wrote with Django.

Example :

cd /home/
git clone https://github.com/AliYmn/aliyaman.org
mv aliyaman.org DjangoBlog
  • Let's run the package.

We'll finish the process in four steps.

djeasy --create

NOT : When entering multiple site addresses, leave a space.

Example;

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

  • Restart the server

Commands used ;

--nginx                       Nginx restart
Project_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.

You can’t perform that action at this time.