streeter / django-db-readonly

Force an entire site to become readonly. In a sort of hackish way.
MIT License
107 stars 21 forks source link

Fix monkey patching in Django 1.7 and newer #8

Closed artscoop closed 9 years ago

artscoop commented 9 years ago

django.db.backends.util was deprecated and replaced with django.db.backends.utils in Django 1.7. Here we import util in Django 1.6 and older, and utils otherwise.

streeter commented 9 years ago

Pushed a new version to PyPI as 0.3.3