Metadata-Version: 2.1
Name: djangodeployer
Version: 0.1.0
Summary: Deploy django project
Home-page: UNKNOWN
Author: Hristo Mavrodiev
Author-email: h.mavrodiev@abv.bg
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown

# djangodeployer  
Deploy django project with nginx, gunicorn, supervisor, postgresql on debian.

### Quick start    
Creates the basic config file.  
``` bash
djangodeployer init
```
Edit the basic configuration dj_config.json.  
``` jsonc
{
    "IP_ADDRESS": "0.0.0.0",        # server public ip address
    "SERVER_NAME": "django-server", # hostname of the server
    "LINUX_USER": "dj",             # server username
    "DJ_PROJ": "djangosite",        # django project name
    "PG_USER": "djadmin",           # postgresql database username
    "PG_DB": "djangodb",            # postgresql database name
    "DOMAIN_NAME": "mywebsite.com"  # domain name
}
```
Deploy with the command:
``` bash
djangodeployer deploy
```
### Acknowledgments
 Most of the functions use the code from Corey Schafer's youtube channel:
 - https://www.youtube.com/watch?v=Sa_kQheCnds&t=2952s  
 - https://www.youtube.com/watch?v=goToXTC96Co  
 - CoreyMSchafer - https://github.com/CoreyMSchafer  
The code is wrapped in a python package to automate the deployment.  


### License
MIT


