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

Commit

Permalink
Lint naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
adilmohak committed Dec 25, 2023
1 parent 756648b commit 91c1b07
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
13 changes: 0 additions & 13 deletions SMS/asgi.py

This file was deleted.

20 changes: 20 additions & 0 deletions accounts/migrations/0015_alter_user_managers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.0.8 on 2023-12-25 20:16

import accounts.models
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('accounts', '0014_alter_user_managers'),
]

operations = [
migrations.AlterModelManagers(
name='user',
managers=[
('objects', accounts.models.UserManager()),
],
),
]
File renamed without changes.
15 changes: 15 additions & 0 deletions config/asgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os

import django
from channels.http import AsgiHandler
from channels.routing import ProtocolTypeRouter

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
django.setup()

application = ProtocolTypeRouter(
{
"http": AsgiHandler(),
# Just HTTP for now. (We can add other protocols later.)
}
)
8 changes: 4 additions & 4 deletions SMS/settings.py → config/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for SMS project.
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.3.
Expand Down Expand Up @@ -75,7 +75,7 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]

ROOT_URLCONF = "SMS.urls"
ROOT_URLCONF = "config.urls"

TEMPLATES = [
{
Expand All @@ -97,9 +97,9 @@
},
]

WSGI_APPLICATION = "SMS.wsgi.application"
WSGI_APPLICATION = "config.wsgi.application"

ASGI_APPLICATION = "SMS.asgi.application"
ASGI_APPLICATION = "config.asgi.application"


# Database
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions SMS/wsgi.py → config/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for SMS project.
WSGI config for config project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMS.settings')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")

application = get_wsgi_application()
5 changes: 3 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import sys
import environ


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMS.settings')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand All @@ -17,7 +18,7 @@ def main():
execute_from_command_line(sys.argv)


if __name__ == '__main__':
if __name__ == "__main__":
# OS environment variables take precedence over variables from .env
environ.Env.read_env()
main()

0 comments on commit 91c1b07

Please sign in to comment.