Created
August 15, 2014 19:14
-
-
Save anonymous/59941c782394607eae91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Fatih' | |
#-*- coding: utf-8 -*- | |
from peewee import peewee | |
db = peewee.MySQLDatabase("crawler", user="sqlalchemy", passwd="mypassword") | |
class News(peewee.Model): | |
header = peewee.CharField() | |
articleBody = peewee.TextField() | |
articleDate = peewee.DateField() | |
class Meta: | |
database = db | |
News.create_table() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment