Skip to content

dbeley/django-lastfm

Repository files navigation

django-lastfm

Simple django site acting as a frontend for:

Secrets

To run the website, you will need some config files.

secret.ini

[django]
SECRET_KEY = secret_key_here

config_lastfm.ini

[lastfm]
username=username_here
api_key=api_key_here
api_secret=api_secret_here

.env file

REDIS_URLS=redis://localhost
# optional, for docker + traefik
DEFAULT_NETWORK=trafik-network
DOMAIN=localhost

Environment variables

If you can't use ini files (i.e. when deploying with heroku), you can use those environment variables:

  • PYLAST_USERNAME
  • PYLAST_API_KEY
  • PYLAST_API_SECRET
  • DJANGO_SECRET_KEY
  • REDIS_URL