Skip to content

Commit d70cfd4

Browse files
committed
2 parents f6050eb + c424843 commit d70cfd4

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# quiz-application
2+
A Quiz Application made with Django and HTMX
3+
4+
## How to install
5+
6+
1. Clone the repository using the following command
7+
```
8+
git clone https://github.com/vivekthedev/quiz-application.git .
9+
```
10+
11+
2. Create a python virtual environment to install dependencies
12+
```
13+
python -m venv env
14+
```
15+
16+
3. Activate the envrionment according to your machine type:
17+
18+
- (Windows) `env\Scripts\activate`
19+
- (Mac/Linux) `source bin/activate`
20+
21+
4. Install the dependencies in virtual envrionment.
22+
```
23+
pip install -r requirements.txt
24+
```
25+
26+
6. Migrate Database to create tables in SQLite
27+
```
28+
python manage.py migrate
29+
```
30+
31+
6. Run the Django Server
32+
```
33+
python manage.py runserver
34+
```
35+
36+

core/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131

132132
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
133133
AUTH_USER_MODEL = "quiz.User"
134+
CRISPY_TEMPLATE_PACK = "bootstrap4"
134135

135136
LOGIN_URL = "quiz:login"
136137
LOGOUT_REDIRECT_URL = "quiz:logout"

0 commit comments

Comments
 (0)