django-ex/openshift/models.py
Rodolfo Carvalho 86f8f20776 Add page view counter
To showcase database connectivity.
2015-05-25 16:12:22 +02:00

7 lines
191 B
Python

from django.db import models
# Create your models here.
class PageView(models.Model):
hostname = models.CharField(max_length=32)
timestamp = models.DateTimeField(auto_now_add=True)