This Django application lets you customize the Youtube.
A running example is available here: https://ut.dhedegaard.dk/
- Make sure you have Python 3.6+ installed.
- Make a new virtual environment (optional):
$ virtualenv venv && source venv/bin/activate
- Install the dependencies from
requirements.txt
andrequirements-dev.txt
by:
$ pip install -r requirements.txt -r requirements-dev.txt
- Go into
settings.py
and set theYOUTUBE_API_KEY
to something valid.- Go to: https://console.developers.google.com/
- Enable the Youtube Data API
- Generate an API key (more info: https://developers.google.com/youtube/v3/getting-started)
- Run migrations:
$ python manage.py migrate
- Create a user:
$ python manage.py createsuperuser
- Run the devserver:
$ python manage.py runserver
- Go to http://127.0.0.1:8000/
- Login and start adding youtube channels.
- Run the
update_channels
job periodically, to fetch new youtube videos:
$ python manage.py update_channels
The usual:
- Disable
DEBUG
in settings. - Run using gunicorn, uWSGI or similar.
- Replace the default sqlite database with postgres or similar.
- Add the
update_channels
job to your crontab.