Django Audio Feed is a simple web application that allows to create custom RSS podcast feeds.
- Prepare SQLite database
cd daf
cp db.sqlite3 db.sqlite3.bak
python manage.py flush --no-input
python manage.py createsuperuser
- Build docker container
make docker
- Go to deploy host and prepare required files. Example of uwsgi.ini. For
local_settings
required variables:DATABASES
,SECRET_KEY
,DEBUG
,ALLOWED_HOSTS
.
conf/local_settings.py
conf/uwsgi.ini
conf/db.sqlite3
- Run docker container
docker run -d --name daf -p 8084:8084 \
--volume $PWD/data/conf:/data/conf \
--volume $PWD/data/media:/var/daf/media \
--volume $PWD/data/static:/var/daf/static \
--restart always z0rr0/daf
- Collect static files
docker exec -it daf /bin/sh -c "cd /var/daf && python manage.py collectstatic --no-input"
- Check HTTP response:
curl -X GET http://localhost:8084
- If nginx is used as a web-frontend, read documentation
This source code is governed by a MIT license that can be found in the LICENSE file.