Django Ads-txt
This is a basic Django application to manage Authorized Digital Sellers (ads.txt) file based on iabtech lab specification
Requirements
Python 2.7, 3.5 or PyPy.
Django 1.9 or higher.
Installation
Use your favorite Python installer to install it from PyPI:
pip install django-ads-txt
Or get the source from the application site at:
https://github.com/flyingelephantlab/django-ads-txt/
-
Add
'ads_txt'to your INSTALLED_APPS setting. -
Run the
migratemanagement command -
To activate ads.txt generation on your Django site, add this line to your URLconf:
url(r'^ads\.txt', include('ads_txt.urls')),
- Add the domains you need to appear from admin panel
Rules
The instructions are encoded as a formatted plain text object, described here. A complete description of the syntax of this format:
<Domain #1>, <Account ID #2>, <Account type #3>, <Authority ID #4>
| Field | Description |
|---|---|
| Domain (Required) | Domain name of the advertising system |
| Account ID (Required) | The identifier associated with the seller or reseller account |
| Account type (Required) | Type of Account/Relationship. It has two values DIRECT and RESELLER |
| Authority ID (Optional) | An ID that uniquely identifies the advertising system within a certification authority |
Examples:
example.com, 108933, DIRECT, 7857hf1d2fr6d8b34
opexample.com, [538220672 - CC], RESELLER, 6a69ec356744c6
opexample.com, [537120668 - CC], RESELLER, 6a69ec356744c6
ex.com, 7118, RESELLER
Caching
You can optionally cache the generation of the ads.txt. Add or change the ADSTXT_CACHE_TIMEOUT setting with a value in seconds in your Django settings file:
ADSTXT_CACHE_TIMEOUT = 60*60*24
Bugs and feature requests
As always your mileage may vary, so please don’t hesitate to send feature requests and bug reports:
Metadata
Release files for django-ads-txt 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-ads-txt-0.1.2.tar.gz | 5.4 kB | Without provenance | Details for django-ads-txt-0.1.2.tar.gz |
Release files / django-ads-txt-0.1.2.tar.gz
| Download URL | django-ads-txt-0.1.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64178b734a56352db22c9f9908b581a9d0d6ef859adf65a348b954a5a894a639
|
|
BLAKE2b-256 checksum How to use checksums |
a2329c9f4be8135a8e2e255fcfd8aced15240ab6c8f2351bea272929f2ac368c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for django-ads-txt 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.