Skip to content

This is a simple weather app that uses Open Weather API and Django as backend Framework.

License

Notifications You must be signed in to change notification settings

ibouzidi/dj_weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-App-Django

This is a simple weather app that uses Open Weather API and Django as backend Framework.

Links

Setup

  1. Clone this repository:
     git clone https://github.com/ibouzidi/dj_weather_app.git
  2. Install requirements :
     pip install -r requirements.txt
  3. Migrate database :
    python manage.py migrate
  4. 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
  5. Run server :
    python manage.py runserver

Setup admin

  1. Create super user:
    python manage.py createsuperuser
  2. Access Aadmin page with super user login and password.

Load data

  1. Go to weather/fixtures and add your city preference.
  2. Load these data with :
    python manage.py loaddata city

About

This is a simple weather app that uses Open Weather API and Django as backend Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published