Skip to content

Commit

Permalink
auth example
Browse files Browse the repository at this point in the history
  • Loading branch information
hamax committed Sep 29, 2012
1 parent 4240ebe commit 9ebf937
Show file tree
Hide file tree
Showing 13 changed files with 13,025 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions examples/auth/demoapp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions examples/auth/demoapp/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from django.db import models

class Data(models.Model):
counter = models.IntegerField(default = 0)
4 changes: 4 additions & 0 deletions examples/auth/demoapp/static/counter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// update is the name of the event that we set in views.py
$(document).bind('serverpush_update', function(event, data) {
$('#hits').html(data.hits);
});
Loading

0 comments on commit 9ebf937

Please sign in to comment.