CodeRelay AMV
This webapp can be used for hostel complaint management services. There are two groups of users: students - hostel dwellers officers - managers - people who are supposed to resolving the complaints
- Registration - Users can register in this webapp.
- Officer Registration - This can be done only by administrators after an officer registers from signup page.
Admin View can be accessed at localhost:PORT/admin
username - admin
password - admin
- Complaints Logging - Complaints can be posted only by students.
- Complaints Management - Officers can handle complaints.
- Pull the code from github.
- Create a virtual environment and install django crispy-bootstrap5 and psycopg2-binary python modules.
pip install django crispy-bootstrap5 psycopg2-binary
- Get database credentials of a postgres database using heroku for free.
- Add the following lines in the settings.py file.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'database-name',
'USER': 'username',
'PASSWORD': 'password',
'HOST': 'host-address',
'PORT': 'port'
}
}
- Migrate the database
python manage.py makemigrations
python manage.py migrate
- Run the server
python manage.py runserver
- Now the server will be running and you can use the webapp.