React Django forum/comments application with Reddit like features
Project description
Forum and comments application
Django Rest Framework API
React application as frontend included
MathJax support
Embed Thread component (reactjs + react-bootstrap)
Comments are ranked using wilson scoring interval and displayed in a tree structure (using django-mptt)
Voting functionality for threads & comments
Compatible with mobile screen sizes
Users management page for admins (not implemented yet)
Admins can lock/unlock, edit, delete threads and posts, edit & delete topics (not implemented yet)
Working demo:
Documentation:
Screenshots
Supported Django versions
The app is currently tested with Django 1.8, 1.9, 1.10 and 1.11, 2.0
Quickstart
Install react-comments-django:
pip install react-comments-django
Add it and its dependencies to your INSTALLED_APPS:
INSTALLED_APPS = [
...
'mptt',
'react_comments_django',
...
]
react_comments_django_settings to context_processors:
'context_processors': [
...
'react_comments_django.context_processors.react_comments_django_settings',
...
]
react_comments_django’s URL patterns:
from react_comments_django.sitemaps import ThreadSitemap
from react_comments_django.urls_api import urlpatterns as react_comments_django_urls_api
sitemaps = {
'react_comments_django': ThreadSitemap
}
urlpatterns = [
...
url(r'^api/v1/', include(react_comments_django_urls_api)),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'),
...
]
Migrate models:
python manage.py migrate react_comments_django
Create a topic:
You can use New Topic dialog in topics page if you’re logged in as a superuser or you can create one in a python console:
from react_comments_django.models import Topic
Topic.objects.create(title='Test Topic')
Credits
Dependencies:
History
1.0.0 (2021-04-12)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for react-comments-django-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8303dfbc981a92dff8f961d27c0d0ea60fb0e342fa632e17c38f7b1d13129149 |
|
MD5 | 32f08dcefc5db41594d5e00d0ad6e8cd |
|
BLAKE2b-256 | 8de11825fdca823ca4963ea984a9ab7c9aed8e2c87dbf5e3b5450e6d9f0a8874 |
Hashes for react_comments_django-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5fd7f4d278fab7b8f8d8ce134fc616c6c9520ac16fedda24797ee8bee48648 |
|
MD5 | 24a1a15428884115202ccd6d20ee0e8b |
|
BLAKE2b-256 | 9e5f84a413b292c7b25f810f7baca48e01ef15185fecaa166084fe5f1358e44f |