mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 11:55:12 -04:00
* refiling and api call for search * updating allowed hosts * update search * proper api call * search page working * navbar * small fixes * fix types --------- Co-authored-by: Sahej Panag <spanag3@gatech.edu> Co-authored-by: afazio1 <alexa.fazio04@gmail.com>
Django Backend
This is the backend for the Django project.
Setup
-
Create a virtual environment:
python3 -m venv venv -
Activate the virtual environment:
- For macOS/Linux:
source venv/bin/activate - For Windows:
venv\Scripts\activate
- For macOS/Linux:
-
Install the project dependencies:
pip install -r requirements.txt
Running the Server
To start the Django server, run the following command:
python3 manage.py runserver
By default, the server will run on http://localhost:8000/.
Admin Panel
In order to access the admin panel, you need to create a superuser. To do this, run the following command:
python3 manage.py createsuperuser
Then, you can access the admin panel by visiting http://localhost:8000/admin/ and logging in with the superuser credentials.
Contributing to the Codebase
-
Create a new branch:
git checkout -b <branch-name> -
Make your changes.
-
Use black to format your code:
black . -
Make your changes and commit them:
git add . git commit -m "Your commit message" -
Push your changes to the remote repository:
git push origin <branch-name> -
Create a Pull Request on GitHub.