SimpleCharts is a service for viewing statistics of listened tracks, top artists, albums and artists on last.fm in a more informative form.
- registration and authorization of users
- getting information from last.fm user
- saving last.fm user's information to the database
- viewing the songs you've listened to
- viewing top listened tracks per week / month / 3 months / 6 months / year
- viewing top listened artists per week / month / 3 months / 6 months / year
- viewing top listened albums per week / month / 3 months / 6 months / year
- clearing the database to load more recent information
-
Create an account at last.fm (https://www.last.fm/).
-
Create an API account and get API tokens from last.fm API (https://www.last.fm/api/account/create?_pjax=%23content).
-
Install packages from requirements.txt file.
-
Set the environment variable DEBUG (True - for local launch).
-
Add the environment variables API_KEY and API_SECRET received from last.fm API.
-
Add the environment variable DATABASE_URL, indicating the url to the connected database.
-
Add the environment variable lastfm_username according to the name of the account owner of the last.fm API (not necessary).
-
Run the following commands from the directory:
- Apply migrations
python manage.py migrate - Create a superuser for access to project administration
python manage.py createsuperuser - Start the local server
python manage.py runserver
- Apply migrations