Step by Step Implementation
Broadcaster: This is the folder that contains the files for the main project.
This file declares all the dependencies and other settings.
Python3
from pathlib import Path import os # Build paths inside the project like this: # BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # SECURITY WARNING: keep the secret key used in # production secret! SECRET_KEY = 'django-insecure-lzy=xp#!(0e-h9+%u!dsj$m4-2+=j7r$5hsb((@7ziv2g=dgbt' # SECURITY WARNING: don't run with debug turned # on in production! DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin' , 'django.contrib.auth' , 'django.contrib.contenttypes' , 'django.contrib.sessions' , 'django.contrib.messages' , 'django.contrib.staticfiles' , 'Teacher.apps.TeacherConfig' , 'Student.apps.StudentConfig' , 'Register.apps.RegisterConfig' , 'crispy_forms' , ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware' , 'django.contrib.sessions.middleware.SessionMiddleware' , 'django.middleware.common.CommonMiddleware' , 'django.middleware.csrf.CsrfViewMiddleware' , 'django.contrib.auth.middleware.AuthenticationMiddleware' , 'django.contrib.messages.middleware.MessageMiddleware' , 'django.middleware.clickjacking.XFrameOptionsMiddleware' , ] ROOT_URLCONF = 'broadcaster.urls' TEMPLATES = [ { 'BACKEND' : 'django.template.backends.django.DjangoTemplates' , 'DIRS' : [], 'APP_DIRS' : True , 'OPTIONS' : { 'context_processors' : [ 'django.template.context_processors.debug' , 'django.template.context_processors.request' , 'django.contrib.auth.context_processors.auth' , 'django.contrib.messages.context_processors.messages' , ], }, }, ] WSGI_APPLICATION = 'broadcaster.wsgi.application' # Database DATABASES = { 'default' : { 'ENGINE' : 'django.db.backends.sqlite3' , 'NAME' : BASE_DIR / 'db.sqlite3' , } } # Password validation AUTH_PASSWORD_VALIDATORS = [ { 'NAME' : 'django.contrib.auth.password_validation.\ UserAttributeSimilarityValidator', }, { 'NAME' : 'django.contrib.auth.password_validation.\ MinimumLengthValidator', }, { 'NAME' : 'django.contrib.auth.password_validation.\ CommonPasswordValidator', }, { 'NAME' : 'django.contrib.auth.password_validation.\ NumericPasswordValidator', }, ] # Internationalization LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static' ) CRISPY_TEMPLATE_PACK = "bootstrap4" LOGIN_REDIRECT_URL = "/" # Default primary key field type DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' |
This file links URLs from different dependencies and other apps to the main project.
Python3
from django.contrib import admin from django.urls import path, include from Register import views as v urlpatterns = [ path( 'admin/' , admin.site.urls), path('', include( "Teacher.urls" )), path('', include( "Student.urls" )), path( 'register/' , v.register, name = "register" ), path(" ", include(" django.contrib.auth.urls")), ] |
Now let’s create the apps required for our project.
HAUS Connect – Python Project
One of the most common problems faced by college students is that we have very erratic timetables and it is a cumbersome task to keep up with them, these issues have been amplified enormously during these pandemic times where everyone is on their own. The purpose of this application is to help students keep track of their classes, tests, and assignments as well as assist in streamlining communication between faculty and students. HAUS-Connect is a platform where faculty of college can schedule or reschedule the meetings or lectures, they also can set reminders for tests and upload study material too. A chatbot will help look for study material. Basically, we want to make sure that none of us miss any deadlines. At the moment this is for college students but its versatility is immense, it can be used on a large scale for communications throughout an enterprise, a single system that manages leaves granted, leave balance, pending work, etc.
Contact Us