Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    django-poll-system 0.2.1

    Download button

    No screenshots available
    Downloads: 105  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    RafRaf | More programs
    Other/Proprietary Li... / FREE
    May 27th, 2012, 11:53 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-poll-system description

    The application to organize polling (or voting) on your site

    django-poll-system is a Django app to organize polling (or voting) on your site.

    Installation

    Download or clone repository and unpack it into your project folder. Now you should config your site to use the poll application. Follow instructions below:

    1. Add the name of the application at the end of your INSTALLED_APPS (in settings.py), like this:

    INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.admindocs',

    'poll',
    )

    2. Add the poll's url to your urls.py.

    from django.conf.urls.defaults import patterns, include, url

    from django.contrib import admin
    from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    from views import TestView

    admin.autodiscover()

    urlpatterns = patterns('',
        url(r'^$', TestView.as_view(), name='home'),
        url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
        url(r'^admin/', include(admin.site.urls)),

        url(r'^poll/', include('poll.urls')),
    )

    urlpatterns += staticfiles_urlpatterns()

    3. Run 'collectstatic' to deploy poll's static files (see https://docs.djangoproject.com/en/1.3/howto/static-files/#deploying-static-files-in-a-nutshell)

       >> python manage.py collectstatic

    4. Eventually we need to do "syncdb".

       >> python manage.py syncdb

    ATTENTION: Don't forget this step. It's very important, because django-poll-system have a fixture that needs to be installed to DB.

    ----

    Now installation is complete. After all, you have some data out of the box. And it's time to show the poll on your site. Add {% load polls_tags %} at the top of your page and insert {% poll_queue 'Public' %} to the place you want to see it. Of course the script of JQuery library must be included (< script type="text/javascript" src="your/path/to/jquery.js" >< /script >) before you call "poll_queue".

    That's all. Try an example: http://polltest.pythonism.ru


    Product's homepage

    Requirements:

    · Python
    · Django
    · jQuery
    · Django Internationalization (optionally)

      


    TAGS:

    organize polling | organize voting | Django poll | Django | poll | voting



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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