Closed
Description
For one Django site, I use the default setting, which is written in instructions.
{
"listeners": {
"*:80": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": "/static/*"
},
"action": {
"share": "/path/to/app/"
}
},
{
"action": {
"pass": "applications/django"
}
}
],
"applications": {
"django": {
"type": "python 3.X",
"path": "/path/to/app/",
"home": "/path/to/venv/",
"module": "project.wsgi",
"environment": {
"DJANGO_SETTINGS_MODULE": "project.settings",
"DB_ENGINE": "django.db.backends.postgresql",
"DB_NAME": "project",
"DB_HOST": "127.0.0.1",
"DB_PORT": "5432"
}
}
}
}
What if I want to use multiple Django sites? Help me write the configuration for the second site correctly!
Thank you.