File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ jobs:
25
25
uses : astral-sh/setup-uv@v5
26
26
27
27
- name : Install dependencies
28
- run : |
29
- uv sync --frozen
28
+ run : uv sync --frozen
30
29
31
30
- name : Run Django tests
32
31
env :
33
- PYTHONPATH : ${{ github.workspace }}/reportdb
32
+ PYTHONPATH : ${{ github.workspace }}
33
+ DJANGO_SETTINGS_MODULE : conf.settings
34
34
run : |
35
35
uv run reportdb/manage.py test
36
36
Original file line number Diff line number Diff line change 1
- """Django settings for reportdb project.
2
-
3
- Generated by 'django-admin startproject' using Django 4.2.1.
4
-
5
- For more information on this file, see
6
- https://docs.djangoproject.com/en/4.2/topics/settings/
7
-
8
- For the full list of settings and their values, see
9
- https://docs.djangoproject.com/en/4.2/ref/settings/
10
- """
11
-
12
1
import os
13
2
import socket
14
3
from pathlib import Path
64
53
"debug_toolbar.middleware.DebugToolbarMiddleware" ,
65
54
]
66
55
67
- # noinspection PyUnresolvedReferences
68
- ROOT_URLCONF = "reportdb.urls"
56
+ ROOT_URLCONF = "conf.urls"
69
57
70
58
TEMPLATES = [
71
59
{
84
72
},
85
73
]
86
74
87
- WSGI_APPLICATION = "reportdb .wsgi.application"
75
+ WSGI_APPLICATION = "conf .wsgi.application"
88
76
89
77
90
78
# Database
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
"""Django's command-line utility for administrative tasks."""
3
3
4
- import os
5
4
import sys
6
5
7
6
8
7
def main () -> None :
9
8
"""Run administrative tasks."""
10
- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "reportdb.settings" )
11
9
try :
12
10
from django .core .management import execute_from_command_line
13
11
except ImportError as exc :
You can’t perform that action at this time.
0 commit comments