<spanid="reference-settings"></span><h1>Settings<aclass="headerlink"href="#settings"title="Permalink to this headline">¶</a></h1>
<p>The <ttclass="docutils literal"><spanclass="pre">CATEGORIES_SETTINGS</span></tt> dictionary is where you can override the default settings. You don’t have to include all the settings; only the ones which you want to override.</p>
<spanid="id1"></span><h2><aclass="toc-backref"href="#id11">ALLOW_SLUG_CHANGE</a><aclass="headerlink"href="#allow-slug-change"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> Changing the slug for a category can have serious consequences if it is used as part of a URL. Setting this to <ttclass="xref docutils literal"><spanclass="pre">True</span></tt> will allow users to change the slug of a category.</p>
<spanid="id2"></span><h2><aclass="toc-backref"href="#id12">SLUG_TRANSLITERATOR</a><aclass="headerlink"href="#slug-transliterator"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> Allows the specification of a function to convert non-ASCII characters in the potential slug to ASCII characters. Allows specifying a <ttclass="docutils literal"><spanclass="pre">callable()</span></tt> or a string in the form of <ttclass="docutils literal"><spanclass="pre">'path.to.module.function'</span></tt>.</p>
<p>A great tool for this is <aclass="reference external"href="http://pypi.python.org/pypi/Unidecode">Unidecode</a>. Use it by setting <ttclass="docutils literal"><spanclass="pre">SLUG_TRANSLITERATOR</span></tt> to <ttclass="docutils literal"><spanclass="pre">'unidecode.unidecode</span></tt>.</p>
<spanid="id3"></span><h2><aclass="toc-backref"href="#id13">CACHE_VIEW_LENGTH</a><aclass="headerlink"href="#cache-view-length"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> This setting will be deprecated soon, but in the mean time, it allows you to specify the amount of time each view result is cached.</p>
<spanid="id4"></span><h2><aclass="toc-backref"href="#id14">RELATION_MODELS</a><aclass="headerlink"href="#relation-models"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> Relation models is a set of models that a user can associate with this category. You specify models using <ttclass="docutils literal"><spanclass="pre">'app_name.modelname'</span></tt> syntax.</p>
<spanid="id5"></span><h2><aclass="toc-backref"href="#id15">M2M_REGISTRY</a><aclass="headerlink"href="#m2m-registry"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> A dictionary where the keys are in <ttclass="docutils literal"><spanclass="pre">'app_name.model_name'</span></tt> syntax, and the values are a string, dict, or tuple of dicts. See <aclass="reference internal"href="../registering_models.html#registering-models"><em>Registering Models</em></a>.</p>
<spanid="id6"></span><h2><aclass="toc-backref"href="#id16">FK_REGISTRY</a><aclass="headerlink"href="#fk-registry"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> A dictionary where the keys are in <ttclass="docutils literal"><spanclass="pre">'app_name.model_name'</span></tt> syntax, and the values are a string, dict, or tuple of dicts. See <aclass="reference internal"href="../registering_models.html#registering-models"><em>Registering Models</em></a>.</p>
<spanid="thumbnail-upload-path"></span><spanid="id7"></span><h2><aclass="toc-backref"href="#id17">REGISTER_ADMIN</a><aclass="headerlink"href="#register-admin"title="Permalink to this headline">¶</a></h2>
<p><strong>Description:</strong> If you write your own category class by subclassing <ttclass="docutils literal"><spanclass="pre">CategoryBase</span></tt> then you probably have no use for registering the default <ttclass="docutils literal"><spanclass="pre">Category</span></tt> class in the admin.</p>
</div>
<divclass="section"id="id8">
<h2><aclass="toc-backref"href="#id18">THUMBNAIL_UPLOAD_PATH</a><aclass="headerlink"href="#id8"title="Permalink to this headline">¶</a></h2>
<spanid="id9"></span><h2><aclass="toc-backref"href="#id19">THUMBNAIL_STORAGE</a><aclass="headerlink"href="#thumbnail-storage"title="Permalink to this headline">¶</a></h2>
<spanid="id10"></span><h2><aclass="toc-backref"href="#id20">JAVASCRIPT_URL</a><aclass="headerlink"href="#javascript-url"title="Permalink to this headline">¶</a></h2>