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
#or
pip3 install djeasy
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
Do not forget to add the requirements.txt file.
Django Settings.py ALLOWED_HOSTS = [] server ip or domain add.
djeasy
Output :
--create Create a new site.
--nginx Nginx restart
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
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, 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;
NOT : The Json file is saved in the home directory, please do not delete it.
Version | Tag | Published |
---|---|---|
2.0.1 | 3yrs ago | |
2.0.0 | 5yrs ago | |
1.9.0 | 5yrs ago | |
1.8.0 | 5yrs ago |