Installation

To install django-anylink just use your preferred Python package installer:

pip install django-anylink

Add anylink to your Django settings

INSTALLED_APPS = (
    # other apps
    'anylink',
)

Now, you should define at least one link extension, for example external links.

ANYLINK_EXTENSIONS = (
    'anylink.extensions.ExternalLink',
)

django-anylink auto-creates models for those migrations. To prevent them landing in Python’s site packages directory, explicitly define (and create!) a module for them:

MIGRATION_MODULES = {
    'anylink': 'migrations.anylink',
}

Details on how to use django-anylink in your Django application can be found in the Configuration section.

TinyMCE Integration

django-anylink comes with a TinyMCE plugin already integrated. To use it you only have to install django-tinymce according to it’s documentation and enable the anylink plugin.

TINYMCE_DEFAULT_CONFIG = {
    'theme': 'advanced',
    'plugins': 'anylink',
    'theme_advanced_buttons1': (
        'anylink',
    ),
    'anylink_url': '/anylink/anylink/',
}