Browse Source

updating docs: issues 357, 328

Roxanna Coldiron 3 years ago
parent
commit
1f8c044635
3 changed files with 44 additions and 0 deletions
  1. 23 0
      docs/how_to/get_page_classifiers.rst
  2. 19 0
      docs/how_to/host_your_project.rst
  3. 2 0
      docs/how_to/index.rst

+ 23 - 0
docs/how_to/get_page_classifiers.rst

@@ -0,0 +1,23 @@
+Get Classifier Terms for Pages in a Template
+============================================
+
+You can include your classifier terms for your pages in your template with code similar
+to the below:
+
+.. code-block:: Django
+
+    {% for term in page.classifier_terms.all %}
+    <span>{{ term.name }}</span>
+    {% endfor %}
+
+
+If you only want to show specific terms, you can do something like this:
+
+.. code-block:: Django
+
+    {% for term in page.classifier_terms.all %}
+    {% if term.slug=="the-term-slug" %}
+    <span>{{ term.name }}</span>
+    {% endif %}
+    {% endfor %}
+

+ 19 - 0
docs/how_to/host_your_project.rst

@@ -0,0 +1,19 @@
+Hosting Your Project
+====================
+
+You can host your project on any host that supports Python sites. Configuring your project for each host
+will vary according to the host, but we will discuss a few of the options below.
+
+
+Python Anywhere
+---------------
+
+
+
+Heroku
+------
+
+
+
+CodeRed Cloud
+-------------

+ 2 - 0
docs/how_to/index.rst

@@ -15,3 +15,5 @@ with CodeRed CMS.
     docker
     use_custom_image_model
     convert_image_model
+    get_page_classifiers
+    host_your_project