InstallationΒΆ
Pre-Requirements: django-amp-tools
depends on django’s sites framework. So
before you try to use django-amp-tools
make sure that the sites framework
is enabled and working.
- Install
django-amp-tools
with your favourite python tool, e.g. witheasy_install django-amp-tools
orpip install django-amp-tools
. - Add
amp_tools
to yourINSTALLED_APPS
setting in thesettings.py
. - Add
amp_tools.middleware.AMPDetectionMiddleware
to end of yourMIDDLEWARE_CLASSES
setting. - Add
amp_tools.loader.Loader
as first item to yourloaders
list forTEMPLATES
setting insettings.py
.