Commit Graph

971 Commits

Author SHA1 Message Date
Bruno Alla
823ee637d1 Remove dead link in .gitignore
Fixes #1972
2019-03-20 12:16:43 +00:00
Bruno Alla
5bf0a397ac Pin redis version 2019-03-20 12:09:43 +00:00
Bruno Alla
b0cb86f282
Merge pull request #1958 from rolep/kombu-update
Redis and Kombu update
2019-03-20 12:08:41 +00:00
Guilherme Fabrizio
7d1e90bdf5 Migrate to unified Sentry SDK (#1820)
The raven library is deprecated. Replace it by the new sentry-sdk library:

https://docs.sentry.io/error-reporting/quickstart/?platform=python

fixes #1818
2019-03-20 10:04:44 +00:00
Bruno Alla
997b22e4ce Merge branch 'fix/default-acl' 2019-03-19 20:02:41 +00:00
Bruno Alla
b594a15847 Add code style black to the generated README 2019-03-19 20:02:26 +00:00
Bruno Alla
6e9f87fced Set AWS_DEFAULT_ACL to None as per django-storages documentation
fixes #1885
2019-03-19 19:57:31 +00:00
Bruno Alla
e740a54da6
Update Flower version 2019-03-19 12:30:19 +00:00
Demetris
b312d516a4 Replace Caddy with Traefik (#1714)
## Description

Replace Caddy with Traefik

## Rationale

There is some trouble with the Caddy license (https://github.com/pydanny/cookiecutter-django/pull/1282#issuecomment-329617536) 

@drdaeman suggested using Traefik (https://github.com/pydanny/cookiecutter-django/pull/1282#issuecomment-353655273) which supports ACME and also plays very nice with Docker.

## Comments

I am currently using the proposed setup on a live site and it working great so far. If this PR is of interest to the maintainers, then I could commit more changes and take care of the documentation. Of course, any suggestions by the more experienced people around here, are welcome!
2019-03-19 09:32:45 +00:00
Bruno Alla
3bd7aa4e1a Fix build error with windows=y and docker=y combination
Fixes #1917
2019-03-18 20:55:47 +00:00
Bruno Alla
68f7268770
Run Black on Travis (#1957)
* Create a test matrix on Travis CI to help testing multiple options

* Change test_docker.sh to fail if any command in it fails

* Run black on the CI with --check option

* Fix formatting of project files using black

* Install black in the docker container

* Exclude migrations in black checks

* Fix Black formatting violations

* Run black on the whole generated project & fix issues
2019-03-18 17:49:43 +00:00
Bruno Alla
563e0938a8
Merge pull request #1664 from pydanny/clean-up-project-docs
Remove project doc files likely to remain unused
2019-03-13 14:40:18 -03:00
Oleg Russkin
638c93d1df Add kombu to base (celery) dependencies
Using latest version 4.4.0, previous suitable 4.3.0
also had bug: kombu/issues#1006
2019-03-12 16:38:43 +02:00
Oleg Russkin
6213af4b56 Update redis to 3.2.0
Related bug was fixed: celery/kombu#947
Moreover, recent kombu versiones demand
such redis version.
2019-03-12 16:35:03 +02:00
Bruno Alla
eb85627d1a Update to latest bug fix for Python 3.6 to fix Heroku warning when deploying
Python has released a security update! Please consider upgrading to python-3.6.8
Learn More: https://devcenter.heroku.com/articles/python-runtimes
2019-03-11 22:02:11 +00:00
Bruno Alla
9eab0b9365
Merge pull request #1956 from pydanny/conditional-redis-merge
## Description

This is the same as the pull request #1693 with the master branch merged into it to avoid all the extra unrelated commits which are already in master. Looks like Github is getting confused due to a rebase on that branch, which make that PR hard to review...

## Rationale

See #1693 - Locally, Redis is necessary only if Celery is used, while in Production it's also used for Caching.

## Use case(s) / visualization(s)

Fixes #1691
2019-03-11 21:12:58 +00:00
yunti
1c5c4e52c0 Add automatic migrations to heroku deploys (#1951)
heroku now has a new feature for running tasks as part of deployment. Perfect for automatic migrations.
https://devcenter.heroku.com/articles/release-phase#specifying-release-phase-tasks
2019-03-11 21:05:31 +00:00
Bruno Alla
ae27ef3fae Merge branch 'master' into conditional-redis-merge 2019-03-11 20:53:36 +00:00
btknu
6e72169ffe Add missing script key to Travis CI config (#1950)
* Add failing test for travis.yml

I see three options to test travis.yml :

1. Testing that the YAML contains relevant value. Least useful and least
reliable, but simplest to implement.

2. Testing that the YAML is valid TravisCI YAML. Unfortunately this is
difficult / impossible. Doing 'travis lint' would succeed, this command
does not check for 'script' key presence and wouldn't be useful for us.

We could use 'travis-build' to verify that the YAML can be converted to
a worker config, but as of now 'travis-build' doesn't work out of the
box.

There is a new tool for validating travis YAML files 'travis-yml', but
as of now it's a ruby-only library and it's still a work in progress.

3. Running Travis CI task based on the generated YAML. This seems the
best approach, however since cookiecutter-django itself uses Travis CI,
that would require running Travis CI from within Travis CI.

Scheduling Travis CI job without a github push still requires a public
github repo, which is something that we can't generate on demand.

Given that I'm opting to use approach 1.

* Adds missing config to generated .travis.yml

The keys added are as follows:

1. 'script'

Required by Travis, cookiecutter-django used to provide it until it has
been removed together with hitch.

I'm assuming hitch has been replaced with pytest, I'm setting pytest as
the new value for the 'script' key.

2. 'install'

Not required by Travis, but necessary in our case; installs test
libraries, mostly pytest.

As of now this points to 'local.txt' requirements file. There used to be
a separate 'test.txt' requirements file but it has been decided to merge
it with 'local.txt', see discussion in
https://github.com/pydanny/cookiecutter-django/pull/1557 .

* Update CONTRIBUTORS.rst
2019-03-05 22:10:45 -03:00
keithjeb
aea5c807f6 Change eager celery setting in local Docker (#1945)
[//]: # (Thank you for helping us out: your efforts mean great deal to the project and the community as a whole!)

[//]: # (Before you proceed:)

[//]: # (1. Make sure to add yourself to `CONTRIBUTORS.rst` through this PR provided you're contributing here for the first time)
[//]: # (2. Don't forget to update the `docs/` presuming others would benefit from a concise description of whatever that you're proposing)


## Description

[//]: # (What's it you're proposing?)

Added a note around CELERY_TASK_ALWAYS_EAGER = True in docker config for local development. This causes tasks to be executed on the 'main' thread rather than by the workers. I understand why that might be desirable, but thought it worth calling out incase (like me) it makes people think something is broken.


## Rationale

[//]: # (Why does the project need that?)

Ease of use/troubleshooting


## Use case(s) / visualization(s)

[//]: # ("Better to see something once than to hear about it a thousand times.")
2019-03-02 13:51:30 +00:00
Anna Sidwell
b6b7176d02 Make requested changes:
* Reorder meta tasks to the bottom
* Fix JS compilation issue
* Replace strings concatenation with templates
2019-02-27 10:11:20 +11:00
Anna Sidwell
2676401ed7 Update Gulp & other dependencies 2019-02-23 18:47:30 +11:00
pyup.io bot
1c11f0950f Update django from 2.0.10 to 2.0.13 (#1936) 2019-02-16 14:34:11 +03:00
pyup-bot
9e2d335ed3 Update mypy from 0.660 to 0.670 2019-02-08 16:28:37 -08:00
Bruno Alla
7fe87d9c97
Merge pull request #1925 from pydanny/pyup-update-pytest-django-3.4.5-to-3.4.7
Update pytest-django to 3.4.7
2019-02-05 10:26:10 +01:00
Bruno Alla
ca528c482c
Merge pull request #1926 from pydanny/pyup-update-flake8-3.7.4-to-3.7.5
Update flake8 to 3.7.5
2019-02-05 10:25:50 +01:00
pyup-bot
06a96b68dc Update sphinx from 1.8.3 to 1.8.4 2019-02-04 18:46:40 -08:00
pyup-bot
fe81992501 Update flake8 from 3.7.4 to 3.7.5 2019-02-04 18:46:34 -08:00
pyup-bot
6050368df0 Update pytest-django from 3.4.5 to 3.4.7 2019-02-03 13:54:30 -08:00
pyup-bot
8774ede3b0 Update flake8 from 3.7.3 to 3.7.4 2019-02-01 06:53:37 -08:00
Bruno Alla
65d2ce07fb
Merge pull request #1916 from pydanny/pyup-update-django-extensions-2.1.4-to-2.1.5
Update django-extensions to 2.1.5
2019-01-31 16:53:04 +01:00
Bruno Alla
11e7adfbd4
Merge pull request #1920 from pydanny/pyup-update-flake8-3.6.0-to-3.7.3
Update flake8 to 3.7.3
2019-01-31 16:52:30 +01:00
pyup-bot
43bfd66aa0 Update flake8 from 3.6.0 to 3.7.3 2019-01-31 05:23:23 -08:00
pyup-bot
8c7a3613ba Update pytest from 4.1.1 to 4.2.0 2019-01-30 16:40:23 -08:00
Fábio C. Barrionuevo da Luz
156afe675b
Merge pull request #1907 from pydanny/pyup-update-djangorestframework-3.9.0-to-3.9.1
Update djangorestframework to 3.9.1
2019-01-30 17:08:42 -03:00
pyup-bot
0ef965cbfd Update django-extensions from 2.1.4 to 2.1.5 2019-01-30 11:53:28 -08:00
pyup-bot
a7af2d5153 Update psycopg2-binary from 2.7.6.1 to 2.7.7 2019-01-22 11:58:06 -08:00
pyup.io bot
563ca77480 Update mypy from 0.650 to 0.660 (#1908) 2019-01-22 14:30:50 +03:00
pyup.io bot
e2f46e392e Update argon2-cffi from 18.3.0 to 19.1.0 (#1909) 2019-01-22 14:30:37 +03:00
pyup-bot
cf88911c36 Update djangorestframework from 3.9.0 to 3.9.1 2019-01-16 09:20:56 -08:00
pyup.io bot
b0380da4c0 Update pytz from 2018.7 to 2018.9 (#1902) 2019-01-13 16:48:23 +03:00
pyup.io bot
e5f779c9cc Update pytest-django from 3.4.4 to 3.4.5 (#1903) 2019-01-13 16:48:11 +03:00
pyup-bot
33d03e06ab Update pytest from 4.1.0 to 4.1.1 2019-01-12 23:34:49 -08:00
pyup.io bot
34620a1c57 Update pillow from 5.3.0 to 5.4.1 (#1901) 2019-01-07 02:04:50 +03:00
pyup.io bot
2bf8f286e4 Update pytest to 4.1.0 (#1900)
* Update pytest from 4.0.2 to 4.1.0

* Update pytest from 4.0.2 to 4.1.0
2019-01-07 02:04:14 +03:00
pyup-bot
530e94d30e Update django from 2.0.9 to 2.0.10 2019-01-04 13:34:34 -08:00
pyup.io bot
83150e9a55 Update python-slugify from 2.0.0 to 2.0.1 (#1898) 2019-01-04 10:17:12 +08:00
Fábio C. Barrionuevo da Luz
cfe8048929
Merge pull request #1896 from pydanny/pyup-update-sphinx-1.8.2-to-1.8.3
Update sphinx to 1.8.3
2018-12-27 12:00:30 -03:00
pyup-bot
d35bad4f99 Update sphinx from 1.8.2 to 1.8.3 2018-12-25 15:42:12 -08:00
pyup-bot
23f0f6e015 Update python-slugify from 1.2.6 to 2.0.0 2018-12-25 15:42:08 -08:00
pyup-bot
09f4b8225c Update raven from 6.9.0 to 6.10.0 2018-12-19 07:53:59 -08:00
Bruno Alla
c9f6159d62
Merge pull request #1883 from pydanny/pyup-update-django-debug-toolbar-1.10.1-to-1.11
Update django-debug-toolbar to 1.11
2018-12-17 14:25:48 +00:00
Bruno Alla
78a26b2690
Merge branch 'master' into pyup-update-mypy-0.641-to-0.650 2018-12-17 14:17:38 +00:00
pyup-bot
553e752a6b Update pytest from 4.0.1 to 4.0.2 2018-12-14 18:35:57 -08:00
pyup-bot
6fcded1ec9 Update mypy from 0.641 to 0.650 2018-12-07 13:33:34 -08:00
pyup-bot
928bf6fe4e Update django-debug-toolbar from 1.10.1 to 1.11 2018-12-03 11:28:28 -08:00
Tubo Shi
a1508f2600 updated spacing utility class name 2018-11-30 18:12:08 +13:00
pyup-bot
ebaddf6320 Update pytest from 4.0.0 to 4.0.1 2018-11-24 09:32:08 -08:00
pyup.io bot
e97304387d Update django-extensions from 2.1.3 to 2.1.4 (#1875) 2018-11-22 15:56:54 +00:00
Bruno Alla
6e85ee4aa9
Merge pull request #1869 from Egregors/master
Pinning redis version to >=2.10.6, <3
2018-11-20 16:17:38 +00:00
Bruno Alla
5df8a5cf64
Merge pull request #1852 from hpbruna/patch-1
CSRF in header
2018-11-20 09:57:49 +00:00
pyup.io bot
a598a0a67a Update whitenoise from 4.1.1 to 4.1.2 (#1872) 2018-11-20 10:10:30 +08:00
pyup-bot
0d5ce3c032 Update django-redis from 4.9.0 to 4.10.0 2018-11-19 02:19:54 -08:00
Vadim Iskuchekov
e407eb9c13
Clean up, version restriction not only for pyup
Default pip ignored # pyup notation. So now version restriction sets decidedly
2018-11-18 18:49:55 +01:00
Vadim Iskuchekov
ff6d331a20
Pinning redis version to >=2.10.6, <3
Fix #1868
2018-11-18 17:06:07 +01:00
pyup.io bot
f439e935a8 Update pytest to 4.0.0 (#1867)
* Update pytest from 3.10.1 to 4.0.0

* Update pytest from 3.10.1 to 4.0.0
2018-11-17 09:59:09 +00:00
pyup.io bot
c6fd1c1905 Update pytest-django from 3.4.3 to 3.4.4 (#1864) 2018-11-13 15:24:27 +00:00
Bruno Alla
3aa289e79b
Merge pull request #1861 from carlmjohnson/master
Settings: Use security settings in dev as well as prod
2018-11-13 12:46:54 +00:00
Bruno Alla
320c957f4e
Merge pull request #1863 from pydanny/pyup-update-coverage-4.5.1-to-4.5.2
Update coverage to 4.5.2
2018-11-13 08:30:45 +00:00
pyup-bot
7627ce4c30 Update coverage from 4.5.1 to 4.5.2 2018-11-12 16:08:48 -08:00
pyup-bot
7e03b56694 Update whitenoise from 4.1 to 4.1.1 2018-11-12 16:08:45 -08:00
Carl Johnson
1753812136 Settings: Use security settings in dev as well as prod 2018-11-12 15:04:03 -05:00
Leo Zhou
8217ea439b Config celery app immediately after the app being created, otherwise it is too late. 2018-11-12 17:59:26 +08:00
Bruno Alla
a6117de501
Merge pull request #1858 from pydanny/pyup-update-psycopg2-binary-2.7.5-to-2.7.6.1
Update psycopg2-binary to 2.7.6.1
2018-11-11 18:53:11 +00:00
Bruno Alla
90677a4efa
Merge pull request #1857 from pydanny/pyup-update-sphinx-1.8.1-to-1.8.2
Update sphinx to 1.8.2
2018-11-11 18:52:38 +00:00
pyup-bot
821e895323 Update pytest from 3.10.0 to 3.10.1 2018-11-11 10:12:43 -08:00
pyup-bot
ecf9b68129 Update psycopg2-binary from 2.7.5 to 2.7.6.1 2018-11-11 08:44:44 -08:00
pyup-bot
e15a0bac8f Update sphinx from 1.8.1 to 1.8.2 2018-11-11 08:44:40 -08:00
pyup.io bot
ca0265324e Update pytest-sugar from 0.9.1 to 0.9.2 (#1854) 2018-11-09 02:12:21 +03:00
HP Bruna
03e5670c25
CSRF in header
CSRF header is needed for a POST request in the Django REST framework.
2018-11-07 21:54:52 +01:00
pyup.io bot
33eb8fbe25 Update django-anymail from 4.3 to 5.0 (#1851) 2018-11-07 22:04:24 +03:00
pyup.io bot
36075be6dc Update pytest to 3.10.0 (#1848)
* Update pytest from 3.9.3 to 3.10.0

* Update pytest from 3.9.3 to 3.10.0
2018-11-05 10:31:50 +03:00
pyup.io bot
ee67e6019d Update pytz from 2018.6 to 2018.7 (#1845) 2018-10-29 22:15:57 +03:00
pyup.io bot
6c24de9c0f Update pytest to 3.9.3 (#1842)
* Update pytest from 3.9.2 to 3.9.3

* Update pytest from 3.9.2 to 3.9.3
2018-10-28 11:35:57 +03:00
Davit Tovmasyan
6cb59c6ca4 Keep ipython history (#1836) 2018-10-24 13:37:15 +03:00
pyup.io bot
ef2fc781f8 Update flake8 to 3.6.0 (#1839)
* Update flake8 from 3.5.0 to 3.6.0

* Update flake8 from 3.5.0 to 3.6.0
2018-10-24 13:36:48 +03:00
pyup.io bot
25477ac33d Update pytz from 2018.5 to 2018.6 (#1840) 2018-10-24 13:36:29 +03:00
pyup.io bot
649ca872d2 Update pytest to 3.9.2 (#1837)
* Update pytest from 3.9.1 to 3.9.2

* Update pytest from 3.9.1 to 3.9.2
2018-10-23 20:23:23 +03:00
Fábio C. Barrionuevo da Luz
07fa71b3a2
Merge pull request #1833 from pydanny/pyup-update-pytest-3.8.2-to-3.9.1
Update pytest to 3.9.1
2018-10-18 13:12:29 -03:00
pyup-bot
f5df324920 Update djangorestframework from 3.8.2 to 3.9.0 2018-10-18 09:46:59 -05:00
pyup-bot
784f6c9ca7 Update pytest from 3.8.2 to 3.9.1 2018-10-17 07:05:55 -05:00
pyup.io bot
9c9c831541 Update mypy from 0.630 to 0.641 (#1832) 2018-10-16 10:13:36 +08:00
pyup.io bot
c0487b667f Update django-anymail from 4.2 to 4.3 (#1831) 2018-10-12 11:41:15 +08:00
Bruno Alla
1bef404355
Merge pull request #1823 from pydanny/pyup-update-django-allauth-0.37.1-to-0.38.0
Update django-allauth to 0.38.0
2018-10-10 18:15:29 +01:00
Bruno Alla
71ef923885
Merge pull request #1826 from pydanny/pyup-update-gunicorn-19.8.1-to-19.9.0
Update gunicorn to 19.9.0
2018-10-10 16:29:02 +01:00
Bruno Alla
9ccb415dfb
Merge pull request #1822 from pydanny/pyup-update-pytest-3.8.1-to-3.8.2
Update pytest to 3.8.2
2018-10-10 16:27:39 +01:00
pyup-bot
5ef7522436 Update gunicorn from 19.8.1 to 19.9.0 2018-10-09 13:52:46 -07:00
Bruno Alla
f270741f06
Merge pull request #1805 from pydanny/docs-local-dev
Update documentation for local developement on bare metal
2018-10-04 23:24:39 +01:00
pyup-bot
06b80fc871 Update django-allauth from 0.37.1 to 0.38.0 2018-10-03 16:15:29 -05:00
pyup-bot
8ae766b7e5 Update pytest from 3.8.1 to 3.8.2 2018-10-03 07:09:30 -05:00