permalink_adder
PACKAGE RENAMED AND MOVED TO: https://pypi.python.org/pypi/internal_links
This package will be preserved for backward compatibility with current users, but won’t be developed anymore under this name.
SEO tool for adding permalinks to text contained in Django apps databases.
Installation
Install with pip:
pip install permalink_adder
Usage
You need to specify where and what to look for in your Django app’s settings in this manner:
PERMALINK_ADDER_SETTINGS = [{'app': 'your_app_name',
'model_name': 'your_model_name',
'fields': ['list', 'of', 'fields', 'in', 'which', 'script', 'should', 'search'],
'words': ['list', 'of', 'words', 'to', 'search'],
'url': 'url_that_should_be_wrapped_around_found_text'}]
Starting script with option --start will actually apply changes to database, instead of printing them out.
You can run the script either using add_permalinks management command or call permalink_adder function from adder.py module.
Output
No output if there are no occurrences of words or when they’re already wrapped.
Without --start option, script will only print out proposed changes.
Metadata
Release files for permalink_adder 0.1.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| permalink_adder-0.1.4.5.tar.gz | 2.7 kB | Details |
Release files / permalink_adder-0.1.4.5.tar.gz
| Download URL | permalink_adder-0.1.4.5.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b018192ac3498ac62496f0fdeb16e6131c1eec95eabf4332e4f4db0d7d8eb62
|
|
BLAKE2b-256 checksum How to use checksums |
62986a55a6cdeda4030564ee6d81bbaa8678bbc10b8e6a766cbaa71b76beeee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |