Initial commit

This commit is contained in:
nikolark committed 2011-12-28 16:21:02 +01:00
commit 48e38f4f64
26 files changed
+1117

No files matched your search

View File
Whitespace-only changes.
Executable
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
Executable
+16
View File
@@ -0,0 +1,16 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)
+5
View File
@@ -0,0 +1,5 @@
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('',
url(r'^$', 'bbs.main.views.home', name='home'),
)
Executable
+9
View File
@@ -0,0 +1,9 @@
# Create your views here.
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from models import *
def home(request):
return render_to_response('home.html', locals())