coderme / django-cas

its collection of django related "stuff": middlewares, decorators and validators used internally at CoderMe.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-cas (CoderMe Awesome Stuff)

What's django-cas

  • its collection of django related "stuff": middlewares, decorators and validators used internally at CoderMe.com

Whats include/d

  • Middlewares:
  • Decoators:
  • require_AJAX: Allows ajax request only and raise SuspiciousOperation exception if request is not an ajax.
  • Validators:
  • valid_regex: validate if value is a valid regex or raise ValidationError.
  • zeroslash_slug: validate if a value is a valid slug with no slashes valid slugs those don't contain any of the following chars: ! @ ~ # \ > < : ; [ ] { } % & * ( ) $ / \s ?
  • oneslash_slug: same as zeroslash_slug but value must contain one slash '/' to be considered valid.

About

its collection of django related "stuff": middlewares, decorators and validators used internally at CoderMe.com

License:ISC License


Languages

Language:Python 100.0%