File size: 1,352 Bytes
c376d00
 
 
 
 
 
 
 
b1501e9
c376d00
77aeaf0
c376d00
ee0267e
c376d00
ee0267e
c376d00
ee0267e
c376d00
ee0267e
c376d00
4114b0e
c376d00
fb79ec6
c376d00
4114b0e
c376d00
4114b0e
c376d00
 
 
d67a770
c376d00
d67a770
c376d00
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: Django Quiz App
emoji: 🐳
colorFrom: purple
colorTo: gray
sdk: docker
app_port: 8000
---

# Django Quiz App

This is a Dockerized Django application designed to run on Hugging Face Spaces. The application is a quiz site that uses various environment variables and secrets for configuration.

## Model Description

This Dockerized Django application serves a quiz site. It is configured to connect to a PostgreSQL database hosted on Neon.tech and uses OpenAI's API for additional functionalities.

## Intended Use

The application is intended to be used as a quiz platform. It is configured to run in a development environment with debugging enabled.

## How to Use

To run the application, ensure that the following environment variables and secrets are set:

### Environment Variables

- `DJANGO_SETTINGS_MODULE`: The settings module for the Django application.
- `STATIC_BACKEND`: The backend for serving static files.
- `DEBUG`: Set to `True` for development.

### Secrets

- `DBHOST`: The hostname of the PostgreSQL database.
- `DBNAME`: The name of the PostgreSQL database.
- `DBUSER`: The username for the PostgreSQL database.
- `DBPASS`: The password for the PostgreSQL database.
- `DBSSL`: SSL mode for the PostgreSQL database.
- `SECRET_KEY`: The secret key for the Django application.
- `OPENAI_API_KEY`: The API key for OpenAI.