Page MenuHomeFreeBSD

D19544.diff
No OneTemporary

D19544.diff

Index: head/www/Makefile
===================================================================
--- head/www/Makefile
+++ head/www/Makefile
@@ -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
Index: head/www/py-django-common-helpers/Makefile
===================================================================
--- head/www/py-django-common-helpers/Makefile
+++ head/www/py-django-common-helpers/Makefile
@@ -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>
Index: head/www/py-django-common-helpers/distinfo
===================================================================
--- head/www/py-django-common-helpers/distinfo
+++ head/www/py-django-common-helpers/distinfo
@@ -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
Index: head/www/py-django-common-helpers/pkg-descr
===================================================================
--- head/www/py-django-common-helpers/pkg-descr
+++ head/www/py-django-common-helpers/pkg-descr
@@ -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/

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 5:01 AM (5 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29754673
Default Alt Text
D19544.diff (2 KB)

Event Timeline