summaryrefslogtreecommitdiff
path: root/app/pages
diff options
context:
space:
mode:
Diffstat (limited to 'app/pages')
-rw-r--r--app/pages/admin.py5
-rw-r--r--app/pages/views.py4
2 files changed, 4 insertions, 5 deletions
diff --git a/app/pages/admin.py b/app/pages/admin.py
index bdcf884..66e4d8f 100644
--- a/app/pages/admin.py
+++ b/app/pages/admin.py
@@ -3,7 +3,7 @@ from django.contrib import admin
from django.forms import Textarea
from django.db import models
-
+'''
class PageAdmin(admin.ModelAdmin):
formfield_overrides = {
models.TextField: {'widget': Textarea(attrs={'rows': 25, 'cols': 40})},
@@ -22,4 +22,5 @@ class PageAdmin(admin.ModelAdmin):
})
)
-#admin.site.register(Page, PageAdmin)
+admin.site.register(Page, PageAdmin)
+'''
diff --git a/app/pages/views.py b/app/pages/views.py
index cb605ab..e933399 100644
--- a/app/pages/views.py
+++ b/app/pages/views.py
@@ -2,9 +2,7 @@ from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from pages.models import Page
-'''
def page(request, slug):
- obj = get_object_or_404(Page, slug__exact=slug)
+ obj = "" #get_object_or_404(Page, slug__exact=slug)
context = {'object': obj, }
return render_to_response(["details/%s.html" % obj.slug, 'details/page.html'], context, context_instance=RequestContext(request))
-'''