Skip to content

Conversation

@czanella
Copy link

@czanella czanella commented Oct 4, 2025

This PR adds an optional SHORTENER_DICTIONARY setting to the app. This allows the user to have control over which characters will be used when a shortcode is created. If no dictionary is provided, the usual character set (lowercase letters, uppercase letters, digits, no confusing digits) will be used.

Steps to test

  • Set the SHORTENER_DICTIONARY setting to "abcde" and run a few tests. Verify that the generated shortcodes are composed only by the "abcde" letters

  • Remove the SHORTENER_DICTIONARY setting and run a few more tests. Verify that the generated shortcodes follow the same usual pattern of django-link-shortener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant