Skip to content
marcinn edited this page Sep 13, 2010 · 4 revisions

django-merlinx – MerlinX instegration app for Django.

Usage (Simple Gate integration)

settings.py

  1. set MERLINX_AGENT_ID
  2. set MERLINX_AFFILIATE – default affiliate name

or using registry (netwizard.registry app):

  1. merlinx.gate.config.agent – your agent ID
  2. merlinx.gate.config.affiliate – default affiliate name

settings.py have higher priority.

setup view in urls

Example:

url(r'^$', 'merlinx.views.generic_gate', kwargs={'method': 'search_tours'},
            name='merlinx-search')

create template “merlinx/gate/simple.html”

Example:

{% block extrahead %}
{{ gate.headerjs }}
{% endblock %}
{% block content %}
{{ gate.content }}
{{ gate.footer }}
{% endblock %}
{% block sidebar %}
{{ gate.menu }}
{% endblock %}