0

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!

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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 <!-- -->

1 Comment

may be my answer is not much sophisticated but it will give you the basic idea

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.