Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-ticketing 0.6.2

    Download button

    No screenshots available
    Downloads: 210  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Streeter | More programs
    BSD License / FREE
    May 14th, 2011, 22:45 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-ticketing description

    Generate tickets efficiently in a database in Django

    django-ticketing is an implementation of a Django model that returns tickets, as described by the Flickr blog post.

    Installation

    I uploaded it to PyPi, so you can grab it there if you'd like with

    pip install django-ticketing

    or install with pip the git address:

    pip install git+git@github.com:streeter/django-ticketing.git

    You're choice.

    Usage

    To use this, you can either use the model interface, or just the shortcut function defined in ticketing.models. That usage looks like the following:

    # Import the function
    from ticketing.models import get_ticket
    # Go get yourself a ticket
    ticket = get_ticket()
    # Boom. That just happened


    This assumes you've had the single table that needs to be created in the DB, in other words, run syncdb or migrated with South.

    Testing

    There are some tests included. To run those tests, simply execute runtests.py:

    [streeter] $ python runtests.py
    ----------------------------------------------------------------------
    Ran 7 tests in 0.441s

    OK
    [streeter] $


    The test suite can run on all DB backends supported by Django. By default it runs using sqlite3. To run on MySQL, uncomment the section in runtests.py and then create a DB that Django can connect to, and give the Django user permissions to create a new testing DB, run the following commands:

    mysql -h localhost -u root -e "DROP DATABASE ticketing_test";
    mysql -h localhost -u root -e "CREATE DATABASE ticketing_test";
    mysql -h localhost -u root -e "GRANT ALL ON ticketing_test.* TO 'ticketing_test'@'localhost' IDENTIFIED BY ''"


    Of course, you may need to change the host of the DB and user that connects, but you should get the idea.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django model | return tickets | Django ticketing | Django | tickets | model

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM