This repository contains the code for this blogpost.
Kindly ensure you have the following installed on your machine:
- Clone the repository
$ git clone https://github.com/ro6ley/django-redis.git
- Check into the cloned repository
$ cd django-redis
- If you are using Pipenv, setup the virtual environment and start it as follows:
$ pipenv install && pipenv shell
- Install the requirements
$ pip install -r requirements.txt
-
Configure Redis configuration in
django_redis_demo/settings.py
-
Start the Django API
$ python manage.py runserver
- Send requests to
http://localhost:8000/api/items
Please feel free to raise issues using this template and I'll get back to you.
You can also fork the repository, make changes and submit a Pull Request using this template.