Softpedia
 


LINUX CATEGORIES:



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

    django-validate-on-save 1.0.0

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Bright Interactive | More programs
    BSD License / FREE
    August 19th, 2012, 05:44 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-validate-on-save description

    Automatically call full_clean() on models during save() to prevent invalid data being saved

    django-validate-on-save is a Django app that automatically calls full_clean() on models during save() to prevent invalid data being saved.

    Surprisingly, this does not happen by default, apparently for backwards compatibility reasons.

    Adding to your Django Project

    Requires Django 1.4 or 1.3.

    Call validate_on_save.validate_models_on_save('your_app_name') from your app's models.py (I put this call near the end of models.py, not sure whether this matters).

    Publishing releases to PyPI

    To publish a new version of django-validate-on-save to PyPI, set the __version__ string in validate_on_save/__init__.py, then run:

    # Run the tests against multiple environments
    tox
    # Publish to PyPI
    ./setup.py publish
    # Tag (change 1.0.0 to the version you are publishing!)
    git tag -a v1.0.0 -m 'Version 1.0.0'
    git push --tags


    Running the tests

    To run the tests against the current environment:

    ./manage.py test

    To run the tests against multiple environments, install tox using pip install tox, make sure you're not currently in a virtual environment, then simply run tox:

    tox


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    model validator | Django models | Django | model | validator

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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