Fixed failing flake8 tests

This commit is contained in:
Michael Samoylov 2016-06-14 13:26:12 +03:00
parent eab8b57938
commit d83493890c
5 changed files with 14 additions and 11 deletions

View File

@ -39,9 +39,6 @@ THIRD_PARTY_APPS = (
'allauth', # registration
'allauth.account', # registration
'allauth.socialaccount', # registration
{% if cookiecutter.use_robots == "y" %}
'robots', # robots.txt
{% endif %}
)
# Apps specific for this project go here.

View File

@ -299,4 +299,8 @@ LOGGING = {
# Custom Admin URL, use {% raw %}{% url 'admin:index' %}{% endraw %}
ADMIN_URL = env('DJANGO_ADMIN_URL')
{% if cookiecutter.use_robots == "y" %}
INSTALLED_APPS += ('robots',) # robots.txt
{% endif %}
# Your production stuff: Below this line define 3rd party library settings

View File

@ -18,9 +18,7 @@ urlpatterns = [
# User management
url(r'^users/', include('{{ cookiecutter.project_slug }}.users.urls', namespace='users')),
url(r'^accounts/', include('allauth.urls')),
{% if cookiecutter.use_robots == "y" %}
url(r'^robots\.txt$', include('robots.urls')),
{% endif %}
# Your stuff: custom urls includes go here
@ -35,3 +33,7 @@ if settings.DEBUG:
url(r'^404/$', default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}),
url(r'^500/$', default_views.server_error),
]
{% if cookiecutter.use_robots == "y" %}
urlpatterns += [url(r'^robots\.txt$', include('robots.urls'))]
{% endif %}

View File

@ -54,9 +54,4 @@ redis>=2.10.0
celery==3.1.23
{% endif %}
{% if cookiecutter.use_robots == "y" %}
# django-robots
django-robots==2.0
{% endif %}
# Your custom requirements go here

View File

@ -37,3 +37,8 @@ raven
# -----------------------------------------
opbeat
{%- endif %}
{% if cookiecutter.use_robots == "y" %}
# django-robots
django-robots==2.0
{% endif %}