https://github.com/betterstack-community/horus
Weather app built with Django and SQLite
https://github.com/betterstack-community/horus
Last synced: 1 day ago
JSON representation
Weather app built with Django and SQLite
- Host: GitHub
- URL: https://github.com/betterstack-community/horus
- Owner: betterstack-community
- License: apache-2.0
- Created: 2023-07-03T09:46:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-28T09:35:43.000Z (about 1 year ago)
- Last Synced: 2025-05-28T10:35:37.733Z (about 1 year ago)
- Language: Python
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Horus
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](https://betterstack.com/community/guides/logging/how-to-start-logging-with-django/).
## 🟢 Prerequisites
- [Python 3.10](https://docs.python.org/3/using/index.html) or later.
- [SQLite](https://www.servermania.com/kb/articles/install-sqlite/).
## 📦 Getting started
- Clone the GitHub repository and `cd` into it:
```bash
git clone https://github.com/woojiahao/horus.git && cd horus
```
- Install all application dependencies:
```bash
pip install -r requirements.txt
```
- Run the database migrations
```bash
python manage.py migrate
```
- Sign up for a [free OpenWeatherMap account](https://openweathermap.org/) and
retrieve your API key.
- Create a `.env` file at the root of your project with the following contents:
```text
OPEN_WEATHER_API_KEY=
```
- Start the development server at localhost:8000:
```bash
python manage.py runserver
```
- View the application in your browser, and
[follow the tutorial](https://betterstack.com/community/guides/logging/how-to-start-logging-with-django/)
to learn more.
## âš– License
The code used in this project and in the linked tutorial are licensed under the
[Apache License, Version 2.0](LICENSE).