Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/j/django-fluent-contents-HEAD/example/simplecms/models.py   django-fluent-contents(Download)
 
    # Allow different layouts
    template_name = models.CharField("Layout", max_length=255, choices=appconfig.SIMPLECMS_TEMPLATE_CHOICES, default=appconfig.SIMPLECMS_DEFAULT_TEMPLATE)
 
    # Accessing the data of django-fluent-contents

src/d/j/django-fluent-contents-HEAD/example/simplecms/admin.py   django-fluent-contents(Download)
 
        # Check if template is allowed, avoid parsing random templates
        templates = dict(appconfig.SIMPLECMS_TEMPLATE_CHOICES)
        if not templates.has_key(template_name):
            json = {'success': False, 'error': 'Template not found'}