django-poll-system / README.TXT

Diff from to


-Django poll system
+Django-poll-system (example:
-Django 1.3
+Django 1.3 or 1.4
 JQuery (There are some problems with animation in older versions.) 
-Django Internationalization (optionally)
-Download or clone repository into the folder you like. Unpack it if needed and make an installation. The installation is simple, just type next command:
-   >> python install
+1. Install the package into your ecosystem
+    >> easy_install django_poll_system 
-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, like this:
+2. Add it to your INSTALLED_APPS (in, like this:
-2. Add the poll's url to your
+3. Add the poll's url to your
 from django.conf.urls.defaults import patterns, include, url
 urlpatterns += staticfiles_urlpatterns()
-3. Your TEMPLATE_CONTEXT_PROCESSORS (in should looks like this:
+4. Your TEMPLATE_CONTEXT_PROCESSORS (in should looks like this:
-    'django.core.context_processors.auth',
+    # Uncomment for Django 1.3
+	#'django.core.context_processors.auth',
+	# Uncomment for Django 1.4
+	#'django.contrib.auth.context_processors.auth',
 4. Eventually we need to do "syncdb".
    >> python 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.
+5. Now installation is completed. After all you need to create a queue of polls and at least one poll for it.  
-Now installation is completed. 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 the django-poll-system component. 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: (Please, leave your comments there)
+6. Insert the component into your page. Use the code snippet below to understand how to do that.  
+{% load polls_tags %}
+	<head>
+		<title>Test page</title>
+		<script type="text/javascript" src="{{ STATIC_URL }}path_to_jquery/jquery.js"></script>
+	</head>
+	<body>
+		<h1>Test page</h1>
+		{% poll_queue "YourQueueName" %}
+	</body>
+That's all. Try it: (Please, leave your comments there)