A simple weather app built with Django. This application serves to demonstrate the fundamentals of logging in Python within the context of a Django application.
See the full tutorial: How to Get Started with Logging in Django.
- Python 3.10 or later.
- SQLite.
- Clone the GitHub repository and
cdinto it:
git clone https://github.com/woojiahao/horus.git && cd horus- Install all application dependencies:
pip install -r requirements.txt- Run the database migrations
python manage.py migrate-
Sign up for a free OpenWeatherMap account and retrieve your API key.
-
Create a
.envfile at the root of your project with the following contents:
OPEN_WEATHER_API_KEY=<api key>
- Start the development server at localhost:8000:
python manage.py runserver- View the application in your browser, and follow the tutorial to learn more.
The code used in this project and in the linked tutorial are licensed under the Apache License, Version 2.0.