Skip to content

Made an end-to-end web application to display data of medicine availability in local pharmacies.

Notifications You must be signed in to change notification settings

anubhutip/Web-Application-in-Redis-and-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbsiproject

Guide to integrate Django with Redis: (Mac)

Commands to run on terminal:

Install redis:

  1. brew intall redis
  2. brew services start redis
  3. To check if the redis server is running use command- redis-cli Send PING and you will see a PONG response back. "exit" once checked. or telnet 127.0.0.1 6379

Installing Django:

pipenv install django

Installing django-redis plugin

django-redis 5.0.0

Running the server

python3 manage.py runserver

Information about the project:

  • Open the project with visual studio

  • Our app name - RedisApp inside Django Project

  • Using Open API -

  • Model SchoolItem Created to store the response in the database.

  • URLS created:

  • Most important files:
  • views.py
  • models.py
  • config.py
  • templates package
  • cache setup in settings.py CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", } } }

About

Made an end-to-end web application to display data of medicine availability in local pharmacies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published