Skip to main content

A Django/Wagtail app to easily ask users for feedback.

Project description

wagtail_feedback

A simple wagtail application for letting users give feedback on your wagtail pages - provides easily readable and accessible aggregates in the page admin via FeedbackPanel

Quick start

  1. Add wagtail_feedback and django_filters to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
    ...,
    'feedback',
    'django_filters',
    ]
    
  2. include feedback.urls in your URLconf.

    urlpatterns = [
        ...
        include('feedback.urls')
    ]
    
  3. In your template, load the feedback template tag to use the feedback form.

    {% load feedback %}
    
    {# Loads the appropriate CSS styles. `{% static 'feedback/css/feedback.css'%}` #}
    {% feedback_css %} 
    
    {# Loads HTMX, if you have HTMX loaded in your template this is not nescessary. `{% static 'feedback/js/feedback.js'%}` #}
    {% feedback_js %}  
    
    {% feedback page=self %}
    
  4. (Optional) Include the feedback panel in your page definition:

    from wagtail.models import Page
    from feedback.panels import FeedbackPanel
    
    class MyPage(Page):
    	content_panels = Page.content_panels + [
    		FeedbackPanel()
    	]
    

Easily configurable settings:

A class for creating custom implementations of a feedback model

FEEDBACK_MODEL_NAME default: feedback.Feedback

A form class for saving custom fields on your own custom feedback model:

FEEDBACK_FORM_CLASS default: feedback.forms.FeedbackForm

Filters for the admin in-panel list-view.

FEEDBACK_FILTER_CLASS default: feedback.filters.AbstractFeedbackFilter

Backends for validating feedback before and after submit

FEEDBACK_BACKEND default:

FEEDBACK_BACKEND = getattr(settings, "FEEDBACK_BACKEND", {
    "CLASS": "feedback.backends.IPBasedFeedbackend",
    "OPTIONS": {
    	# ... Options passed to class
    }

})

Django proxy settings to get IP-adress

USE_X_FORWARDED_HOST default: False

Used for setting the appropriate IP-adress on the

feedback model / when using the backend.

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

wagtail_feedback-1.1.2.tar.gz (58.1 kB view details)

Uploaded Source

File details

Details for the file wagtail_feedback-1.1.2.tar.gz.

File metadata

  • Download URL: wagtail_feedback-1.1.2.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for wagtail_feedback-1.1.2.tar.gz
Algorithm Hash digest
SHA256 25a99de9aed3fd60eb8e2a76dfe18a94988de85bad318a8922d1144eb19bf34b
MD5 c0f89595a15da6d7770b147033529bb3
BLAKE2b-256 995bd4121fcff64602b2be576eae021ab9c08bb6c6bde5f2a50e78c40bb0776e

See more details on using hashes here.

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