def process_request(self, request): appsettings.autodiscover() settingsinst.update_from_db()
from django.contrib import admin from appsettings.models import Setting if appsettings.SHOW_ADMIN: admin.site.register(Setting) # vim: et sw=4 sts=4 ########NEW FILE######## __FILENAME__ = app import settingsobj settings = settingsobj.Settings() if not settingsobj.Settings.discovered: from appsettings import autodiscover autodiscover() # vim: et sw=4 sts=4 ########NEW FILE######## __FILENAME__ = fields from django.forms import widgets from django import forms from django.utils import simplejson #from django.core import validators class ListWidget(widgets.Input): input_type = 'text' def render(self, name, value, attrs=None):
from django.contrib import admin from appsettings.models import Setting if appsettings.SHOW_ADMIN: admin.site.register(Setting) # vim: et sw=4 sts=4 ########NEW FILE######## __FILENAME__ = app import settingsobj settings = settingsobj.Settings() if not settingsobj.Settings.discovered: from appsettings import autodiscover autodiscover() # vim: et sw=4 sts=4 ########NEW FILE######## __FILENAME__ = fields from django.forms import widgets from django import forms from django.utils import simplejson #from django.core import validators class ListWidget(widgets.Input): input_type = 'text' def render(self, name, value, attrs=None): value = ', '.join(value)