Mark Design
Mark Design

Reputation: 664

Write comments in Django

These days I started working with Django, it's great!

I wonder if there is a "standard" to write comments in Django, for example, like codeigniter: http://codeigniter.com/user_guide/general/styleguide.html#commenting...

Thanks!

Upvotes: 0

Views: 2062

Answers (2)

user1614526
user1614526

Reputation: 474

For Django views or any python file you can use the python style commenting

Like for single line comment your can try with

#

and for multiple line comment you can use """ """

and in templates you can do the html style commenting

like <!-- -->

Upvotes: 0

Mikael
Mikael

Reputation: 3236

I think it is a good idea to follow the PEP 8 recommendations for commenting your code. Also see PEP 257 for additional information about docstrings.

Upvotes: 2

Related Questions