udpate project structure in README

This commit is contained in:
ducoterra
2018-09-28 21:40:22 -04:00
parent 39ab8ec83a
commit c424f89350

View File

@@ -230,19 +230,19 @@ fi
```
Next the script starts the Django project. You'll notice that the project structure looks like this:
```
[projectname]/
├── [projectname]/
│ ├── [projectname]/
│ │ ├── __init__.py
│ │ ├── settings.py
│ │ ├── urls.py
│ │ └── wsgi.py
│ └── manage.py
└── venv/
```
When making changes to nginx or gunicorn it's important to keep this structure in mind. There are 3 folders called ```$projectname```.
After this, the script updates allowed hosts, collects static, and makes migrations.
[projectname]/
├── [config]/
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── manage.py
└── venv/
```
When making changes to nginx or gunicorn it's important to keep this structure in mind.
After starting the Django project, the script updates allowed hosts, collects static, and makes migrations.
### Gunicorn
```bash
@@ -253,7 +253,7 @@ After=network.target
[Service]
User=$user
Group=nginx
Group=www-data
WorkingDirectory=/home/$user/$projectname/$projectname
ExecStart=/home/$user/$projectname/venv/bin/gunicorn --workers 3 --bind unix:/home/$user/$projectname/$projectname.sock $projectname.wsgi:application