DJANGO-WEATHER-MUSIC

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

Visit original content creator repository https://github.com/DEENUU1/DJANGO-WEATHER-MUSIC

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *