Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(4)  |  Import(2)

src/c/s/cs4970_capstone-HEAD/django_server/server/nationbrowse/demographics/models.py   cs4970_capstone(Download)
# coding=utf-8
from django.db import models
 
from cacheutil import cached_clsmethod
from django_caching.models import CachedModel
class DataSource(CachedModel):
    """ Stores metadata regarding a particular source of demographic information """
    objects = CachingManager()
 
    source = models.CharField(max_length=255)
class PlacePopulation(CachedModel):
    """
    Each record represents data from one source, for one particular place.
    """
    objects = CachingManager()
class CrimeData(CachedModel):
    objects = CachingManager()
 
    place_type = models.ForeignKey(ContentType)
    place_id = models.PositiveIntegerField(db_index=True)
class SocialCharacteristics(CachedModel):
    objects = CachingManager()
 
    place_type = models.ForeignKey(ContentType)
    place_id = models.PositiveIntegerField(db_index=True)

src/c/s/cs4970_capstone-HEAD/django_server/server/nationbrowse/places/models.py   cs4970_capstone(Download)
from cacheutil import cached_clsmethod,cached_property,USING_DUMMY_CACHE
from django.db import models
from django_caching.models import CachedModel
from django_caching.managers import CachingManager