예제 #1
0
def pageedit(request):
    p = Pages()
    if request.method == 'GET':
        return p.edit_page(request)
    elif request.method == 'POST':
        return p.save_page(request)
예제 #2
0
def page(request):
    p = Pages()
    if request.method == 'GET':
        return p.view_page(request)
    elif request.method == 'POST':
        return p.create_page(request)
예제 #3
0
def pageview(request):
    p = Pages()
    if request.method == 'GET':
        return p.page_view(request)