2011-08-01 13:48:50 +00:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2012-01-03 14:16:34 +00:00
< title > Management Commands — Django Categories v0.8.6 documentation< / title >
2011-08-01 13:48:50 +00:00
< link rel = "stylesheet" href = "../_static/default.css" type = "text/css" / >
< link rel = "stylesheet" href = "../_static/pygments.css" type = "text/css" / >
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
2012-01-03 14:16:34 +00:00
VERSION: '0.8.6',
2011-08-01 13:48:50 +00:00
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
< / script >
< script type = "text/javascript" src = "../_static/jquery.js" > < / script >
< script type = "text/javascript" src = "../_static/underscore.js" > < / script >
< script type = "text/javascript" src = "../_static/doctools.js" > < / script >
2012-01-03 14:16:34 +00:00
< link rel = "top" title = "Django Categories v0.8.6 documentation" href = "../index.html" / >
2011-08-01 13:48:50 +00:00
< link rel = "up" title = "Reference" href = "index.html" / >
< link rel = "next" title = "Models" href = "models.html" / >
< link rel = "prev" title = "Reference" href = "index.html" / >
< / head >
< body >
< div id = "docstitle" >
2012-01-03 14:16:34 +00:00
< p > Django Categories v0.8.6 documentation< / p >
2011-08-01 13:48:50 +00:00
< / div >
< div id = "header" >
< div id = "title" > < h1 > Management Commands< / h1 > < / div >
< ul id = "headerButtons" >
< li id = "toc_button" > < div class = "headerButton" > < a href = "#" > Table of Contents< / a > < / div > < / li >
< li id = "page_buttons" >
< div class = "headerButton" > < a href = "../genindex.html" title = "General Index" accesskey = "I" > index< / a > < / div >
< div class = "headerButton" > < a href = "models.html" title = "Models" accesskey = "N" > next< / a > < / div >
< div class = "headerButton" > < a href = "index.html" title = "Reference" accesskey = "P" > previous< / a > < / div >
< / li >
< / ul >
< / div >
< div id = "sphinxsidebar" >
< div class = "sphinxsidebarwrapper" >
< ul > < li class = "toctree-l1" > < a href = "../index.html" > Main Page< / a > < / li > < / ul >
< ul class = "current" >
2012-01-03 14:16:34 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "../installation.html" > Installation< / a > < / li >
2011-08-01 13:48:50 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "../getting_started.html" > Getting Started< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../usage.html" > Using categories in templates< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../registering_models.html" > Registering Models< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "../adding_the_fields.html" > Adding the fields to the database< / a > < / li >
< li class = "toctree-l1 current" > < a class = "reference internal" href = "index.html" > Reference< / a > < ul class = "current" >
< li class = "toctree-l2 current" > < a class = "current reference internal" href = "" > Management Commands< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "models.html" > Models< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "settings.html" > Settings< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "templatetags.html" > Template Tags< / a > < / li >
< / ul >
< / li >
< / ul >
< h3 > This Page< / h3 >
< ul class = "this-page-menu" >
< li > < a href = "../_sources/reference/management_commands.txt"
rel="nofollow">Show Source< / a > < / li >
< / ul >
< div id = "searchbox" style = "display: none" >
< form class = "search" action = "../search.html" method = "get" >
< div class = "search-wrapper" >
< span class = "search-left" > < / span >
< input class = "prettysearch" type = "text" name = "q" size = "18" / >
< span class = "search-right" > < / span >
< / div >
< input type = "submit" value = "Search" class = "searchbutton" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< p class = "searchtip" style = "font-size: 90%" >
Enter search terms or a module, class or function name.
< / p >
< / div >
< script type = "text/javascript" > $ ( '#searchbox' ) . show ( 0 ) ; < / script >
< / div >
< / div >
< div class = "document" >
< div class = "documentwrapper" >
< div class = "bodywrapper" >
< div class = "body" >
< div class = "section" id = "management-commands" >
< span id = "id1" > < / span > < h1 > Management Commands< a class = "headerlink" href = "#management-commands" title = "Permalink to this headline" > ¶< / a > < / h1 >
< div class = "section" id = "import-categories" >
< span id = "id2" > < / span > < h2 > import_categories< a class = "headerlink" href = "#import-categories" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > < strong > Usage:< / strong > < tt class = "docutils literal" > < span class = "pre" > ./manage.py< / span > < span class = "pre" > import_categories< / span > < span class = "pre" > /path/to/file.txt< / span > < span class = "pre" > [/path/to/file2.txt]< / span > < / tt > < / p >
< p > Imports category tree(s) from a file. Sub categories must be indented by the same multiple of spaces or tabs. The first line in the file cannot start with a space or tab and you can’ t mix spaces and tabs.< / p >
< / div >
< div class = "section" id = "add-category-fields" >
< span id = "id3" > < / span > < h2 > add_category_fields< a class = "headerlink" href = "#add-category-fields" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > < strong > Usage:< / strong > < tt class = "docutils literal" > < span class = "pre" > ./manage.py< / span > < span class = "pre" > add_category_fields< / span > < span class = "pre" > [app1< / span > < span class = "pre" > app2< / span > < span class = "pre" > ...]< / span > < / tt > < / p >
< p > Add missing registered category fields to the database table of a specified application or all registered applications.< / p >
< p > Requires Django South.< / p >
< / div >
2011-08-02 17:46:21 +00:00
< div class = "section" id = "drop-category-field" >
< span id = "id4" > < / span > < h2 > drop_category_field< a class = "headerlink" href = "#drop-category-field" title = "Permalink to this headline" > ¶< / a > < / h2 >
2011-08-01 13:48:50 +00:00
< p > < strong > Usage:< / strong > < tt class = "docutils literal" > < span class = "pre" > ./manage.py< / span > < span class = "pre" > drop_category_field< / span > < span class = "pre" > app_name< / span > < span class = "pre" > model_name< / span > < span class = "pre" > field_name< / span > < / tt > < / p >
< p > Drop the < tt class = "docutils literal" > < span class = "pre" > field_name< / span > < / tt > field from the < tt class = "docutils literal" > < span class = "pre" > app_name_model_name< / span > < / tt > table, if the field is currently registered in < tt class = "docutils literal" > < span class = "pre" > CATEGORIES_SETTINGS< / span > < / tt > .< / p >
< p > Requires Django South.< / p >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "footer" >
< p >
2012-01-03 14:16:34 +00:00
© Copyright 2010-2012, Corey Oordt.
2011-08-01 13:48:50 +00:00
Created using < a href = "http://sphinx.pocoo.org/" > Sphinx< / a > 1.0.5.
< / p >
< / div >
< div class = "clearer" > < / div >
< / div >
< div id = "breadcrumbs" >
< a href = "index.html" accesskey = "U" > Reference< / a > < img src = "../_static/triangle_closed.png" height = "9" width = "9" alt = ">" >
Management Commands
< / ul >
< / div >
< script type = "text/javascript" charset = "utf-8" src = "../_static/toc.js" > < / script >
< / body >
< / html >