Skip to content

☁️ An application written using Django, Weather API, and Spotify API which, depending on your weather, offers you a random Spotify playlist based on the weather.

License

Notifications You must be signed in to change notification settings

DEENUU1/DJANGO-WEATHER-MUSIC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WEATHER SPOTIFY

Music based on the weather and the most popular news in your country.

This application allows you to check actuall weather and give a random playlist on spotify based on weather. You also check the most popular news in your country.
For more content you can register to the newsletter to get weakly interesting informations.

Technology that I used:

  • Python (Django)
  • HTML & BOOTSTRAP & CSS
  • PostgreSQL
  • Docker
  • APIs:
    • Spotify API
    • Openweather API
    • Geolocation API
    • NEWS API

Demo

Documentation

  1. Clone the repository
git clone <link>
  1. Install requirements
pip intall -r requirements.txt
  1. .env

Inside direction "weathermusic" where settings.py is located you need to create file called ".env" and paste this:

SECRET_KEY=<DJANGO SECRET KEY>
EMAIL=<YOUR GMAIL EMAIL ADDRESS>
PASSWORD=<YOUR GMAIL PASSWORD>
CLIENT_ID=<TO YOUR SPOTIFY ACCOUNT>
CLIENT_SECRET=<TO YOUR SPOTIFY ACCOUNT>
AUTH_URL=https://accounts.spotify.com/api/token
WEATHER_KEY=<API KEY FROM OPENWEATHERMAP>
GEOLOCATION_KEY=<API KEY FROM IPGEOLOCATION>
NEWS_KEY=<API KEY FROM NEWSAPI>
  1. Make migrations
py manage.py makemigrations
py manage.py migrate
  1. Create superuser
py manage.py createsuperuser

Newsletter:

To send newsletter you need to be registered on admin account.
Then go to url /newsletter/send and you can write an email.

License

MIT

About

☁️ An application written using Django, Weather API, and Spotify API which, depending on your weather, offers you a random Spotify playlist based on the weather.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published