Source code for slim.utils

__title__ = 'slim.utils'
__version__ = '0.7'
__build__ = 0x000007
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__all__ = ('locale_url_is_installed',)

from django.conf import settings

from slim.settings import USE_LOCALEURL


[docs]def locale_url_is_installed(): """ Checks if localeurl is installed in the Django project. :return bool: """ if USE_LOCALEURL is True and 'localeurl' in settings.INSTALLED_APPS and \ 'localeurl.middleware.LocaleURLMiddleware' in settings.MIDDLEWARE_CLASSES: return True return False
Read the Docs v: 0.7
Versions
latest
0.7.2
0.7.1
0.7
0.6
0.5
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.