معرفی شرکت ها


django-urldecorators-0.7


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Django-urldecorators is a reusable Django application which allows apply view decorators and middleware components depending on requested url.
ویژگی مقدار
سیستم عامل -
نام فایل django-urldecorators-0.7
نام django-urldecorators
نسخه کتابخانه 0.7
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Miloslav Pojman
ایمیل نویسنده miloslav.pojman@gmail.com
آدرس صفحه اصلی http://github.com/mila/django-urldecorators/tree/master
آدرس اینترنتی https://pypi.org/project/django-urldecorators/
مجوز -
**This project is archived. It is no longer updated or maintained.** Django-urldecorators is a reusable Django application which allows apply view decorators and middleware components based on a requested URL. This library is compatible with Django 1.4 and later. If you need to use older Django versions (which receive no security updates or bugfixes) you can install 0.4 version of django-urldecorators. Installation and usage ====================== 1) Run `python setup.py install` or add the `urldecorators` module to your `PYTHONPATH` (or use pip or easy_install). 2) In `urls.py` file replace `from django.conf.urls import url, include` by `from urldecorators import url, include` 3) Pass a list of decorators and/or middleware_classes as an argument to the `url` function. Example urls.py file: :: from urldecorators import url, include urlpatterns = [ url(r'^private/$', include('example.private.urls'), decorators=['django.contrib.auth.decorators.login_required']), url(r'^articles/$', include('example.articles.urls'), middleware_classes=['django.middleware.cache.CacheMiddleware']), ] For the example configuration and usage see the example project included in the repository. It can be run using `django-admin.py` utility from the repository root: :: $ django-admin.py syncdb --settings=example.settings --pythonpath="$PWD" $ django-admin.py createsuperuser --settings=example.settings --pythonpath="$PWD" $ django-admin.py runserver --settings=example.settings --pythonpath="$PWD" Requirements ============ Django-urldecorators is tested with Django versions from 1.4 to 1.11 but it does not support `patterns function <https://docs.djangoproject.com/en/1.11/releases/1.8/#django-conf-urls-patterns>`_ from ancient Django versions. Both Python 2 and Python 3 are supported. Testing ======= Application tests can run using `tox`: :: $ tox


نحوه نصب


نصب پکیج whl django-urldecorators-0.7:

    pip install django-urldecorators-0.7.whl


نصب پکیج tar.gz django-urldecorators-0.7:

    pip install django-urldecorators-0.7.tar.gz