Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 1.16 KB

README.md

File metadata and controls

29 lines (27 loc) · 1.16 KB

MSC-Official-Website

Main website of Msc

For requirement check requirement.txt

Use Git Bash For Windows to run all the commands

To Run Django server

-First activate the virtual environment(venv)
   . venv/bin/activate or source venv/bin/activate
-To activate the virtual env in Windows
   As venv is made in Ubuntu/MAC to activate it in Windows we will be using Git Bash.
   Go in the directory venv
    source ./bin/activate
-Change dir to MSC_website
   cd MSC_website
-Runserver
   python manage.py runserver

while running

python manage.py makemigrations
python manage.py migrate
python manage.py runserver


to create a superuser - python manage.py createsuperuser
to create project -   django-admin startproject project_name
to run local server-   python manage.py runserver
to create app -  python manage.py startapp app_name
to migrate - python manage.py migrate
to load static - python manage.py collectstatic


To deactivate virtual environment

   deactivate