Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

itk-dev/pretix-siteimprove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siteimprove – the hack!

Installation

  1. Append this to settings.py (or, preferably, in your custom settings file (cf. https://docs.djangoproject.com/en/2.0/topics/settings/#designating-the-settings)):
if config.has_option('siteimprove', 'code'):
    SITEIMPROVE_CODE = config.get('siteimprove', 'code')
    MIDDLEWARE[MIDDLEWARE.index('pretix.base.middleware.SecurityMiddleware')] = 'pretix_siteimprove.middleware.SecurityMiddleware'
  1. Define your siteimprove code in pretix.cfg:
[siteimprove]
code = xxxxxxx
  1. Copy pretix/src/pretix/presale/templates/pretixpresale/base_footer.html to %pretix.datadir%/templates/pretixpresale/base_footer.html (defined in pretix.cfg) and append this line:
<script type="text/javascript" src="{% url 'plugins:pretix_siteimprove:siteimprove' %}"></script>
  1. Copy pretix/src/pretix/presale/templates/pretixpresale/base.html to %pretix.datadir%/templates/pretixpresale/base.html (defined in pretix.cfg) and insert this line at the start of the head element:
  1. Restart Pretix

This is a plugin for pretix.

Development setup

  1. Make sure that you have a working pretix development setup.
  2. Clone this repository, eg to local/pretix-siteimprove.
  3. Activate the virtual environment you use for pretix development.
  4. Execute python setup.py develop within this directory to register this application with pretix's plugin registry.
  5. Execute make within this directory to compile translations.

License

Copyright 2018 Mikkel Ricky

Released under the terms of the Apache License 2.0

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published