DJANGO_BASE = '' # Required if deployed with lighttpd. # FORCE_SCRIPT_NAME = "" # MAX SIZE FOR CONTRIBUTE MAXIMUM_UPLOAD_SIZE_CONTRIBUTE = 100 * 1024 * 1024 # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html USE_L10N = True # one of the supported countries # one wants to make sure the country is among the EU countries COUNTRY = filter(lambda country: country == environ['ELRI_COUNTRY'], iana.get_eu_regions())[0] USE_I18N = True LANGUAGE_CODE = environ['ELRI_LANGUAGE'] # one of the LANGUAGES language codes # Supported localisation languages ALL_LANGUAGES = ( ('es-es', _('Spanish')), ('en-ie', _('English')), ('fr-fr', _('French')), ('ga-ie', _('Gaelic')), ('pt-pt', _("Portuguese")), ) #get preferred localized language(s) loc_langs = environ['ELRI_LOC_LANGUAGES']
# under the given DJANGO_URL. DJANGO_BASE = '' # Required if deployed with lighttpd. # FORCE_SCRIPT_NAME = "" # MAX SIZE FOR CONTRIBUTE MAXIMUM_UPLOAD_SIZE_CONTRIBUTE= 100 * 1024 * 1024 # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html USE_L10N = True # one of the supported countries # one wants to make sure the country is among the EU countries COUNTRY = filter(lambda country: country == environ['ELRI_COUNTRY'], iana.get_eu_regions())[0] USE_I18N = True LANGUAGE_CODE = environ['ELRI_LANGUAGE'] # one of the LANGUAGES language codes # Supported localisation languages ALL_LANGUAGES = ( ('es-es', _('Spanish')), ('en-ie', _('English')), ('fr-fr', _('French')), ('ga-ie', _('Gaelic')), ('pt-pt', _("Portuguese")), ) #get preferred localized language(s) loc_langs= environ['ELRI_LOC_LANGUAGES']
def chartstats(request): return render( request, 'stats/chartstats.html', { 'countries': iana.get_eu_regions(), 'myres': isOwner(request.user.username) })