~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to main/views.py

  • Committer: Janos Gyerik
  • Date: 2011-08-05 10:45:24 UTC
  • Revision ID: janos@axiom-20110805104524-y2hzgfqpzycna6io
added basic model and made it work

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
from django.core.urlresolvers import reverse
3
3
from django.contrib.auth.decorators import *
4
4
 
5
 
from bashoneliners.main.models import Hacker
 
5
from bashoneliners.main.models import Hacker, OneLiner
6
6
 
7
7
 
8
8
''' constants '''
14
14
 
15
15
def index(request):
16
16
    params = {
 
17
            'oneliners': OneLiner.objects.all()
17
18
            }
18
19
    return render_to_response('main/index.html', params)
19
20