Pamela Fox commited on
Commit
f29ddfe
Β·
1 Parent(s): 79d1118
README.md CHANGED
@@ -48,13 +48,13 @@ If you're not using one of those options for opening the project, then you'll ne
48
  3. Run the migrations:
49
 
50
  ```
51
- python3 manage.py migrate
52
  ```
53
 
54
- 4. Run the local server:
55
 
56
  ```
57
- python3 manage.py runserver
58
  ```
59
 
60
  5. Navigate to the displayed URL to verify the website is working.
@@ -78,8 +78,8 @@ python3 manage.py createsuperuser
78
  Run tests:
79
 
80
  ```
81
- python3 manage.py collectstatic
82
- coverage run --source='.' manage.py test quizzes
83
  coverage report
84
  ```
85
 
@@ -90,7 +90,7 @@ The same tests are also run as a Github action.
90
 
91
  This repository is set up for deployment on Azure App Service (w/PostgreSQL flexible server) using the configuration files in the `infra` folder.
92
 
93
- 1. Sign up for a [free Azure account](https://azure.microsoft.com/free/)
94
  2. Install the [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd). (If you open this repository in Codespaces or with the VS Code Dev Containers extension, that part will be done for you.)
95
  3. Login to Azure:
96
 
 
48
  3. Run the migrations:
49
 
50
  ```
51
+ python3 src/manage.py migrate
52
  ```
53
 
54
+ 4. Run the local server at port 8000:
55
 
56
  ```
57
+ python3 src/manage.py runserver 8000
58
  ```
59
 
60
  5. Navigate to the displayed URL to verify the website is working.
 
78
  Run tests:
79
 
80
  ```
81
+ python3 src/manage.py collectstatic
82
+ coverage run --source='.' src/manage.py test quizzes
83
  coverage report
84
  ```
85
 
 
90
 
91
  This repository is set up for deployment on Azure App Service (w/PostgreSQL flexible server) using the configuration files in the `infra` folder.
92
 
93
+ 1. Sign up for a [free Azure account](https://azure.microsoft.com/free/) and create an Azure Subscription.
94
  2. Install the [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd). (If you open this repository in Codespaces or with the VS Code Dev Containers extension, that part will be done for you.)
95
  3. Login to Azure:
96
 
azure.yaml CHANGED
@@ -5,6 +5,6 @@ metadata:
5
  template: [email protected]
6
  services:
7
  web:
8
- project: .
9
  language: py
10
  host: appservice
 
5
  template: [email protected]
6
  services:
7
  web:
8
+ project: ./src
9
  language: py
10
  host: appservice
requirements-dev.txt CHANGED
@@ -1,4 +1,4 @@
1
- -r requirements.txt
2
  black
3
  pre-commit
4
  ruff
 
1
+ -r src/requirements.txt
2
  black
3
  pre-commit
4
  ruff
manage.py β†’ src/manage.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/__init__.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/asgi.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/production.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/settings.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/urls.py RENAMED
File without changes
{quizsite β†’ src/quizsite}/wsgi.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/__init__.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/admin.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/apps.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/migrations/0001_initial.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/migrations/0002_remove_question_answer_status_and_more.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/migrations/__init__.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/models.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/static/quizzes/images/papyrus.webp RENAMED
File without changes
{quizzes β†’ src/quizzes}/static/quizzes/style.css RENAMED
File without changes
{quizzes β†’ src/quizzes}/templates/quizzes/display.html RENAMED
File without changes
{quizzes β†’ src/quizzes}/templates/quizzes/index.html RENAMED
File without changes
{quizzes β†’ src/quizzes}/templates/quizzes/partial.html RENAMED
File without changes
{quizzes β†’ src/quizzes}/tests.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/urls.py RENAMED
File without changes
{quizzes β†’ src/quizzes}/views.py RENAMED
File without changes
requirements.txt β†’ src/requirements.txt RENAMED
File without changes