Simple Django FAQ app
Project description
# MP-FAQ application
### Installation
Install with pip:
```
$ pip install django-mp-faq
```
Add faq to settings.py:
```
INSTALLED_APPS = [
...
'ordered_model',
'modeltranslation',
'faq',
]
```
Sync DB:
```
$ python manage.py migrate
$ python manage.py sync_translation_fields
```
## Template
```
{% load faq %}
{% get_faq_questions as faq_questions %}
{% for question in faq_questions %}
{{ question.question }}
{{ question.answer|safe }}
{% endfor %}
```
### Requirements
App require this packages:
* django-modeltranslation
* django-ordered-model
### Installation
Install with pip:
```
$ pip install django-mp-faq
```
Add faq to settings.py:
```
INSTALLED_APPS = [
...
'ordered_model',
'modeltranslation',
'faq',
]
```
Sync DB:
```
$ python manage.py migrate
$ python manage.py sync_translation_fields
```
## Template
```
{% load faq %}
{% get_faq_questions as faq_questions %}
{% for question in faq_questions %}
{{ question.question }}
{{ question.answer|safe }}
{% endfor %}
```
### Requirements
App require this packages:
* django-modeltranslation
* django-ordered-model
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-mp-faq-1.2.tar.gz
(4.8 kB
view hashes)