File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,17 @@ Django 1.3, Python 2.5 or greater.
34
34
Installation
35
35
============
36
36
37
- 1. ``pip install django-faq ``
37
+ 1. ``pip install -e git://github.com/howiworkdaily/ django-faq.git#egg=django_faq ``
38
38
39
39
2. Add ``"faq" `` to your ``INSTALLED_APPS `` setting.
40
40
41
41
3. Wire up the FAQ views by adding a line to your URLconf::
42
42
43
43
url('^faq/', include('faq.urls'))
44
44
45
+ Note: do *not * use ``pip install django-faq `` to install this app, as that
46
+ currently grabs another package entirely.
47
+
45
48
If you want to customize the templates then either create an 'faq' directory in
46
49
your projects templates location, or you can also pass along custom
47
50
'template_name' arguments by creating your own view wrappers around the 'faq'
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ class Topic(models.Model):
14
14
sort_order = models .IntegerField (_ ('sort order' ), default = 0 ,
15
15
help_text = _ ('The order you would like the topic to be displayed.' ))
16
16
17
+ def get_absolute_url (self ):
18
+ return '/faq/' + self .slug
19
+
17
20
class Meta :
18
21
verbose_name = _ ("Topic" )
19
22
verbose_name_plural = _ ("Topics" )
You can’t perform that action at this time.
0 commit comments