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.1.tar.gz (7.7 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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_prochat-1.0.1.tar.gz
  • Upload date:
  • Size: 7.7 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.1.tar.gz
Algorithm Hash digest
SHA256 16d1d0ca33aecff2606a9f56218283f8d740be90397f732d7fda6666009a756d
MD5 efbc42942689be2881f7dfaf5135be09
BLAKE2b-256 33fd8790b842506d919b46fb698f3e1b157396ee0c22b59026b98ced3afa4a36

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_prochat-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: django_prochat-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbe9efb516a516265df34010ffe47d4d221a979418215a836fb70dd6428e05fd
MD5 6b4addb1e175c1e4b77597ca3d898a1a
BLAKE2b-256 93c4389eeb00099b7c0ecf41826998e446f9d56a9d2bd5c0f92982eb748b31e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_prochat-1.0.1-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