开发者

Is Django Model name 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜