mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
Merge branch 'master' of github.com:pydanny/cookiecutter-django
This commit is contained in:
commit
8f7b5d5cf1
|
@ -12,7 +12,7 @@ trim_trailing_whitespace = true
|
|||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.yml]
|
||||
[*.{html,css,scss,json,yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
|
|
|
@ -2,3 +2,16 @@ Linters
|
|||
=======
|
||||
|
||||
.. index:: linters
|
||||
|
||||
|
||||
flake8
|
||||
-------
|
||||
|
||||
To run flake8:
|
||||
|
||||
$ flake8
|
||||
|
||||
The config for flake8 is located in setup.cfg. It specifies:
|
||||
|
||||
* Set max line length to 120 chars
|
||||
* Exclude .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
|
||||
|
|
|
@ -19,7 +19,7 @@ known_first_party={{ cookiecutter.repo_name }}
|
|||
multi_line_output=3
|
||||
default_section=THIRDPARTY
|
||||
|
||||
[*.yml]
|
||||
[*.{html,css,scss,json,yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
|
|
3
{{cookiecutter.repo_name}}/.gitignore
vendored
3
{{cookiecutter.repo_name}}/.gitignore
vendored
|
@ -55,3 +55,6 @@ node_modules/
|
|||
|
||||
# virtual environments
|
||||
.env
|
||||
|
||||
# User-uploaded media
|
||||
{{ cookiecutter.repo_name }}/media/
|
||||
|
|
|
@ -17,7 +17,7 @@ Collectfast==0.2.3
|
|||
|
||||
# Mailgun Support
|
||||
# ---------------
|
||||
django-mailgun==0.6.0
|
||||
django-mailgun==0.7.2
|
||||
|
||||
{% if cookiecutter.use_sentry == "y" -%}
|
||||
# Raven is the Sentry client
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
[flake8]
|
||||
#ignore = E265
|
||||
max-line-length = 120
|
||||
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs
|
||||
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
|
||||
|
|
|
@ -28,3 +28,11 @@
|
|||
float: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Display django-debug-toolbar.
|
||||
See https://github.com/django-debug-toolbar/django-debug-toolbar/issues/742
|
||||
and https://github.com/pydanny/cookiecutter-django/issues/317
|
||||
*/
|
||||
[hidden][style="display: block;"] {
|
||||
display: block !important;
|
||||
}
|
|
@ -13,3 +13,28 @@
|
|||
background-color: #f2dede;
|
||||
border-color: #eed3d7;
|
||||
}
|
||||
|
||||
/* This is a fix for the bootstrap4 alpha release */
|
||||
@media (max-width: 47.9em) {
|
||||
.navbar-nav .nav-item {
|
||||
float: none;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-item + .nav-item {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.nav.navbar-nav.pull-right {
|
||||
float: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Display django-debug-toolbar.
|
||||
See https://github.com/django-debug-toolbar/django-debug-toolbar/issues/742
|
||||
and https://github.com/pydanny/cookiecutter-django/issues/317
|
||||
*/
|
||||
[hidden][style="display: block;"] {
|
||||
display: block !important;
|
||||
}
|
Loading…
Reference in New Issue
Block a user