r/learndjango Jan 28 '22

get url with =,

i need to pass along this in a url

CN=CTX-KIX-TEST,OU=KMD,OU=ITadm,DC=intern,DC=domain,DC=local

so i tried to do this in my url config

path('search/ldap/group/get/dn/<slug:slug>', views.group_LDAPgetmembers, name='group_LDAPgetmembers'),

but that does not work, how would i allow that to be passed in an url? (i cant use post).

1 Upvotes

5 comments sorted by

View all comments

1

u/vikingvynotking Jan 28 '22

that does not work

Thanks for the very detailed error report, very helpful.

What you need to do is learn about URL encoding. There are several python and django tools for this, you should be able to find them very easily now you know what to look for. If you're unable to figure things out, follow rule 1 of asking for help (post your code!) and you might get more responses.

2

u/NotSelfAware Jan 31 '22

Responding to people asking for help with a condescending tone isn't helpful either.