a reusable private user messages application for Django with Django Rest Framework
Project description
Django Messages DRF
Official Documentation - https://tarsil.github.io/django-messages-drf/
Table of Contents
About Django Messages DRF
Django Messages DRF is an alternative and based on pinax-messages but using Django Rest Framework by making it easier to integrate with your existing project.
A special thanks to pinax for inspiring me to do this and use some ideas.
Overview
django-messages-drf
is an app for providing private user-to-user threaded
messaging.
Supported Django and Python Versions
Django / Python | 3.6 | 3.7 | 3.8 | 3.9 |
---|---|---|---|---|
2.2 | Yes | Yes | Yes | Yes |
3.0 | Yes | Yes | Yes | Yes |
3.1 | Yes | Yes | Yes | Yes |
Documentation
Installation
To install django-messages:
$ pip3 install starlette
Add django_messages_drf
to your INSTALLED_APPS
:
INSTALLED_APPS = [
# other apps
"django_messages_drf",
]
Run Django migrations to create django-messages-drf
database tables:
$ python manage.py migrate
Add django_messages_drf.urls
to your project urlpatterns:
urlpatterns = [
# other urls
url(r"^messages-drf/", include("django_messages_drf.urls", namespace="django_messages_drf")),
]
Reference Guide
URL–View–Template Matrix
URL Name | View |
---|---|
django_messages_drf:inbox |
InboxListApiView |
django_messages_drf:thread |
ThreadListApiView |
django_messages_drf:thread-create |
ThreadCRUDApiView |
django_messages_drf:thread-send |
ThreadCRUDApiView |
django_messages_drf:thread-delete |
ThreadCRUDApiView |
django_messages_drf:message-edit |
EditMessageApiView |
Documentation and Support
Full documentation for the project is available at https://tarsil.github.io/django-messages-drf/
License
Copyright (c) 2020-present Tiago Silva and contributors under the MIT license.
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
Built Distribution
Hashes for django-messages-drf-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d5c0c8d0cd2a5499a2b88154839249bd05d46f5005fe54e6aa43bf8d68471c |
|
MD5 | a92b67ef3dffa4ee617d4b24a6143f56 |
|
BLAKE2b-256 | 5fabd30752e83fd7ed5c766eb99de1af4ffa599f587536b48cc293d42b1b7b75 |
Hashes for django_messages_drf-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93bd450fb431bcc2e82aaa219a3055a92451c6fb1d6078dfc08608c0aebaf3d3 |
|
MD5 | 578bc81ebd2904f029c0d174656dfacb |
|
BLAKE2b-256 | 3dc44fd81aff83ac392a092d08138e79efc0fcaeb5da7f29a734a0869720901d |