Article search application using django-haystack + Whoosh + django-rest-farmework
Use virtual env, It is optional but better to use to avoid dependency conflicts [ Skip this step if already have virtual env ]
sudo pip install virtualenv
sudo pip install virtualenvwrapper
After it's installed, add the following lines to your shell's start-up file (.zshrc, .bashrc, .profile, etc).
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
Reload .bashrc file
source ~/.bashrc
- mkvirtualenv: To create a new environment. Example: mkvirtualenv blog
- deactivate: To get out/off your virtualenv. Example: deactivate
- workon: To jump back on the virtualenv. Example: workon blog
- rmvirtualenv: To remove the virtualenv. Example: rmvirtualenv blog
Note: If you are using virtual env, first activate it using workon command.
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py rebuild_index
Open http://127.0.0.1:8000/ in browser