Re: django internationalization

2022-11-28 Thread Dhrub Kumar Sharma
I want the remaining slug part print dynamically rather than listing manually like https://example.com/ru/hello-world Here, https://example.com/ is a domain ru - country code Hello-word is slug Domain and country code is easy to print using for loop up to available country code but for slug i d

Re: django internationalization

2022-11-28 Thread David Emanuel Sandoval
Hi, in my case I'm not sure if I'm understanding the problem well. Do you have a different url for every language? Are the urls also translated? In the docs i see they use a tag to get the correct url for the given language, but as I said, I'm not sure if that is what you want. https://docs.djan

django internationalization

2022-11-28 Thread Dhrub Kumar Sharma
Hi everybody I am applying Django internalization for a multilingual site. I am facing a problem with making href URL dynamic instead of repeating same code manually. [image: url.png] I tried this but cant get perfect href dynamically. please help me same problem I am facing in language switche

Re: getting unique id

2022-11-28 Thread Larry Martell
On Wed, Nov 23, 2022 at 3:11 PM Larry Martell wrote: > > On Wed, Nov 23, 2022 at 3:01 PM Thomas Lockhart > wrote: > > > > Why not use the existing Django AutoField? > > Because I have multiple rows with the same batch_id, and also I would > like the batch_ids to be sequential. > > The use case i

Re: Get current user in model signal pre_save

2022-11-28 Thread Pankaja Withanachchi
I had an issue where the password field didn't match the password field used in the default User Model Admin. This fixed that issue: https://stackoverflow.com/questions/73816296/password-field-is-visible-and-not-encrypted-in-django-admin-site Hope it helps somebody else! On Thursday, September 10