Skip to main content

A small package to render response of Prochat in Django admin panel.

Project description

Django Prochat

A small package to render response of Prochat in Django admin panel.

How to use?

  1. Add this app to your list of installed apps.
  2. in admin.py
from .models import YourModel
from django_prochat.widgets import ProchatWidget

from django import forms
from django.contrib import admin

class YourModelAdminForm(forms.ModelForm):
    class Meta:
        model = YourModel
        fields = "__all__"
        widgets = {
            "field_storing_prochat_response": ProchatWidget(),
        }

@admin.register(YourModel)
class YourModelAdmin(admin.ModelAdmin):
    form = YourModelAdminForm

Note: Field storing prochat response should be a JsonField and response should contain json key.

  1. Run python manage.py collectstatic then start the server.

Sample

sample

TODO

  • Improve the UI
  • Add live preview
  • Parse the raw response and display in human readable format
  • Let user decide how they want to store the prochat response

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

django_prochat-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_prochat-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file django_prochat-1.0.0.tar.gz.

File metadata

  • Download URL: django_prochat-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_prochat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0245e590cbfdaa835a655999b52ed93e3a870f56fe5f3a869102868a2509f853
MD5 53d5c15b8ea88b45d5e9d60ce68b6146
BLAKE2b-256 05337ca316c3ab32399401b50e59de707d5c7b4ccef99e412afd07601b18a901

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_prochat-1.0.0.tar.gz:

Publisher: publish_to_pypi.yml on anuj66283/django-prochat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_prochat-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_prochat-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_prochat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb0c7c71ff6ac456c1bec5929cc32dbb6b46300a41b96cfb28a203fcd87fa753
MD5 59c34136339f7d853af2663f8bd9dc19
BLAKE2b-256 cce6dd76a606b28e11a21d270832464b575c5b53e3be0a9cc5e6d0e4b7838799

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_prochat-1.0.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on anuj66283/django-prochat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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