Esempio n. 1
0
 def process_request(self, request):
     appsettings.autodiscover()
     settingsinst.update_from_db()
Esempio n. 2
0
 def process_request(self, request):
     appsettings.autodiscover()
     settingsinst.update_from_db()
Esempio n. 3
0
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):
Esempio n. 4
0
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)