Skip to content

A responsive, lightweight, unobtrusive, page-by-page critique application for Django.

License

Notifications You must be signed in to change notification settings

jondbaker/django-critique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-critique

https://travis-ci.org/jondbaker/django-critique.png

A responsive, lightweight, unobtrusive, page-by-page critique application for Django.

Installation

  1. Until everything is packaged up, the easiest way to install the application is with Pip: pip install -e git+https://github.com/jondbaker/django-critique.git#egg=django_critique

  2. Configure INSTALLED_APPS and MIDDLEWARE_CLASSES:

    INSTALLED_APPS = (
        ...
        "critique",
    )
    
    MIDDLEWARE_CLASSES = (
        ...
        "critique.middleware.CritiqueMiddleware",
    )
    
  3. Include URLs:

    urlpatterns = patterns(""
        ...
        url(r"^", include("critique.urls")),
    )
    
  4. Run python manage.py syncdb to install the Critique database table.

Requirements

  • Python 2.6 or 2.7
  • Django 1.5+

The application works as expected with Django 1.4.x, but because of the updated url tag in Django 1.5.0+, the two instances of {% url 'critique_create' %} in critique/templates/critique/_form.html and critique/templates/critique/_js.html need to have the single quotes removed.

Configuration

Critique has a handful of settings that can be set in settings.py:

CRITIQUE = {
    "cancel_text": "Cancel",
    "error_text": "Error!",
    "invalid_text": "Invalid Submission",
    "prompt_text": "Critique this page",
    "submit_text": "Submit",
    "success_text": "Success!",
    "theme": "light"
}
  1. cancel_text The string to display on the cancel button; defaults to 'Cancel'.
  2. error_text The string to display when an AJAX error occurs; defaults to 'Error!'.
  3. invalid_text The string to display when a submission is invalid; defaults to 'Invalid Submission!'.
  4. prompt_text The string to display on the always-visible prompt; defaults to 'Critique this page'.
  5. submit_text The string to display on the submit button; defaults to 'Submit'.
  6. success_text The string to display when a submission is valid; defaults to 'Success!'.
  7. theme The CSS theme to use; current options include 'light' and 'dark'; defaults to 'light'.

Tests

Critique includes a test suite composed of functional, integration and unit tests. If you commit code, please considering adding proper coverage (especially if it has a chance for a regression) in the test suite.

$ python setup.py test

Issues

You can report issues at https://github.com/jondbaker/django-critique/issues

Versioning

Semantic Versioning http://semver.org/

About

A responsive, lightweight, unobtrusive, page-by-page critique application for Django.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published