coding utf-8 from google appengine ext import db class Url db Model ur

1
2
3
4
5
6
7
8
# -*- coding: utf-8 -*-
from google.appengine.ext import db
class Url(db.Model):
url = db.StringProperty(required=True)
shorturl = db.StringProperty(required=True)
published = db.DateTimeProperty(auto_now_add=True)
count = db.IntegerProperty(default=0)