GithubHelp home page GithubHelp logo

simpletickets's Introduction

simpletickets

This is a django plugin to manage ticketing between the users and the staff. In a simple, easy and usefull way.

Installation and setup

To install just

pip install simpletickets
Module Set Up

Add "simpletickets" to your installed apps:

INSTALLED_APPS = (
    ...
    'simpletickets',
    )

Add simpletickets urls on one of your urls.py files:

from simpletickets import urls as ticket_urls

urlpatterns = patterns('',
    ...
    url(r'^tickets/', include(ticket_urls)),
    )

After the installation is completed and set up in your project, remember to migrate the database!

python manage.py migrate

Module Config

Simpletickets runs out of the box, but you can fine tune it to satisfy your project exact needings.

To do do there are some variables that can be set up in your settings file/s: (The shown assigments are the default values)

ST_DELTA_CLOSE is the timedelta between the moment the ticket is marked as solved by an staff member until it changes to closed without the owner reopening it.

Once the item is closed it can not be reopened again, the user has to create a new ticket for more support.

ST_DELTA_CLOSE = timedelta(hours=6)

TICKET MONITOR The ticket monitor is a supervision feature, there you can see all and every change the model object has sufered since created until finaly been closed.

The next two variables config if you want the staff or the owner to be able to download this file for every ticket in their lists.

ST_FL_MNTR_STAFF = True
ST_FL_MNTR_OWNER = False

GROUPS simpletickets shows the list of tickets deppending on what group they belong, you can configure those groups with this two variables:

ST_STAFF_GNAME = 'simpleticket_staff'
ST_ADMIN_GNAME = 'simpleticket_admin'

Staff is the regular ticket staff member and admin are (you guessed) administrators.

You can use this single time command to create the groups if you havent done that already.

python manage.py st_create_groups
MODEL

These are the configuration variables that modify the models in your system, Understand that ST_TCKT_TYPE, ST_TCKT_SEVERITY and ST_TCKT_STATE are modification of the database models and so in this case a migration will be needed!

ST_ATTACHMENTS is the folder's name where the ticket's attachments will be uploaded to

ATTACHMENTS_DIR = 'tickets'

The next 3 configuration variables are the most commonly changed in the module, i have left some digits in the tuples empty by purpose, maybe this setup can work for 80% of the sites out there, but im sure you can fill up the voids with you special needs, feel free to do that in those blank spaces.

Of course you can override the whole thing with you special needs, in that case you will have to fix all the now broken logic passed to the templates and create the templates yourself.

Ok straigt to the variables.

ST_TCKT_TYPE is the different kind of tickets, im sure it will vary a lot from site to site, feel free to configurate the spaces between the 1, 2 and 8, 9

ST_TCKT_TYPE = (
    (1, _(u'Inform about an error')),
    (2, _(u'Problem')),
    ..
    (8, _(u'Propose a sugestion')),
    (9, _(u'Others')),
    )

ST_TCKT_SEVERITY is as guessed the severity of the ticket from lowest priority to the higuest ones.

ST_TCKT_SEVERITY = (
    (1, _(u'Low')),
    (2, _(u'Normal')),
    ..
    (5, _(u'important')),  # can be changed
    ..
    (8, _(u'very important')),
    (9, _(u'Critical')),
    )

ST_TCKT_STATE

In this case it is the different states the ticket can have: Only the owner can create tickets, and will be marked as new (and red hued in the template). Once a staff member opens the ticket its asigned (brown hued) to himself, now the staff can leave it as asigned to himself, scale asigning it to other staff member or go straight to solve the problem and marking it as in progress (blue hued). 'in progress' is all the time between the staff member commences working on it untill its completly solved. Once solved (greyed out) unless the owner reopens it, it will be finaly marked as closed until the ST_DELTA_CLOSE passes.

ST_TCKT_STATE = (
    (1, _(u'new')),
    (2, _(u'assigned')),
    ..
    (5, _(u'in progress')),  # can be changed
    ..
    (8, _(u'solved')),
    (9, _(u'closed')),
    )
TEMPLATE

Currently simpletickets comes with a barebones version of twitter bootstrap, you can of course use your own templates, if so please ignore the next settings.

BASE_TEMPLATE is the base template where the tickets will be shown

BASE_TEMPLATE = 'index.html'

In that template there should be a template block named 'simpletickets' where you want the tickets to be shown.

{% block simpletickets %}
{% endblock simpletickets %}

The next 5 variables config if you want the different boxes (main taskbar or the statistic) to be shown for staff and/or owner.

ST_MAIN_TASKBAR = True
ST_SETT_TIMES_STAFF = True
ST_SETT_NUMBERS_STAFF = True
ST_SETT_TIMES_OWNER = True
ST_SETT_NUMBERS_OWNER = True

simpletickets's People

Contributors

monobot avatar monobotsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simpletickets's Issues

django.db.utils.OperationalError: no such table: auth_group

stuck in this error after adding "on_delete=models.CASCADE" into FK fields in the Ticket table in models and after that i changed that import in views.py "from django.core.urlresolvers import reverse" into this "from django.urls import reverse"
after all of that i got that new error "django.db.utils.OperationalError: no such table: auth_group" and i dont get any positive result to resolve this error.............NEED HELP PLEASE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.