Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-careful-forms 0.1

    Download button

    No screenshots available
    Downloads: 90  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ulrich Petri | More programs
    MIT/X Consortium Lic... / FREE
    June 9th, 2012, 23:20 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-careful-forms description

    Security minded forms extension for Django

    django-careful-forms is a small extension on top of django's Forms system. It can help you discover potential security oversights in your forms.

    It will emit warnings if there are any fields defined on forms that have not been accessed (the asumption beeing that not accessed fields will also not have been rendered in the template / displayed to the user).

    Installation

    The easy & recommended way:

    pip install django-careful-forms

    pip: http://www.pip-installer.org/en/latest/index.html

    Usage

    #. Add ``"careful_forms.middleware.CarefulFormsMiddlware"`` to your projects ``settings.MIDDLEWARE_CLASSES``. You should add it near the beginning of the list to make sure all forms are covered.

    #. For every form that you want to be monitored by django-careful-forms change the base class of your forms to ``careful_forms.forms.CarefulModelForm`` (or ``CarefulForm`` for regular    forms).

    In case you already have a custom form base class you can also add ``CarefulFormMixin`` to it.

    Examples:

    .. code:: python

        class MyForm(CarefulForm):
            # ...

        class OtherForm(CarefulModelForm):
            # ...

        class YetMoreForms(CarefulFormMixin, CustomFormBaseClass):
            # ...



    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    secure forms | Django forms | Django | forms | extension

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM