Django review app
Project description
django-product-review
Django-review is a Django app that helps add and display reviews.
Quick start
-
Install the needed packages
``pip install django-product-review django_htmx mptt``
-
Add "review" to your INSTALLED_APPS setting like this
INSTALLED_APPS = [ ... 'review', 'django_htmx', 'widget_tweaks', ]
AND
MIDDLEWARE = [ ... 'django_htmx.middleware.HtmxMiddleware', ]
-
REVIEW_PRODUCT_MODEL
Specify the model to apply review e.g
REVIEW_PRODUCT_MODEL="inventory.Product"
-
Include the review URLconf in your project urls.py like this
path('review/', include("review.urls", namespace="review")),
-
In your product detail view, pass the product to the template as product.
-
Add
{% load django_review %}
to the top of your product detail template -
In the product detail template add
<div id="django-review"> {% reviews product %} </div>
to the your desired position for review
-
Run
python manage.py migrate
to create the review models. -
Visit a product detail to add a review.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for django-product-review-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1428c24224e230c560253756c411dff8738e3924fde707738a93cf8e5c4c8b40 |
|
MD5 | de50f2c1dca0d81664aa9a689c99732f |
|
BLAKE2b-256 | 20a666dc487b7b0fd4f6139bf44f4fd6658077542833c9d3b8a97038d4975ba0 |
Close
Hashes for django_product_review-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79e0d5c160ae1864a06a20341fff3a880963d660d54894cc4480afe472e8f300 |
|
MD5 | 139f020faaf2656e05a3588522b4bfc4 |
|
BLAKE2b-256 | f4e2af86267d5dd256b48d7735a2f9ec58eba67d5d7b0a051a0059d64be1de5e |