# README - Kuke #

### Required Tech Stacks
- Python 3.11.x with PIP
- Postgres


### How do I get set up?
* Clone this project
* Install Virutal environment - Ref Link: https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/
* Make a new virutal environment and activate it using
    - ```source {environment}/bin/activate```
* Install all dependencies using ```pip install -r requirements.txt```
* Create 'log' folder
* Create a DB in postgres
* Setup ENV file using .env.example
* Run the migrations using ```python manage.py migrate```
* Run ```python manage.py createsuperuser``` to create super admin
* Run ```python manage.py runserver``` to start the server


### database migration commands ###
* ```py manage.py makemigrations```
* ```py manage.py migrate```


### Generate static files
* ```python manage.py collectstatic```


### Multiple Ways of Seed import & export
- python manage.py dumpdata app.model_name --indent 4 > fixtures/model_name.json
- python manage.py loaddata fixtures/model_name.json --app app.model_name
