This is a simple weather app that uses Open Weather API and Django as backend Framework.
- Clone this repository:
git clone https://github.com/ibouzidi/dj_weather_app.git
- Install requirements :
pip install -r requirements.txt
- Migrate database :
python manage.py migrate
- Get API KEY from Open Weather API and change url
url = 'https://api.openweathermap.org/data/2.5/weather?q={}&units=metric&lang=fr&appid={YOUR API KEY}'
in weather/views.py - Run server :
python manage.py runserver
- Create super user:
python manage.py createsuperuser
- Access Aadmin page with super user login and password.
- Go to weather/fixtures and add your city preference.
- Load these data with :
python manage.py loaddata city