معرفی شرکت ها


django-yacbv-0.0.1


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Replacement for Django's ClassBasedView.
ویژگی مقدار
سیستم عامل -
نام فایل django-yacbv-0.0.1
نام django-yacbv
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده hirokiky
ایمیل نویسنده hirokiky@gmail.com
آدرس صفحه اصلی https://github.com/hirokiky/django-yacbv
آدرس اینترنتی https://pypi.org/project/django-yacbv/
مجوز MIT
Django Yet Another Class Based View =================================== django-yacbv (YetAnotherClassBasedView) is replacement of django's CBV (django.views.generic.View). * Django's View can only dispatch corresponds to request.method. but in many cases, it should consider more things, such as request parameter. * Django's ClassBasedGenericView is inflexible, hard to remember it's API and hard to understand succession inheritances. * Django's View can't remove decorators, this is necessary for testing. it forces us to test views with decorators, always it obstructs to pure unit testing. As these solution, django-yacbv is released. YACBV is simple =============== django-yacbv provide simple class based view, allowing user to create more flexible dispatching, like this: .. code-block:: python from yacbv import View, view_config class TopView(View): @view_config(method='get', param='flip', template_name='top2.html') def flipped(self, request): return {'word': request.GET['flip']} @view_config(method='get', template_name='top.html') def get(self, request): return {'word': 'world'} Notice about them: * The `flip` method will be dispatched only case that Request object contains `flip` parameter. * The template for each views can be specified as `template_name` argument of `view_config`. * These returned dictionary will be used as context for Template. Now, django-yacbv is just pre-alpha library, not for production. If you like this package, check out it from `Github <https://github.com/hirokiky/django-yacbv/>`_!


نحوه نصب


نصب پکیج whl django-yacbv-0.0.1:

    pip install django-yacbv-0.0.1.whl


نصب پکیج tar.gz django-yacbv-0.0.1:

    pip install django-yacbv-0.0.1.tar.gz