- Import data from data source
- Excel Sheet
- Download as csv
- Upload the csv file in the project root
Below are the steps to get started using docker and pip
- Create a .env file inside /config for writing the database credentials, example below
POSTGRES_NAME='postgres'
POSTGRES_PASSWORD='postgres'
POSTGRES_USER='postgres'
POSTGRES_HOST='db'
-
Steps to setup the Django Administration Page
-
Execute the docker-compose steps
docker-compose up -d --build
docker-compose exec web python manage.py migrate
docker-compose exec web python manage.py createsuperuser
docker-compose exec web python manage.py import_initial_data filename.csv
-
Create and activate a virtual environment
-
Install the packages
pip install -r requirements.txt
-
Execute the following steps
python manage.py migrate
python manage.py createsuperuser
python manage.py import_initial_data filename.csv
python manage.py runserver
- Navigate to the Django Administration Page http://127.0.0.1:8888/admin/
- Login using superuser credentials