Skip to content

Commit 673cc07

Browse files
committed
settings clean up
1 parent b3e81d9 commit 673cc07

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

tests/test_app/settings.py

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# Build paths inside the project like this: BASE_DIR / 'subdir'.
1616
BASE_DIR = Path(__file__).resolve().parent.parent
1717

18-
1918
# Quick-start development settings - unsuitable for production
2019
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
2120

@@ -24,12 +23,9 @@
2423

2524
# SECURITY WARNING: don't run with debug turned on in production!
2625
DEBUG = True
27-
2826
ALLOWED_HOSTS = []
2927

30-
3128
# Application definition
32-
3329
INSTALLED_APPS = [
3430
"django.contrib.admin",
3531
"django.contrib.auth",
@@ -40,7 +36,6 @@
4036
"channels", # Websocket library
4137
"test_app", # This test application
4238
]
43-
4439
MIDDLEWARE = [
4540
"django.middleware.security.SecurityMiddleware",
4641
"django.contrib.sessions.middleware.SessionMiddleware",
@@ -50,9 +45,7 @@
5045
"django.contrib.messages.middleware.MessageMiddleware",
5146
"django.middleware.clickjacking.XFrameOptionsMiddleware",
5247
]
53-
5448
ROOT_URLCONF = "test_app.urls"
55-
5649
TEMPLATES = [
5750
{
5851
"BACKEND": "django.template.backends.django.DjangoTemplates",
@@ -68,13 +61,10 @@
6861
},
6962
},
7063
]
71-
7264
ASGI_APPLICATION = "test_app.asgi.application"
7365

74-
7566
# Database
7667
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
77-
7868
DATABASES = {
7969
"default": {
8070
"ENGINE": "django.db.backends.sqlite3",
@@ -85,7 +75,6 @@
8575

8676
# Password validation
8777
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
88-
8978
AUTH_PASSWORD_VALIDATORS = [
9079
{
9180
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
@@ -101,38 +90,26 @@
10190
},
10291
]
10392

104-
10593
# Internationalization
10694
# https://docs.djangoproject.com/en/3.2/topics/i18n/
107-
10895
LANGUAGE_CODE = "en-us"
109-
11096
TIME_ZONE = "UTC"
111-
11297
USE_I18N = True
113-
11498
USE_L10N = True
115-
11699
USE_TZ = True
117100

118101

119-
# Static files (CSS, JavaScript, Images)
120-
# https://docs.djangoproject.com/en/3.2/howto/static-files/
121-
122-
STATIC_URL = "/static/"
123-
124102
# Default primary key field type
125103
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
126-
127104
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
128-
129105
STATIC_ROOT = os.path.join(BASE_DIR, "static-deploy")
130106

131107
# Static Files (CSS, JavaScript, Images)
108+
# https://docs.djangoproject.com/en/3.2/howto/static-files/
109+
STATIC_URL = "/static/"
132110
STATICFILES_DIRS = [
133111
os.path.join(BASE_DIR, "test_app", "static"),
134112
]
135-
136113
STATICFILES_FINDERS = [
137114
"django.contrib.staticfiles.finders.FileSystemFinder",
138115
"django.contrib.staticfiles.finders.AppDirectoriesFinder",

0 commit comments

Comments
 (0)