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.
- Python (Django)
- HTML & BOOTSTRAP & CSS
- PostgreSQL
- Docker
- APIs:
- Spotify API
- Openweather API
- Geolocation API
- NEWS API
- Clone the repository
git clone <link>
- Install requirements
pip intall -r requirements.txt
- .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>
- Make migrations
py manage.py makemigrations
py manage.py migrate
- Create superuser
py manage.py createsuperuser
To send newsletter you need to be registered on admin account.
Then go to url /newsletter/send and you can write an email.