Skip to content

Khairulbashar010/qtec-courier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup

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.

Database Setup

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

Superuser Setup

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 Project

Run python3 manage.py startserver in linux or python manage.py startserver in windows to start the dev server.

Note

If you still get errors then you probably missed a point. Check everything again and run.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published