Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
testapp/frontpage becomes pages/index.
Browse files Browse the repository at this point in the history
  • Loading branch information
relrod committed Apr 4, 2011
1 parent b7186d3 commit d3aaa09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 33 deletions.
4 changes: 4 additions & 0 deletions w8upd/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ def viewpage(request, slug):
c['page'] = get_object_or_404(Page, slug=slug)
return render_to_response('page.html', c, context_instance=RequestContext(request))

def index(request):
# We still pass RequestContext for so we can use context processors.
return render_to_response('index.html', {}, context_instance=RequestContext(request))

@login_required
def memberportal(request):
c = {}
Expand Down
Empty file removed w8upd/testapp/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions w8upd/testapp/models.py

This file was deleted.

23 changes: 0 additions & 23 deletions w8upd/testapp/tests.py

This file was deleted.

5 changes: 0 additions & 5 deletions w8upd/testapp/views.py

This file was deleted.

4 changes: 2 additions & 2 deletions w8upd/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
admin.autodiscover()

urlpatterns = patterns('',
(r'^$', 'testapp.views.testview'),
(r'^$', 'pages.views.index'),
(r'^admin/', include(admin.site.urls)),
(r'^template/', 'testapp.views.testview'),

Expand All @@ -28,4 +28,4 @@
# if we're in DEBUG.
urlpatterns += patterns('',
(r'^(.*)/', 'pages.views.viewpage'),
)
)

0 comments on commit d3aaa09

Please sign in to comment.