Timeline for Generate unique Alphanumeric identifiers in django [duplicate]
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2020 at 12:08 | history | closed |
Błotosmętek Graviton intika |
Duplicate of Random string generation with upper case letters and digits | |
May 24, 2020 at 12:01 | history | edited | Narendra Vishwakarma | CC BY-SA 4.0 |
deleted 63 characters in body
|
May 24, 2020 at 11:55 | comment | added | Narendra Vishwakarma | Sure, Code has been updated. I have added models.py where "project_groupid" should be alphanumeric unique identifier for each group. | |
May 24, 2020 at 11:52 | history | edited | Narendra Vishwakarma | CC BY-SA 4.0 |
Code snippets added.
|
May 24, 2020 at 11:31 | comment | added | idan | Welcome to the community! Could you please provide some sample code. This helps give context for others to answer your question. Often we see request for solutions whereas that might not be the right way to tackle your problem | |
May 24, 2020 at 11:16 | comment | added | Narendra Vishwakarma | That's the way but wanted to see if we can generate unique ids without checking the database. | |
May 24, 2020 at 11:06 | comment | added | Błotosmętek | I assume the OP has means of checking whether the newly generated random string hasn't been used previously (and repeating the process until a unique one is generated). | |
May 24, 2020 at 10:59 | comment | added | Narendra Vishwakarma | "random.choice" doesn't guaranty for the uniqueness. Not sure if UUID4 will have unique numbers over the time. | |
May 24, 2020 at 10:56 | review | Close votes | |||
May 24, 2020 at 12:08 | |||||
May 24, 2020 at 10:50 | answer | added | ahmed | timeline score: 0 | |
May 24, 2020 at 10:41 | review | First posts | |||
May 24, 2020 at 11:31 | |||||
May 24, 2020 at 10:34 | history | asked | Narendra Vishwakarma | CC BY-SA 4.0 |