-
Fork this repository to your github account.
-
Clone the forked repository using
git clone https://github.com/<github-username>/STAC-IITMandi.github.io.git
-
You can have the project running in a virtual environment or otherwise. Virtual environment is a preferred option.
Steps to set up a virtual environment for this project
-
Create a virtual environment using
python3 -m venv venv
-
Activate virtual environment -
On Linux
source venv/bin/activate
On Windows
venv\Scripts\activate
-
Install required modules using
pip3 install -r requirements.txt
.
-
-
Store your secrets by adding them at the end of
venv/bin/activate
. They will be set whenever you run the virtual environment.On Linux
export SECRET_KEY=''
On Windows
set SECRET_KEY=''
To learn how to generate a secret key click here. Remember to restart your virtual environment if you get an error after doing this.
-
Change directory to src using
cd STAC-IIT-Mandi
. -
Check your changes before running
python manage.py check
. -
Run the server on your machine using
python manage.py runserver
and then open localhost:8000 in your browser. -
Switch to a new branch before making changes
git checkout -b NewBranchName
. -
Make the changes in the repo.
-
Stage the changes using
git add path/to/changed-files
( avoid usinggit add .
). -
Commit your changes using
git commit -m "Appropriate Commit Message"
. -
Push your changes using
git push origin NewBranchName
. -
Create a pull request.
-
Mention someone to review it.
-
Celebrate your contribution rocket 🚀