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.
Copyright
Copyright © 2016 HM Government (Ministry of Justice Digital Services). See LICENSE for further details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-zendesk-tickets-0.10.tar.gz.
File metadata
- Download URL: django-zendesk-tickets-0.10.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4737951922e0fb8b3f3f4b1ede040498c4f664926b443012ca996cb58a94bdb
|
|
| MD5 |
ea9201b60d48a9e73b7f2107a9f08c48
|
|
| BLAKE2b-256 |
b1462aa148aabe4fa521e859053d4873160c4e033286fde8b185a5f2c36055c4
|
File details
Details for the file django_zendesk_tickets-0.10-py3-none-any.whl.
File metadata
- Download URL: django_zendesk_tickets-0.10-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8745a6b0a92ae5157da5be45be23cb5f7444f5dbfc227186babb9b690f9e0e0
|
|
| MD5 |
94f0177054ff095e7c09307ad6e6390b
|
|
| BLAKE2b-256 |
31b6fdf0b6321635c690bdcdfb1e169b0d2a609c1348ba6e6dfb211cbbd5f7f4
|