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

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/m/a/manabi-HEAD/apps/flashcards/management/commands/flashcards_init.py   manabi(Download)
def create_initial_data():
    from django.conf import settings
    from flashcards.models.facts import FactType
    from flashcards.models.fields import FieldType
    from flashcards.models.cardtemplates import CardTemplate
 
    production_card_template = CardTemplate(
        name='Production',
        fact_type=japanese_fact_type,
        front_template_name='flashcards/cards/production_front.html',
 
    recognition_card_template = CardTemplate(
        name='Recognition',
        fact_type=japanese_fact_type,
        front_template_name='flashcards/cards/recognition_front.html',
 
    kanji_reading_card_template = CardTemplate(
        name='Kanji Reading',
        fact_type=japanese_fact_type,
        front_template_name='flashcards/cards/kanji_reading_front.html',
 
    kanji_writing_card_template = CardTemplate(
        name='Kanji Writing',
        fact_type=japanese_fact_type,
        front_template_name='flashcards/cards/kanji_writing_front.html',