https://github.com/betterstack-community/world-clock
Django World Clock Application
https://github.com/betterstack-community/world-clock
Last synced: about 1 month ago
JSON representation
Django World Clock Application
- Host: GitHub
- URL: https://github.com/betterstack-community/world-clock
- Owner: betterstack-community
- License: apache-2.0
- Created: 2023-02-07T09:47:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T09:54:27.000Z (over 3 years ago)
- Last Synced: 2025-03-03T11:17:27.016Z (about 1 year ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django World Clock
A world clock application built to demonstrate logging with [Loguru](https://github.com/Delgan/loguru).
**Tutorial**: [A Complete Guide to Logging in Python with Loguru](https://betterstack.com/community/guides/logging/loguru/).

## 🟢 Prerequisites
You must have the latest version of [Python 3](https://www.python.org) installed on your machine. This project is tested against Python 3.10.0.
## 📦 Getting started
- Clone this repo to your machine:
```bash
git clone https://github.com/betterstack-community/django-world-clock.git
```
- `cd` into the project directory:
```bash
cd django-world-clock
```
- Install Python virtual environment:
```bash
python3 -m venv env
```
- Activate the virtual environment.
On Windows, run:
```bash
env\Scripts\activate
```
On Unix or macOS, run:
```bash
source env/bin/activate
```
- `cd` into the `djangoWorldClock` app directory:
```bash
cd djangoWorldClock
```
- Install the requirements:
```bash
python -m pip install -r requirements.txt
```
- Run database migrations:
```bash
python manage.py migrate
```
- Start the dev server:
```bash
python manage.py runserver
```
You should see the following output if the dev server is started successfully:
```text
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
September 18, 2022 - 18:21:58
Django version 4.1.1, using settings 'djangoWorldClock.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
```
Open your browser and go to [http://127.0.0.1:8000/](http://127.0.0.1:8000/)
## âš– License
The code used in this project and in the linked tutorial are licensed under the [Apache License, Version 2.0](LICENSE).