diegotoral / generator-django

A Yeoman generator for Django.
MIT License
78 stars 16 forks source link

Indentation #60

Closed muminoff closed 9 years ago

muminoff commented 9 years ago

Why did you use 2 spaces for indentation?

diegotoral commented 9 years ago

Are you asking about JavaScript code?

JavaScript code tends to have a lot of nested code so with 2 spaces indentation I think the code looks great and fit better on any screen size.

For Python files we use 4 spaces, as suggested in PEP8.

muminoff commented 9 years ago

Nope. I am asking about Python code.

When I generate new Django app, I see 2 space indentations in py files. It is uncomfortable somehow. I am generating Django app as shown in Readme:

$ yo django:startapp
diegotoral commented 9 years ago

I'll check that! Thanks for the report!

diegotoral commented 9 years ago

Hey @muminoff, you were right!

I just fixed the problem. Try the new release!

Thanks again and good luck! :smile:

muminoff commented 9 years ago

:+1: