I hope you have virtualenv and MySQL installed in your machine. Activate a virtual environment or create a new to run this project.
After starting your virtual environment clone the repo to your desired location.
cd to qtec-courier and run pip3 install -r requirements.txt
in linux or pip install -r requirements.txt
in windows.
Look for DATABASES
in the settings.py
file and create a database acordingly.
If you want to use postgreSQL then set the firstline of DATABASES
to 'ENGINE': 'django.db.backends.postgresql',
and the last to 'PORT': '5432',
( Change port to your machine's postgreSQL port)
Run the following commands to create database files (For Linux):
python3 manage.py makemigrations
python3 manage.py migrate
Run the following commands to create database files (For Windows):
python manage.py makemigrations
python manage.py migrate
Now that our database is ready, we can add our superuser to the app.
Run python3 manage.py createsuperuser
in linux or python manage.py createsuperuser
in windows and fillup the credentials.
Run python3 manage.py startserver
in linux or python manage.py startserver
in windows to start the dev server.
If you still get errors then you probably missed a point. Check everything again and run.