Skip to content

Instantly share code, notes, and snippets.

# Create your models here.
from __future__ import unicode_literals
from django.db import models
#from django.contrib.auth.models import User
class Store(models.Model):
store_email=models.CharField(max_length=50,primary_key=True)
#store_id = models.OneToOneField(User,on_delete=models.CASCADE,primary_key=True)
#store_id = models.ForeignKey(User, unique=True)
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from datetime import date
from store.models import Store
class Cmanage(models.Model):
class Meta:
@okwow123
okwow123 / tamagotchi.py
Created May 26, 2017 11:44 — forked from ryesalvador/tamagotchi.py
Tamagotchi Emulator in PyGame
# Tamagotchi - A port of the Tamagotchi Emulator by aerospark: https://goo.gl/gaZ1fA
# Copyright (C) 2017 Ryan Salvador
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of