Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty string settings.PTRACK_APP_URL #5

Open
thenewguy opened this issue Oct 14, 2018 · 0 comments
Open

Allow empty string settings.PTRACK_APP_URL #5

thenewguy opened this issue Oct 14, 2018 · 0 comments

Comments

@thenewguy
Copy link

I handle url normalization with a post processor. It would be handy if PTRACK_APP_URL could be an empty string.

Not a lot of work but I had to do this:

def rel_ptrack_tag(*args, **kwargs):
    encoded_dict = {'ptrack_encoded_data': ptrack_encoder.encrypt(*args, **kwargs)}
    url = reverse('ptrack', kwargs=encoded_dict)
    return mark_safe("<img src='%s' width=1 height=1>" % (url,))
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

No branches or pull requests

1 participant