| Django-Cached_Authentication_middleWare Een vervanging in vervanging voor Django's ingebouwde authenticatieMiddleware die caching gebruikt |
Download nu |
Django-Cached_Authentication_middleWare Rangschikking & Samenvatting
- Vergunning:
- MIT/X Consortium Lic...
- Naam uitgever:
- Selwin Ong
- Uitgever website:
- https://github.com/ui/
Django-Cached_Authentication_middleWare Tags
Django-Cached_Authentication_middleWare Beschrijving
Django-Cached_Authentication_middleWare is een daling van de vervanging voor Django.contrib.auth's gebouwd in authenticatieMiddleware. Het probeert verzoek te vullen door gebruikersgegevens van de cache te halen voordat u terugvalt naar de database. Installatie - installeren via PYPI: PIP Installeer Django-Cached_Authentication_middleWare- Configureer caches in Django's instellingen.py: {'backend' ':' Django.core.cache.backends.megached.pylibmcache ',' Locatie ':' 127.0.0.1:11211 ',' Timeout ': 36000,}} - Vervang Django.contrib.auth.middleware.authenticationMiddleWare met Cached_Auth. Middleware in Settings.py: Middleware_Classes = ('Django.middleware.common.commiddleware', 'django.contrib.sessions.middleware.sessionMiddleware', # 'django.contrib.auth.middleware.authenticationMiddleWare' 'Cached_Auth.Middleware',) En je bent klaar! Running Teststo Run the Test Suite: Django-admin.py Test Cached_Auth - Postings = Cached_Auth.Tests.Stests - PyThonpath = .Product's Homepage
Django-Cached_Authentication_middleWare Gerelateerde software