# Path: gitcms/books/models.py
# class Book(models.Model):
#     slug = models.SlugField(u'slug')
#     title = models.CharField(u'title', max_length=255)
#     booktitle = models.CharField(u'title', max_length=255)
#     author = models.CharField(u'author', max_length=255)
#     tags = models.ManyToManyField(Tag)
#     content = models.TextField(u'content')
#     review_date = models.DateField(u'ReviewDate')
# 
#     def __unicode__(self):
#         return '<book review: %s>' % self.title
#     class Meta:
#         verbose_name_plural = tr(u'Books')


from .models import Book
from django.shortcuts import get_object_or_404, render_to_response

def book(request, slug):
    book = get_object_or_404(Book, slug=slug)
    return render_to_response(
                'books/book.html',
                {

# Path: gitcms/books/models.py
# class Book(models.Model):
#     slug = models.SlugField(u'slug')
#     title = models.CharField(u'title', max_length=255)
#     booktitle = models.CharField(u'title', max_length=255)
#     author = models.CharField(u'author', max_length=255)
#     tags = models.ManyToManyField(Tag)
#     content = models.TextField(u'content')
#     review_date = models.DateField(u'ReviewDate')
# 
#     def __unicode__(self):
#         return '<book review: %s>' % self.title
#     class Meta:
#         verbose_name_plural = tr(u'Books')


# Path: gitcms/books/views.py
from .models import Book
from django.shortcuts import get_object_or_404, render_to_response


def book(request, slug):
    book = get_object_or_404(Book, slug=slug)
    return render_to_response(
                'books/book.html',
                {

                    'book' : book,