Skip to content

abdulhaque7/AbdulHaque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup

1. Install python 3.9.5 & mysql on your system

(You can skip this if python 3.8+ is already installed in your system)

2. Project Setup

i. Clone Project Repository, Cretae VirtualEnv & Install python dependencies

cd <YOUR_WORKING_DIRECTORY>
git clone https://github.com/abutalhadanish/zhcet-information-sharing-system.git
cd zhcet-information-sharing-system
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

ii. Add local settings & run migrations

Add core/settings_local.py with following contents:

from .settings import *

ALLOWED_HOSTS = ['127.0.0.1', 'localhost']

# Enter yout database credentials in the following fields
# DATABASES['default']['NAME'] = 'dbname'
DATABASES['default']['USER'] = 'dbuser'
DATABASES['default']['PASSWORD'] = 'dbpasss'

(replace dbuser and dbpass with your actual database username and password)

iii. Create a database named zhcet_iss in your database shell:

CREATE DATABASE zhcet_iss CHARACTER SET utf8mb4;

iv. Run in shell to create tables

python manage.py migrate

v. Run server to start the backend.

python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published