Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 91c1b07

Browse files
committed
Lint naming conventions
1 parent 756648b commit 91c1b07

File tree

9 files changed

+47
-21
lines changed

9 files changed

+47
-21
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

SMS/asgi.py

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 4.0.8 on 2023-12-25 20:16
2+
3+
import accounts.models
4+
from django.db import migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('accounts', '0014_alter_user_managers'),
11+
]
12+
13+
operations = [
14+
migrations.AlterModelManagers(
15+
name='user',
16+
managers=[
17+
('objects', accounts.models.UserManager()),
18+
],
19+
),
20+
]
File renamed without changes.

config/asgi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
3+
import django
4+
from channels.http import AsgiHandler
5+
from channels.routing import ProtocolTypeRouter
6+
7+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
8+
django.setup()
9+
10+
application = ProtocolTypeRouter(
11+
{
12+
"http": AsgiHandler(),
13+
# Just HTTP for now. (We can add other protocols later.)
14+
}
15+
)

SMS/settings.py renamed to config/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Django settings for SMS project.
2+
Django settings for config project.
33
44
Generated by 'django-admin startproject' using Django 2.2.3.
55
@@ -75,7 +75,7 @@
7575
"django.middleware.clickjacking.XFrameOptionsMiddleware",
7676
]
7777

78-
ROOT_URLCONF = "SMS.urls"
78+
ROOT_URLCONF = "config.urls"
7979

8080
TEMPLATES = [
8181
{
@@ -97,9 +97,9 @@
9797
},
9898
]
9999

100-
WSGI_APPLICATION = "SMS.wsgi.application"
100+
WSGI_APPLICATION = "config.wsgi.application"
101101

102-
ASGI_APPLICATION = "SMS.asgi.application"
102+
ASGI_APPLICATION = "config.asgi.application"
103103

104104

105105
# Database
File renamed without changes.

SMS/wsgi.py renamed to config/wsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for SMS project.
2+
WSGI config for config project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMS.settings')
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
1515

1616
application = get_wsgi_application()

manage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
import sys
55
import environ
66

7+
78
def main():
8-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMS.settings')
9+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
910
try:
1011
from django.core.management import execute_from_command_line
1112
except ImportError as exc:
@@ -17,7 +18,7 @@ def main():
1718
execute_from_command_line(sys.argv)
1819

1920

20-
if __name__ == '__main__':
21+
if __name__ == "__main__":
2122
# OS environment variables take precedence over variables from .env
2223
environ.Env.read_env()
2324
main()

0 commit comments

Comments
 (0)