This file contains hidden or 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
| import os, logging, random, string | |
| from celery.signals import after_setup_logger | |
| from celery.app.log import TaskFormatter | |
| from car_listing_flask_app.app import celery, app_factory | |
| from car_listing_flask_app.utilities.s3_internal_static_file_download import download_internal_static_files | |
| from car_listing_flask_app.utilities.logging_set_up import SparkPostMailHandler | |
| environment_import_path = os.environ['APP_SETTINGS'] | |
| app = app_factory(environment_import_path) |
This file contains hidden or 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
| import json | |
| from contextlib import contextmanager | |
| from sqlalchemy import Column, Integer, String, create_engine | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import sessionmaker | |
| from sqlalchemy.orm.exc import NoResultFound | |
| from sqlalchemy.types import JSON |
This file contains hidden or 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
| ''' | |
| Created on Oct 22, 2014 | |
| @author: Victor | |
| On 20141124 I asked about how to eager load the parent. The code, I submitted with the post is located at:https://gist.github.com/vfr292/a5939418285e4c8bd03b | |
| ''' |
This file contains hidden or 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
| ''' | |
| Created on Oct 22, 2014 | |
| @author: Victor | |
| ''' | |
| """discriminator_on_related.py | |
| Illustrates a mixin which provides a generic association | |
| using a single target table and a single association table, |