ó
¸9—^c           @   s‰   d  Z  d d l m Z d d l m Z e d k rE d d l m Z n d d l m Z e e d d ƒ Z	 e e	 ƒ Z
 e e d	 e ƒ Z d
 S(   sÔ  
Django settings that affect django-autoslug:

`AUTOSLUG_SLUGIFY_FUNCTION`
  Allows to define a custom slugifying function.

  The function can be repsesented as string or callable, e.g.::

      # custom function, path as string:
      AUTOSLUG_SLUGIFY_FUNCTION = 'some_app.slugify_func'

      # custom function, callable:
      AUTOSLUG_SLUGIFY_FUNCTION = some_app.slugify_func

      # custom function, defined inline:
      AUTOSLUG_SLUGIFY_FUNCTION = lambda slug: 'can i haz %s?' % slug

  If no value is given, default value is used.

  Default value is one of these depending on availability in given order:

  * `unidecode.unidecode()` if Unidecode_ is available;
  * `pytils.translit.slugify()` if pytils_ is available;
  * `django.template.defaultfilters.slugify()` bundled with Django.

  django-autoslug also ships a couple of slugify functions that use
  the translitcodec_ Python library, e.g.::

     # using as many characters as needed to make a natural replacement
     AUTOSLUG_SLUGIFY_FUNCTION = 'autoslug.utils.translit_long'

     # using the minimum number of characters to make a replacement
     AUTOSLUG_SLUGIFY_FUNCTION = 'autoslug.utils.translit_short'

     # only performing single character replacements
     AUTOSLUG_SLUGIFY_FUNCTION = 'autoslug.utils.translit_one'

.. _Unidecode: http://pypi.python.org/pypi/Unidecode
.. _pytils: http://pypi.python.org/pypi/pytils
.. _translitcodec: http://pypi.python.org/pypi/translitcodec

`AUTOSLUG_MODELTRANSLATION_ENABLE`
  Django-autoslug support of modeltranslation_ is still experimental.
  If you wish to enable it, please set this option to `True` in your project
  settings.  Default is `False`.

.. _modeltranslation: http://django-modeltranslation.readthedocs.org

iÿÿÿÿ(   t   settings(   t   VERSIONi   i    (   t   get_callablet   AUTOSLUG_SLUGIFY_FUNCTIONs   autoslug.utils.slugifyt    AUTOSLUG_MODELTRANSLATION_ENABLEN(   i   i    (   t   __doc__t   django.confR    t   djangoR   t   django.urlsR   t   django.core.urlresolverst   getattrt   slugify_function_patht   slugifyt   Falset    autoslug_modeltranslation_enable(    (    (    s3   /tmp/pip-unpacked-wheel-MdnRrb/autoslug/settings.pyt   <module><   s   