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',
)
Furthermore, you should consider using South for adding extensions. Because South would try to put the schema migrations inside the Python site packages directory, add the following (or something similar) to your settings.
SOUTH_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/',
}