Update README.md
This commit is contained in:
parent
a5d620ec82
commit
419eaa40ac
21
README.md
21
README.md
|
@ -5,7 +5,8 @@ python# CDC - Backend
|
|||
### Setup
|
||||
|
||||
1. Download the Repository to your local machine <br>
|
||||
2. Create a Virtual Environment in the [CDC_Backend](./) folder with this command below <br>
|
||||
2. Make Sour u have downloaded python from python.org
|
||||
3. Create a Virtual Environment in the [CDC_Backend](./) folder with this command below <br>
|
||||
`python -m venv venv`
|
||||
3. Activate the environment with this command <br>
|
||||
`.\venv\Scripts\activate`
|
||||
|
@ -13,6 +14,15 @@ python# CDC - Backend
|
|||
`pip install -r requirements.txt `
|
||||
5. Ensure that you have the PostgreSQL installed on your machine and is running on PORT **5432** <br>
|
||||
6. Make sure to give the correct database credentials in [settings.py](./CDC_Backend/CDC_Backend/settings.py)
|
||||
7. Run these following commands ..
|
||||
8. cd CDC_Backend
|
||||
python manage.py flush --no-input
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py collectstatic --noinput
|
||||
mkdir Storage
|
||||
python manage.py makemigrations APIs
|
||||
|
||||
|
||||
### Running the Application
|
||||
|
||||
|
@ -26,8 +36,13 @@ python# CDC - Backend
|
|||
|
||||
1. You can access the admin panel by running the server and opening <http://localhost:8000/admin>
|
||||
2. Run `python manage.py createsuperuser` to create a user to access the admin panel.
|
||||
3. Set up the Username and Password
|
||||
4. You can log in and change the database values anytime.
|
||||
3. if there is an error due to time then sync your machine time .
|
||||
4. Set up the Username and Password
|
||||
5. You can log in and change the database values anytime.
|
||||
6. Create your id as insitute Roll No for both admin and student .
|
||||
7.if u are still getting an error ,open inspect and see in network
|
||||
And then recognize it
|
||||
8.Check the client link in dev.env in backend and .env in frontend is the same
|
||||
|
||||
### Deploying
|
||||
|
||||
|
|
Loading…
Reference in New Issue