django-mp-reviews

Django reviews apps


License
MIT
Install
pip install django-mp-reviews==1.0

Documentation

MP-Reviews

Django reviews app.

Installation

Install with pip:

$ pip install django-mp-reviews

Add reviews to settings.py:

INSTALLED_APPS = [
    'reviews',
]

Add reviews to urls.py:

urlpatterns = [
    path('reviews/', include('reviews.urls'))
]

Add bower components:

BOWER_INSTALLED_APPS = (
	'jquery#1.11.1',
	'jquery-form',
	'jquery.rateit',
)

Add PIPELINE settings:

PIPELINE = {
	'STYLESHEETS': {
            'generic': {
                'source_filenames': (
                    'bower_components/jquery.rateit/scripts/rateit.css',
                ),
                'output_filename': 'cache/generic.css',
            }
        },
        'JAVASCRIPT': {
            'generic': {
                'source_filenames': (
                    'bower_components/jquery/dist/jquery.js',
                    'bower_components/jquery.rateit/scripts/jquery.rateit.js',
                    'bower_components/jquery-form/dist/jquery.form.min.js',
                    'reviews/reviews.js',
                ),
                'output_filename': 'cache/generic.js',
            }
        }
}

Install bower components:

$ python manage.py bower install

Run migrations:

$ python manage.py migrate

Requirements

App require this packages:

  • django-mp-pagination