user1
user1

Reputation: 2259

Is Django Model name case sensitive

I have this class

Class Fruits:


Class fruits:

Are they both same or different

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

Upvotes: 0

Views: 499

Answers (1)

Rich
Rich

Reputation: 3720

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

See here for making Django urls behave case-insensitively

Upvotes: 2

Related Questions