معرفی شرکت ها


django-deep-link-0.2.6


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Your project description goes here
ویژگی مقدار
سیستم عامل -
نام فایل django-deep-link-0.2.6
نام django-deep-link
نسخه کتابخانه 0.2.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Tim Santor
ایمیل نویسنده tsantor@xstudios.com
آدرس صفحه اصلی https://github.com/tsantor/django-deep-link
آدرس اینترنتی https://pypi.org/project/django-deep-link/
مجوز MIT
# Django Deep Link ## Overview Simple app to get mobile app deep linking in place with basic tracking. ## Documentation The full documentation is at ... ## Quickstart Install Django Deep Link:: ```bash pip install django-deep-link ``` Add it to your `INSTALLED_APPS`: ```python INSTALLED_APPS = ( ... 'django_deep_link.apps.DjangoDeepLinkConfig', ... ) ``` Add Django Deep Link's URL patterns: ```python from django_deep_link import urls as django_deep_link_urls urlpatterns = [ ... path(r"", include(django_deep_link_urls, namespace='django-deep-link')), ... ] ``` ## Provide Your Own IP Geodata Handler ``` import requests from django.core.cache import cache def get_ip_geodata(ip_address): """Use 3rd party API to obtain Geodata from a given IP.""" if cache.get(ip_address): return cache.get(ip_address) params = {} r = requests.get(f"https://domain.com/{ip_address}", params=params) r.raise_for_status() cache.set(ip_address, r.json(), 60*60*24) # 24 hrs return r.json() ``` The IP geodata handler must also be configured in your settings, using the `IP_GEO_HANDLER` setting key. For example: DEEP_LINK = { 'IP_GEO_HANDLER': 'my_project.my_app.utils.get_ip_geodata' } If not specified, the `'IP_GEO_HANDLER'` setting defaults to the geodata provided by Deep Link, which leverages [IP Stack](https://ipstack.com/): DEEP_LINK = { 'IP_GEO_HANDLER': 'django_deep_link.helpers.ip.get_ip_geodata' } ## Features * TODO ## Running Tests Does the code actually work? ```bash source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox ``` ## Development commands ```bash pip install -r requirements_dev.txt invoke -l ``` # Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.1.0] - 2021-07-23 * First release on PyPI. ## [0.2.2] - 2021-07-29 ### Added - Link to mobile and desktop app stores. ### Fixed - Broken app store links in app listing ## [0.2.3] - 2021-07-29 ### Changed - Don't assume url pattern ## [0.2.4] - 2021-07-29 ### Added - Capture query params in visit ## [0.2.5] - 2021-07-29 ### Changed - Removed print statement - Moved `get_querystring_as_dict` into `helpers` ## [0.2.6] - 2021-08-04 ### Fixed - Added missing migrations.


نیازمندی

مقدار نام
>=2.0 django-model-utils
==0.10.0 ua-parser
==2.2.0 user-agents
==3.0.2 django-ipware
<3,>=2.26.0 requests


نحوه نصب


نصب پکیج whl django-deep-link-0.2.6:

    pip install django-deep-link-0.2.6.whl


نصب پکیج tar.gz django-deep-link-0.2.6:

    pip install django-deep-link-0.2.6.tar.gz