projets
/
auf_recipe_django.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ac55c31
)
Un peu plus de PEP8
author
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 25 Apr 2012 19:54:53 +0000
(15:54 -0400)
committer
Eric Mc Sween
<eric.mcsween@auf.org>
Wed, 25 Apr 2012 19:54:53 +0000
(15:54 -0400)
auf/recipe/django/boilerplate.py
patch
|
blob
|
blame
|
history
diff --git
a/auf/recipe/django/boilerplate.py
b/auf/recipe/django/boilerplate.py
index
3b306b4
..
a0efe26
100644
(file)
--- a/
auf/recipe/django/boilerplate.py
+++ b/
auf/recipe/django/boilerplate.py
@@
-37,9
+37,9
@@
application = %(module_name)s.%(attrs)s(%(arguments)s)
}
}
-################################################################################
+###############################################################################
# SETTINGS
# SETTINGS
-################################################################################
+###############################################################################
conf_file = '''# -*- encoding: utf-8 -*
conf_file = '''# -*- encoding: utf-8 -*
@@
-58,7
+58,7
@@
DATABASES = {
}
'''
}
'''
-dashboard_file ='''# -*- encoding: utf-8 -*
+dashboard_file = '''# -*- encoding: utf-8 -*
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
@@
-92,7
+92,8
@@
class CustomIndexDashboard(Dashboard):
auf_urls_template = '''# -*- encoding: utf-8 -*
auf_urls_template = '''# -*- encoding: utf-8 -*
-from django.conf.urls.defaults import patterns, include, handler500, handler404, url
+from django.conf.urls.defaults import \\
+ patterns, include, handler500, handler404, url
from django.conf import settings
from django.contrib import admin
from django.conf import settings
from django.contrib import admin
@@
-179,17
+180,17
@@
SOUTH_TESTS_MIGRATE = False
ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
-from conf import *
+from conf import * # NOQA
'''
'''
-################################################################################
+###############################################################################
# DEVELOPPEMENT
# DEVELOPPEMENT
-################################################################################
+###############################################################################
auf_development_settings = '''# -*- encoding: utf-8 -*-
auf_development_settings = '''# -*- encoding: utf-8 -*-
-from %(project)s.settings import *
-DEBUG=True
-TEMPLATE_DEBUG=DEBUG
+from %(project)s.settings import * # NOQA
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
# Décommentez ces lignes pour activer la debugtoolbar
#INTERNAL_IPS = ('127.0.0.1',)
# Décommentez ces lignes pour activer la debugtoolbar
#INTERNAL_IPS = ('127.0.0.1',)
@@
-199,9
+200,9
@@
TEMPLATE_DEBUG=DEBUG
AUTH_PASSWORD_REQUIRED = False
'''
AUTH_PASSWORD_REQUIRED = False
'''
-################################################################################
+###############################################################################
# PRODUCTION
# PRODUCTION
-################################################################################
+###############################################################################
auf_production_settings = ''' # -*- encoding: utf-8 -*-
# En production, rediriger la sortie terminal on disponible en WSGI
auf_production_settings = ''' # -*- encoding: utf-8 -*-
# En production, rediriger la sortie terminal on disponible en WSGI
@@
-209,5
+210,5
@@
auf_production_settings = ''' # -*- encoding: utf-8 -*-
import sys
sys.stdout = sys.stderr
import sys
sys.stdout = sys.stderr
-from %(project)s.settings import *
+from %(project)s.settings import * # NOQA
'''
'''