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-toolswith your favourite python tool, e.g. witheasy_install django-amp-toolsorpip install django-amp-tools. - Add
amp_toolsto yourINSTALLED_APPSsetting in thesettings.py. - Add
amp_tools.middleware.AMPDetectionMiddlewareto end of yourMIDDLEWARE_CLASSESsetting. - Add
amp_tools.loader.Loaderas first item to yourloaderslist forTEMPLATESsetting insettings.py.