Skip to content

Commit e3507cb

Browse files
author
Mario Colombo
committed
standardize app name
1 parent 5640fc0 commit e3507cb

File tree

13 files changed

+24
-23
lines changed

13 files changed

+24
-23
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ WORKDIR /app
33
COPY . /app
44
RUN pip install -r requirements.txt
55
RUN python manage.py collectstatic --noinput
6-
CMD uwsgi --http=0.0.0.0:80 --module=quickstart.wsgi
6+
CMD uwsgi --http=0.0.0.0:80 --module=backend.wsgi
File renamed without changes.

quickstart/asgi.py renamed to backend/asgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
from django.core.asgi import get_asgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'quickstart.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
1515

1616
application = get_asgi_application()

quickstart/settings.py renamed to backend/settings.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Application definition
2626

2727
INSTALLED_APPS = [
28-
'quickstart',
28+
'backend',
2929

3030
# optional, but used in most projects
3131
'djangocms_admin_style',
@@ -96,7 +96,7 @@
9696
'cms.middleware.language.LanguageCookieMiddleware',
9797
]
9898

99-
ROOT_URLCONF = 'quickstart.urls'
99+
ROOT_URLCONF = 'backend.urls'
100100

101101
TEMPLATES = [
102102
{
@@ -132,7 +132,7 @@
132132
('feature.html', 'Page with Feature')
133133
]
134134

135-
WSGI_APPLICATION = 'quickstart.wsgi.application'
135+
WSGI_APPLICATION = 'backend.wsgi.application'
136136

137137

138138
# Database
@@ -147,20 +147,21 @@
147147
# Password validation
148148
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
149149

150-
AUTH_PASSWORD_VALIDATORS = [
151-
{
152-
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
153-
},
154-
{
155-
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
156-
},
157-
{
158-
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
159-
},
160-
{
161-
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
162-
},
163-
]
150+
if not DEBUG:
151+
AUTH_PASSWORD_VALIDATORS = [
152+
{
153+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
154+
},
155+
{
156+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
157+
},
158+
{
159+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
160+
},
161+
{
162+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
163+
},
164+
]
164165

165166

166167
# Internationalization
@@ -198,7 +199,7 @@
198199
DefaultStorageClass = dsn_configured_storage_class('DEFAULT_STORAGE_DSN')
199200

200201
# Django's DEFAULT_FILE_STORAGE requires the class name
201-
DEFAULT_FILE_STORAGE = 'quickstart.settings.DefaultStorageClass'
202+
DEFAULT_FILE_STORAGE = 'backend.settings.DefaultStorageClass'
202203

203204
# only required for local file storage and serving, in development
204205
MEDIA_URL = 'media/'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)