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

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

src/d/j/django-options-HEAD/django_options/testapp/app/views.py   django-options(Download)
from django.views.generic import TemplateView
from django_options import update_option, delete_option, get_option
from django_options.decorators import with_options
 
 
def loader(name=''):
    def wrapped(request):
#        logger.debug(name + ' View load options')
        key = name + '_view_prompted_value'
        update_option(key, "Loaded by %s" % name.title().replace('_',' '))