PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

HTML | 32 lines | 29 code | 3 blank | 0 comment | 0 complexity | f36e1d30d0cf29268a75f6be38253018 MD5 | raw file
 1{% extends 'base.html' %}
 3{% block content %}
 5<div id="instructions"> 
 6  <p>Ok, to get things started you could read some of the info on how this works on the post I made in my blog here: <a href="" target="_blank">Django AJAX Powered chat Part 2 @ PythonHaven</a>, or visit the wiki section of the <a href="" target="_blank">project's homepage</a> (whenever it is updated)...</p> 
 8<div id="explanation"> 
 9  <p> 
10    The following links expose the two ways that django-jchat can be used in your site.
11    <ol>
12    	<li>The first mode (AKA "standalone" mode) the chat room is instanced and exists by itself, unattached to anything else in your project. This can be useful if you want to create a "global chat" application for your site, or simply chat rooms that exist by themselves.</li>
13    	<li>The second mode (AKA "the power of generic relations" mode) the chat room is binded to an instance of <strong><em>any</em></strong> model in your site, allowing you to create chat rooms for forum topics, user groups, user-user conversations, etc.</li>
14    </ol>
15  </p> 
17<div id="example1">
18	<h3>Standalone</h3>
19	<p>This example leads you to a page where the chat room instance exists by itself, it is not bound to any other models in the project.</p>
20	<p>Go to <a href="/simple">simple (standalone)</a> demo.</p>
22<div id="example2">
23	<h3>Complex</h3>
24	<p>For this example the database has been populated with dummy instances of a "document" model. The use case I'm covering with this example is that of a site like Google Docs, where you can edit documents and chat with the people editing the document at the same time (it's the only example I could think of, sorry). So, by binding the chatroom instances to each document I can have a separate chat room for each document so that contributors can collaborate in a more Web 2.0'esque way :D.</p>
25	<ul>
26	{% for doc in documents %}
27		<li>Go to <a href="/complex/{{ }}">{{ doc.title }}</a> document</li>
28	{% endfor %}
29	</ul>
32{% endblock %}