1. youngking
  2. djangobook-cn

Source

djangobook-cn / views.py

# -*- coding: utf-8 -*-
import datetime
import cPickle as pickle
import django.views.static
from django.conf import settings
from django.core import urlresolvers
from django.http import HttpResponseRedirect, HttpResponse, Http404
from django.template import RequestContext

from ragendja.dbutils import get_object_or_404
from ragendja.template import render_to_response

def license(request):
    return HttpResponseRedirect("http://www.djangobook.com/license/")