-
markdown.js: MIT license, comes from evilstreak/markdown-js
-
bootstrap: MIT license, comes from twbs/bootstrap
In the root of this folder, you can execute:
pip install -U .
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
Django>=1.11
(including Django 2)
You must also install django-bootstrap3
and django-mptt
(pip will do this for you).
django-html-validator
is required for testing purposes.
In the settings.py
file of your project, add the following apps:
INSTALLED_APPS = [
# other apps…
'paiji2_forum.apps.Paiji2ForumConfig',
'mptt',
'bootstrap3',
# other apps…
]
Include 'paiji2_forum.urls'
in the urlpatterns
of your project.
For instance:
from django.conf.urls import url, include
urlpatterns = [
# other urls…
url(r'^forum/', include('paiji2_forum.urls')),
]
See paiji2_forum/templates/forum/base.html
for an example.
You should change the name of the extended template (line 1) to fit to your project.
The extended template should have a title
block, a style
block to add a css file link, and a content
block to show the content of the forum.
It must also link to bootstrap.css
or bootstrap.min.css
(bootstrap version 3), for instance with:
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
The default language is english. French and german translations are provided. Please forgive my mistakes :-)