By implementing a search API in Django,Users with a powerful and flexible search functionality that allows them to find the information they need efficiently using with Mongodb.
Step by step commands on how to run this project on your computer.
1)- Install Virtualenv
pip install virtualenv
2)- Create Virtualenv
virtualenv venv
3)- Activate virtual env
source env/bin/activate
4)- Install requirements
pip install -r requirements.txt
Note: Above lines are required for first time installation.
5.1)- Install djongo:
pip install djongo
5.2)- Into settings.py file of your project, add:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'your-db-name',
}
}
6)- Execute below commands
python manage.py makemigrations
python manage.py migrate
Note: Above commands should be executed if there is any db level changes
7)- Create superuser for admin access and follow instruction, if not created one
python manage.py createsuperuser
python manage.py runserver
And the project is ready for use on your computer!.