开发者

Is Django Model name case sensitive

开发者 https://www.devze.com 2023-03-17 07:38 出处:网络
I have this class Class Fruits: Class fruits: Are they both s开发者_C百科ame or different I need to pass theModel name in URL so will it accept if someone enter lowercasePython is case sensitive

I have this class

Class Fruits:


Class fruits:

Are they both s开发者_C百科ame or different

I need to pass the Model name in URL so will it accept if someone enter lowercase


Python is case sensitive, so by extension, Django is too.

See here for making Django urls behave case-insensitively

0

精彩评论

暂无评论...
验证码 换一张
取 消