Skip to main content

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

https://github.com/studyhub-co/react-comments-django/blob/master/media/drc1.png?raw=true https://github.com/studyhub-co/react-comments-django/blob/master/media/drc2.png?raw=true

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

react-comments-django-1.0.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

react_comments_django-1.0.2-py2.py3-none-any.whl (17.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file react-comments-django-1.0.2.tar.gz.

File metadata

  • Download URL: react-comments-django-1.0.2.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.2

File hashes

Hashes for react-comments-django-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b3c8439ed20228a62f6af23640cb3ed5e7bb19e607972924b7edd549cf9182fe
MD5 ff3d955495bb70ec875d212d5521b2b2
BLAKE2b-256 aae7f6d66c1b1b65e36e8f1e36be73a0f973652efe3c93239a40804989c5969c

See more details on using hashes here.

File details

Details for the file react_comments_django-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: react_comments_django-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.2

File hashes

Hashes for react_comments_django-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a66c8c18d0717177bad6ec19f22584eb7473c92faafbdc7e03e62b0568443dbe
MD5 e801709597c71d3de1b9a52349e1501e
BLAKE2b-256 7acf76a5b7a4293a36c3993445e3c623b7e8cc85646eb05ba60f396a43d40487

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page