معرفی شرکت ها


django-request-logger-2-0.3.1


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Django model for storing HttpRequest information.
ویژگی مقدار
سیستم عامل -
نام فایل django-request-logger-2-0.3.1
نام django-request-logger-2
نسخه کتابخانه 0.3.1
نگهدارنده ['YunoJuno']
ایمیل نگهدارنده ['code@yunojuno.com']
نویسنده YunoJuno
ایمیل نویسنده code@yunojuno.com
آدرس صفحه اصلی https://github.com/yunojuno/django-request-log
آدرس اینترنتی https://pypi.org/project/django-request-logger-2/
مجوز MIT
# Django Request Log Simple Django model for logging HttpRequest instances. ## Why? We have a number of libraries that store elements of a request (path, querystring, user, response code, remote_addr, and so on), and it seemed like time to create a single model that we can use in all of them, storing a common set of values. This is not a replacement for web server logs - it's a utility for use in specific situations where you want to accurately log that someone requested something. ## How it works There is a single model, `RequestLog` and a model manager with a `create` method that can take in a standard `HttpRequest` and / or `HttpResponse` object and create a new `RequestLog` object. If you are using this to record view functions, there is also a decorator, `log_request` that will take care of all this for you: ```python from request_logger.decorators import log_request @log_request("downloads") def download(request: HttpRequest) -> HttpReponse: return HttpResponse("OK") @log_request(lambda r: r.user.get_full_name()) def download(request: HttpRequest) -> HttpReponse: return HttpResponse("OK") ``` The `log_request` argument is mandatory and is used as a "reference", or category classifier. It can be a str, or a callable which takes in the request as a single arg. ## Screenshots **Admin list view** <img src="screenshots/admin-list.png"> **Admin item view** <img src="screenshots/admin-edit.png">


نیازمندی

مقدار نام
>=3.0,<5.0 django


زبان مورد نیاز

مقدار نام
>=3.10,<4.0 Python


نحوه نصب


نصب پکیج whl django-request-logger-2-0.3.1:

    pip install django-request-logger-2-0.3.1.whl


نصب پکیج tar.gz django-request-logger-2-0.3.1:

    pip install django-request-logger-2-0.3.1.tar.gz