Add PGWebContextProcessor from pgweb
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Tue, 17 Apr 2018 18:10:27 +0000 (14:10 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 18 Apr 2018 15:56:37 +0000 (11:56 -0400)
commit08788312647862be2f07e6f141880bab1e93a821
tree219686508db4404fb9710277db2e2691e51dda43
parent6d5af128e6030e8c45699ba38d70c007cd6f2bcd
Add PGWebContextProcessor from pgweb

This adapts the code for the "gitrev" variable that can be used
in templates. This will enable cache busting for self hosted
asset files.

The path for where the archive app is stored differs from pgweb,
so the relative directory is changed in this implementation.
django/archives/settings.py
django/archives/util.py