Date: Thu, 14 Mar 2019 20:21:28 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495732 - in head/www: . py-django-common-helpers Message-ID: <201903142021.x2EKLSFx092095@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Thu Mar 14 20:21:27 2019 New Revision: 495732 URL: https://svnweb.freebsd.org/changeset/ports/495732 Log: New port: www/py-django-common-helpers py-django-common-helpers consists of the following things: - Middleware that makes sure a web-app runs either on or without "www" in the domain. - "SessionManagerBase" base class, that helps in keeping session related code object-oriented and clean. - "EmailBackend" for authenticating users based on their email, apart from username. - Custom db fields that can be used in models including a "UniqueHashField" and "RandomHashField". - Bunch of helpful functions in helper.py - "render_form_field" template tag that makes rendering form fields easy and DRY. - Couple of dry response classes: "JsonResponse" and "XMLResponse" in the django_common.http that can be used in views that give json/xml responses. WWW: https://github.com/tivix/django-common/ Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D19544 Added: head/www/py-django-common-helpers/ head/www/py-django-common-helpers/Makefile (contents, props changed) head/www/py-django-common-helpers/distinfo (contents, props changed) head/www/py-django-common-helpers/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Thu Mar 14 20:17:31 2019 (r495731) +++ head/www/Makefile Thu Mar 14 20:21:27 2019 (r495732) @@ -1542,6 +1542,7 @@ SUBDIR += py-django-caching-app-plugins SUBDIR += py-django-classy-tags SUBDIR += py-django-cms + SUBDIR += py-django-common-helpers SUBDIR += py-django-configurations SUBDIR += py-django-constance SUBDIR += py-django-contact-form Added: head/www/py-django-common-helpers/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/Makefile Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= django-common-helpers +PORTVERSION= 0.9.2 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Common things every Django app needs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> Added: head/www/py-django-common-helpers/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/distinfo Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,3 @@ +TIMESTAMP = 1549629858 +SHA256 (django-common-helpers-0.9.2.tar.gz) = 2d56be6fa261d829a6a224f189bf276267b9082a17d613fe5f015dd4d65c17b4 +SIZE (django-common-helpers-0.9.2.tar.gz) = 37792 Added: head/www/py-django-common-helpers/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/pkg-descr Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,23 @@ +py-django-common-helpers consists of the following things: + +- Middleware that makes sure a web-app runs either on or without "www" in the + domain. + +- "SessionManagerBase" base class, that helps in keeping session related code + object-oriented and clean. + +- "EmailBackend" for authenticating users based on their email, apart from + username. + +- Custom db fields that can be used in models including a "UniqueHashField" + and "RandomHashField". + +- Bunch of helpful functions in helper.py + +- "render_form_field" template tag that makes rendering form fields easy + and DRY. + +- Couple of dry response classes: "JsonResponse" and "XMLResponse" in the + django_common.http that can be used in views that give json/xml responses. + +WWW: https://github.com/tivix/django-common/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903142021.x2EKLSFx092095>