-
Notifications
You must be signed in to change notification settings - Fork 1
Coding guidlines
gista edited this page Oct 4, 2011
·
7 revisions
- Intedation: tabs (8 spaces)
- Class names: 'FooBar?' (with exception on Django models, where we use 'Foo_bar')
- Method and variable names: 'foo_bar', one or two underscores '_foo_bar' - (see http://www.python.org/dev/peps/pep-0008/)
- Use Pylint to check Your code before each commit
- Begin Your commit message with asterisk (*)
- When commiting changes to Django models begin commit message with '* [MODEL]'
- When commiting changes to Django settings begin commit message with '* [SETTING]'
- When Your commit is closing ticket, use 'fix #ticket_number' in commit message
- Python - 2.6
- Django - 1.3
- ExtJS - 3.4.x
- GeoExt - 1.0
- sorl-thumbnail (photo thumbnails) - https://github.com/sorl/sorl-thumbnail
- django-geoshortcuts - https://github.com/gista/django-geoshortcuts