We are using the Django framework and in the book "2 scoops of django" there is a recommendation to use underscore naming for specific things, should this be included in the naming of templates as well? front end developers here are really locked on dashes and I was just wondering?
I think one reason why underscores are better in Python files is so that they can be imported. A dash is interpreted as a minus sign, which can cause problems.
For your Django templates, it's a matter of preference so you will likely be fine using any convention you prefer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With