Skip to content

Commit

Permalink
Added default view/template, with matching URLconf
Browse files Browse the repository at this point in the history
Default template is really a dummy for right now,
and the view just creates an empty context to
pass in.
  • Loading branch information
nrb committed Mar 13, 2011
1 parent b1dd51f commit 4c5a9d9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
5 changes: 5 additions & 0 deletions TicTacToe/apps/tictactoe/urls.py
@@ -0,0 +1,5 @@
from django.conf.urls.defaults import *

urlpatterns = patterns('TicTacToe.apps.tictactoe.views',
url(r'^$', 'game_board', name='game_board')
)
8 changes: 7 additions & 1 deletion TicTacToe/apps/tictactoe/views.py
@@ -1 +1,7 @@
# Create your views here.
from django.template import RequestContext
from django.shortcuts import render_to_response

def game_board(request):
context = RequestContext(request,{})
return render_to_response('tictactoe/game_board.html', context)

11 changes: 11 additions & 0 deletions TicTacToe/templates/tictactoe/game_board.html
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
</head>

<body>
Hello!
</body>


</html>
10 changes: 2 additions & 8 deletions TicTacToe/urls.py
@@ -1,16 +1,10 @@
from django.conf.urls.defaults import *


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^TicTacToe/', include('TicTacToe.foo.urls')),

# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
(r'^$', include('TicTacToe.apps.tictactoe.urls')),
)

0 comments on commit 4c5a9d9

Please sign in to comment.