Skip to content

Commit

Permalink
changed app and project name to use proper and short name
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul-Muqadim-Arbisoft committed Aug 19, 2023
1 parent f5edca7 commit a4ca4cd
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 20 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions basic_user_app_django/asgi.py → UniManage/asgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
ASGI config for basic_user_app_django project.
ASGI config for UniManage project.
It exposes the ASGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'basic_user_app_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'UniManage.settings')

application = get_asgi_application()
12 changes: 6 additions & 6 deletions basic_user_app_django/settings.py → UniManage/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for basic_user_app_django project.
Django settings for UniManage project.
Generated by 'django-admin startproject' using Django 4.2.3.
Expand Down Expand Up @@ -37,11 +37,11 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'user_management_functionlaties',
'user',
]


ROOT_URLCONF = 'basic_user_app_django.urls'
ROOT_URLCONF = 'UniManage.urls'

TEMPLATES = [
{
Expand All @@ -59,7 +59,7 @@
},
]

WSGI_APPLICATION = 'basic_user_app_django.wsgi.application'
WSGI_APPLICATION = 'UniManage.wsgi.application'


# Database
Expand Down Expand Up @@ -122,8 +122,8 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'user_management_functionlaties.middleware.CustomAuthenticationMiddleware',
'user.middleware.CustomAuthenticationMiddleware',

]

AUTH_USER_MODEL = 'user_management_functionlaties.CustomUser'
AUTH_USER_MODEL = 'user.CustomUser'
4 changes: 2 additions & 2 deletions basic_user_app_django/urls.py → UniManage/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
URL configuration for basic_user_app_django project.
URL configuration for UniManage project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.2/topics/http/urls/
Expand All @@ -23,5 +23,5 @@

urlpatterns = [
path('admin/', admin.site.urls),
path('user_management_functionlaties/', include('user_management_functionlaties.urls')),
path('user/', include('user.urls')),
]
4 changes: 2 additions & 2 deletions basic_user_app_django/wsgi.py → UniManage/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for basic_user_app_django project.
WSGI config for UniManage 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', 'basic_user_app_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'UniManage.settings')

application = get_wsgi_application()
Binary file modified db.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'basic_user_app_django.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'UniManage.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion user_management_functionlaties/apps.py → user/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

class UserManagementFunctionlatiesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'user_management_functionlaties'
name = 'user'
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.3 on 2023-08-12 08:26
# Generated by Django 4.2.3 on 2023-08-19 14:03

import django.contrib.auth.models
import django.contrib.auth.validators
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# Constants related to URLs/templates paths
SIGNUP_TEMPLATE = 'user_management_functionlaties/signup.html'
LOGIN_TEMPLATE = 'user_management_functionlaties/login.html'
EDIT_PROFILE_TEMPLATE = 'user_management_functionlaties/edit_profile.html'
CHANGE_PASSWORD_TEMPLATE = 'user_management_functionlaties/change_password.html'
HOME_TEMPLATE = 'user_management_functionlaties/home.html'
SIGNUP_TEMPLATE = 'user/signup.html'
LOGIN_TEMPLATE = 'user/login.html'
EDIT_PROFILE_TEMPLATE = 'user/edit_profile.html'
CHANGE_PASSWORD_TEMPLATE = 'user/change_password.html'
HOME_TEMPLATE = 'user/home.html'

# Error messages
VALIDATION_ERROR_MSG = 'Validation error occurred'
Expand Down

0 comments on commit a4ca4cd

Please sign in to comment.