Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helenanevesbr/django-trivia-website
A Trivia website for users to test their knowledge on Django framework. Built with Python 3.10.12 and Django 5.0.2 with the purpose of practicing.
https://github.com/helenanevesbr/django-trivia-website
django python sqlite
Last synced: 13 days ago
JSON representation
A Trivia website for users to test their knowledge on Django framework. Built with Python 3.10.12 and Django 5.0.2 with the purpose of practicing.
- Host: GitHub
- URL: https://github.com/helenanevesbr/django-trivia-website
- Owner: helenanevesbr
- Created: 2024-02-23T00:37:42.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-04T23:17:14.000Z (9 months ago)
- Last Synced: 2024-03-05T00:31:18.146Z (9 months ago)
- Topics: django, python, sqlite
- Language: Python
- Homepage: https://trivia-ariannedee.pythonanywhere.com/
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Trivia Website
## Introduction
A Trivia website for users to test their knowledge on Django framework. Built with Python 3.11 and Django 4.2 with the purpose of practicing.
[Original project](https://github.com/ariannedee/intro-to-django)
[OReilly Course](https://learning.oreilly.com/course/introduction-to-django/9780138320775/)### Live Site
Check out the live version of the trivia website here: [Trivia Website](https://trivia-ariannedee.pythonanywhere.com/)## Technologies
- **Backend Framework**: Django 5.0.2
- **Programming Language**: Python 3.10.12
- **Database**: SQLite
- **Frontend**: HTML, CSS, JavaScript (Django Templates)## Local Setup
To set up the project locally, follow these steps:1. **Clone the repository**
```bash
git clone
cd trivia-website
```
2. **Create and activate a virtual environment**
For Unix/macOS:
```bash
python3 -m venv env
source venv/bin/activate
```
For Windows:
```bash
py -m venv env
.\env\Scripts\activate
```
3. **Install the dependencies**
```bash
pip install -r requirements.txt
```
4. **Set up the database**
```bash
python manage.py makemigrations
python manage.py migrate
```
5. **Run the development server**
```bash
python manage.py runserver
```
Access the website at `http://127.0.0.1:8000/`## Features
- Basic user login/singup
- Staff can edit questions using Django forms
- Admin site for managing users and questions
- Sessions for remembering quiz state
- Production and local settings
- Environs and .env file
- Uploaded user avatars
- Django Debug Toolbar configured in development