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.2.tar.gz (138.9 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.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_prochat-1.0.2.tar.gz
  • Upload date:
  • Size: 138.9 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.2.tar.gz
Algorithm Hash digest
SHA256 66bf5ad6ddbf750520fc8b78a860ece6b1b6551aa38a0b38441982587c05be9a
MD5 5db803eb440b6e4321b466997c49e506
BLAKE2b-256 da2ffb4b39d9150b4fd5e24b4f5f32a55ce7e12b46ea3a291db9a28c95219bcc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_prochat-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a82a3720dafac9f000b0902d31a4d05b554c00ef72fcb37857aac7f9500b8ae6
MD5 675d42c85ca1c923917841322593db95
BLAKE2b-256 71acb9f46946c2076d74e4bfae99cdff0137debc9df40b2719100a6b6a59a01b

See more details on using hashes here.

Provenance

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