Skip to main content

Settings

ZENDESK_BASE_URL=http://zendesk.example.com
ZENDESK_API_USERNAME=...
ZENDESK_API_TOKEN=...
ZENDESK_REQUESTER_ID=...
ZENDESK_GROUP_ID=...

Usage

Add an entry to your urls.py

from zendesk_tickets import views
from zendesk_tickets import forms

url(r'^submit_ticket/$', views.ticket, {
        'template_name': 'xxx/submit_ticket_page.html',
        'success_redirect_url': '/',
        'ticket_template_name': 'zendesk_tickets/ticket.txt',
        'form_class': forms.TicketForm,
        'subject': 'Website Ticket',
        'tags': [],
        'extra_context': {},
    }, name='submit_ticket'),

If you wish to include additional fields, subclass BaseTicketForm and add them. If you wish to include them in the body of the ticket, create a new ticket template and pass it as the ticket_template_name. If you wish to include them as custom fields, define the following in your settings.py:

ZENDESK_CUSTOM_FIELDS={
    'referer': 31,  # zendesk field id
    'username': 32,
    'user_agent': 33
}

The three fields in the example above are included in TicketForm by default and can be included in your ticket by referencing them in the ticket template or specifying custom field ids in settings.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-zendesk-tickets-0.9.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_zendesk_tickets-0.9-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file django-zendesk-tickets-0.9.tar.gz.

File metadata

File hashes

Hashes for django-zendesk-tickets-0.9.tar.gz
Algorithm Hash digest
SHA256 f40fe8920e297193caf20cf6f4a0a5997821d67aa9e342428b3c98eacf3c1362
MD5 2cbaf844d768ccbda3f0d35bced05705
BLAKE2b-256 77e40f4e44c937f98d0d9578bad68020f025aa47f24510c292f11bbc443d39bb

See more details on using hashes here.

File details

Details for the file django_zendesk_tickets-0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for django_zendesk_tickets-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8d589caa88b13342c7e0f98bf054ac260ea77471842ab1ba8e6d7905d7906f3f
MD5 393521f895c7dcf49c0617dfb427aad2
BLAKE2b-256 1098dbd8cb68341cc339f9703991ced4a964bb6fe4741e98d6c8bebda0036e84

See more details on using hashes here.

Release history Release notifications | RSS feed

0.20

2 files

0.19

2 files

0.18

2 files

0.17

2 files

0.16

2 files

0.15

2 files

0.14

2 files

0.13

2 files

0.12

2 files

0.11

2 files

0.10

2 files

This release

0.9 This release

2 files

0.8

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page