Installation¶
Requirements:¶
- django>=2.1
- djangorestframework # only for API Framework
- Bootstrap 4.1.1
Installation:¶
Installation is available via pip
$ pip install django-comments-dab
or via source on github
$ git clone https://github.com/radi85/Comment.git
$ cd Comment
$ python setup.py install
Comment Settings and urls:¶
- Add
comment
to installed_apps in thesettings.py
file. It should be added afterdjango.contrib.auth
.LOGIN_URL
shall be defined in the settings.
settings.py
should look like this:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
...
'comment',
..
)
LOGIN_URL = 'login' # or actual url
In urls.py
:
urlpatterns = patterns(
path('admin/', admin.site.urls),
path('comment/', include('comment.urls')),
...
path('api/', include('comment.api.urls')), # only required for API Framework
...
)