React Django forum/comments application with Reddit like features
Project description
Forum and comments application
Django Rest Framework API
React application as frontend included (only in github version for now)
MathJax support
Embed Thread component and ThreadListComponent (reactjs + react-bootstrap) (npm install @studyhub.co/react-comments-django-client)
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)
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 it’s 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18570e28b91733e28083eed581db49168ce1c9f4c105691ae46eac16cba51af4 |
|
MD5 | bccf23c6c12addd4aaddeec1053af091 |
|
BLAKE2b-256 | 8a3bfa9f8f1cd49ec2d0d5b120c108b5d8656aba670a8077ae143cae199a3431 |
Hashes for react_comments_django-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb13ec717315299a9003629b54c89ad4937a042e6b52edb011fa1e11c3673ff |
|
MD5 | 6c1595706ef007746c6fe9a456b1356e |
|
BLAKE2b-256 | 88175a803f2a5ea71081bda4a9eef2ecbe474ddf3d8d6e9bad3f8dd5eae02766 |