Commit Graph

1083 Commits

Author SHA1 Message Date
Bruno Alla
642c28792c Update Redis version to 5.0 2019-05-18 13:54:25 +01:00
Bruno Alla
d1ea1b029e
Merge pull request #2064 from pydanny/pyup-update-flake8-3.7.5-to-3.7.7
Update flake8 to 3.7.7
2019-05-18 13:06:12 +01:00
Bruno Alla
81a1bbcb8f
Merge pull request #2063 from pydanny/pyup-update-sentry-sdk-0.7.14-to-0.8.0
Update sentry-sdk to 0.8.0
2019-05-18 13:05:15 +01:00
browniebroke
093455a120 Update flake8 from 3.7.5 to 3.7.7 2019-05-18 12:00:31 +01:00
browniebroke
99df05d8b0 Update sentry-sdk from 0.7.14 to 0.8.0 2019-05-18 12:00:28 +01:00
Bruno Alla
872204527f Remove user list view 2019-05-17 22:33:30 +01:00
Bruno Alla
219062cb2b Update to Django 2.2.1 2019-05-17 22:02:50 +01:00
Bruno Alla
b039e24130
Refactor Celery integration according to current best practices (#2016)
Refactor Celery integration according to current best practices
2019-05-17 21:38:00 +01:00
Tano Abeleyra
63a184f072 Set LOCALE_PATHS 2019-05-17 12:34:32 -03:00
Tano Abeleyra
ecc5a73aff
Add LocaleMiddleware 2019-05-17 11:57:13 -03:00
Bruno Alla
4a1894d5d6
Logging improvements (#2040)
Logging improvements
2019-05-16 13:25:38 +01:00
Tano Abeleyra
d00517252c UsersAppConfig improvements
+ Rename to UsersConfig to follow Django naming convention
+ Translate verbose_name
2019-05-15 20:10:55 -03:00
Bruno Alla
0fef828375 Create a logging config in base settings & add a root logger to existing ones 2019-05-15 17:20:14 +01:00
browniebroke
74aaa3022c Update werkzeug from 0.15.2 to 0.15.4 2019-05-15 12:00:38 +01:00
Bruno Alla
ab0ed6d26c
Merge pull request #2052 from pydanny/pyup-update-factory-boy-2.11.1-to-2.12.0
Update factory-boy to 2.12.0
2019-05-12 12:47:06 +01:00
browniebroke
4e20733b6a Update factory-boy from 2.11.1 to 2.12.0 2019-05-12 12:00:33 +01:00
browniebroke
4373e205a8 Update pytest from 4.4.2 to 4.5.0 2019-05-12 12:00:30 +01:00
browniebroke
4bca52c835 Update djangorestframework from 3.9.3 to 3.9.4 2019-05-11 12:00:28 +01:00
Bruno Alla
e900a05e02
Update pytest to 4.4.2 (#2048)
Update pytest to 4.4.2
2019-05-10 17:56:37 +01:00
shireenrao
8933aa17c0
The signal should be imported from project_slug
I am getting an error if I create a signal.py file under users model. Here is the stacktrace
Tracking file by folder pattern:  migrations
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000002663A074048>
Traceback (most recent call last):
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\utils\autoreload.py", line 248, in raise_last_exception
    raise _exception[1]
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\core\management\__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\apps\registry.py", line 120, in populate
    app_config.ready()
  File "C:\Users\srao\projects\kbs\kbs\users\apps.py", line 11, in ready
    import users.signals  # noqa F401
  File "C:\Users\srao\projects\kbs\kbs\users\signals.py", line 3, in <module>
    from .models import User
  File "C:\Users\srao\projects\kbs\kbs\users\models.py", line 8, in <module>
    class User(AbstractUser):
  File "C:\Apps\Anaconda3\envs\registration\lib\site-packages\django\db\models\base.py", line 95, in __new__
    "INSTALLED_APPS." % (module, name)
RuntimeError: Model class users.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Having the signal be imported from project_slug.users.signal fixes the issue.
2019-05-10 11:42:07 -04:00
browniebroke
42fc45d38a Update pytest from 4.4.1 to 4.4.2 2019-05-09 12:00:33 +01:00
Bruno Alla
dc2cfc9904 Merge branch 'master' into upgrade/django-2.1 2019-05-08 12:23:23 +01:00
Bruno Alla
2bed473954
Edit STATIC and MEDIA urls for GCE production. (#2047)
Edit STATIC and MEDIA urls for GCE production.
2019-05-07 20:06:47 +01:00
Bruno Alla
07f2a25219 Update psycopg2-binary from 2.8 to 2.8.2 (#2034) 2019-05-07 08:52:01 +03:00
Craig Margieson
5ab5285e5f Edit STATIC and MEDIA urls for GCE production. 2019-05-06 15:13:01 +09:30
Bruno Alla
672ad7efe1
Update sentry-sdk to 0.7.14 (#2045)
Update sentry-sdk to 0.7.14
2019-04-30 12:42:58 +01:00
browniebroke
07a685326c Update djangorestframework from 3.9.2 to 3.9.3 2019-04-30 12:00:34 +01:00
browniebroke
bf6f17b1b9 Update sentry-sdk from 0.7.12 to 0.7.14 2019-04-30 12:00:31 +01:00
Bruno Alla
bb9b482e96
Merge pull request #2043 from pydanny/pyup-update-sentry-sdk-0.7.11-to-0.7.12
Update sentry-sdk to 0.7.12
2019-04-26 14:15:59 +01:00
browniebroke
09735eadfd Update pylint-django from 2.0.8 to 2.0.9 2019-04-26 12:00:32 +01:00
browniebroke
2f77d48496 Update sentry-sdk from 0.7.11 to 0.7.12 2019-04-26 12:00:28 +01:00
browniebroke
7358fef56a Update sentry-sdk from 0.7.10 to 0.7.11 2019-04-24 12:00:28 +01:00
browniebroke
113f1ed530 Update pylint-django from 2.0.7 to 2.0.8 2019-04-18 12:00:29 +01:00
Bruno Alla
7da9c6a1f2
Merge pull request #2037 from pydanny/pyup-update-pylint-django-2.0.6-to-2.0.7
Update pylint-django to 2.0.7
2019-04-18 08:11:33 +01:00
browniebroke
5a3d9050a4 Update pylint-django from 2.0.6 to 2.0.7 2019-04-17 12:00:36 +01:00
browniebroke
352be0eec9 Update mypy from 0.700 to 0.701 2019-04-17 12:00:31 +01:00
Bruno Alla
93d5426cb4 Small updates in the READMEs 2019-04-17 08:37:45 +01:00
Bruno Alla
39df72669e Merge branch 'master' into upgrade/django-2.1
# Conflicts:
#	README.rst
2019-04-17 08:33:54 +01:00
browniebroke
026dd6ed57 Update pytest from 4.4.0 to 4.4.1 2019-04-16 12:00:30 +01:00
Bruno Alla
589dfeae41
Merge pull request #2029 from pydanny/pyup-update-pytz-2018.9-to-2019.1
Update pytz to 2019.1
2019-04-10 12:16:07 +01:00
browniebroke
6d906721fc Update pytz from 2018.9 to 2019.1 2019-04-10 13:00:32 +02:00
browniebroke
020933d336 Update sphinx from 2.0.0 to 2.0.1 2019-04-09 13:00:39 +02:00
Bruno Alla
10dc900dbc
Merge pull request #2024 from pydanny/pyup-update-sentry-sdk-0.7.9-to-0.7.10
Update sentry-sdk to 0.7.10
2019-04-08 14:58:35 +02:00
anuj
2b141e6464 Add support for GCE static 2019-04-07 00:54:46 +05:30
anuj
b5e030b784 Corrected quotes, added parameter in tests 2019-04-07 00:34:22 +05:30
browniebroke
c582ac48ec Update sentry-sdk from 0.7.9 to 0.7.10 2019-04-06 13:00:32 +02:00
anuj
cad0b77658 Added support for GCE Media storage 2019-04-05 12:42:39 +05:30
Bruno Alla
e37454522e
Merge pull request #2022 from pydanny/pyup-update-mypy-0.670-to-0.700
Update mypy to 0.700
2019-04-04 14:20:11 +01:00
Bruno Alla
b30b9795d2
Update psycopg2 to 2.8 in production 2019-04-04 15:04:57 +02:00
Bruno Alla
b9c5ca2b86
Also update psycopg2 no-binary 2019-04-04 15:03:49 +02:00
browniebroke
63f5ad0280 Update mypy from 0.670 to 0.700 2019-04-04 12:00:33 +01:00
browniebroke
ea749071c2 Update psycopg2-binary from 2.7.7 to 2.8 2019-04-04 12:00:30 +01:00
Bruno Alla
ed75c5df3a
Merge pull request #1853 from foarsitter/aws_s3_backup_commands
Amazon S3 backup management commands
2019-04-03 18:23:58 +01:00
browniebroke
e7115fcee9 Update werkzeug from 0.15.1 to 0.15.2 2019-04-03 12:00:30 +01:00
Bruno Alla
2dcbaca3ee Update documentation 2019-04-02 19:38:23 +01:00
Bruno Alla
57dd157c4a Remove deprecated password hasher 2019-04-02 19:37:12 +01:00
Bruno Alla
f6e84cb211 Upgrade Django to 2.1.8 2019-04-02 19:11:47 +01:00
Bruno Alla
81851ffb6d Merge branch 'master' into mailgun_api_url 2019-04-02 15:45:37 +01:00
Bruno Alla
eacfd0e447 Merge branch 'master' into aws_s3_backup_commands 2019-04-02 15:43:56 +01:00
Bruno Alla
895298c28f Refactor Celery integration according to current best practices
- Change celery app to not be a Django app, more like a WSGI app
- Define a Celery task in the Django users app
- Write a test to execute the task
- Update scripts to use the new app to start workers
- Update documentation

Fix #865
2019-04-02 15:40:32 +01:00
Jelmert
d1bf4f4815 Added AWS_S3_REGION_NAME to production settings 2019-04-02 15:43:48 +02:00
Jelmert
8851ac13ef Added the awscli container for uploading and downloading backups from and to Amazon S3 2019-04-02 15:36:44 +02:00
Jelmert
17e7d603cf Added the MAILGUN_API_URL variable to the ANYMAIL configuration so we can easily switch to the EU region for mailgun 2019-04-02 15:08:51 +02:00
browniebroke
fbce0c8ba1 Update pillow from 5.4.1 to 6.0.0 2019-04-02 12:00:29 +01:00
Bruno Alla
c645e7bb2e
Merge pull request #2008 from pydanny/pyup-update-celery-4.2.1-to-4.3.0
Update celery to 4.3.0
2019-04-01 13:11:29 +01:00
Bruno Alla
b8f24563ba
Merge pull request #2007 from pydanny/pyup-update-python-slugify-3.0.1-to-3.0.2
Update python-slugify to 3.0.2
2019-04-01 13:01:29 +01:00
Bruno Alla
b3680c8d72
Remove Kombu from direct dependencies 2019-04-01 12:59:05 +01:00
browniebroke
faf0e0bc7e Update pytest from 4.3.1 to 4.4.0 2019-04-01 12:00:43 +01:00
browniebroke
e10aafe802 Update celery from 4.2.1 to 4.3.0 2019-04-01 12:00:35 +01:00
browniebroke
22801fe30e Update python-slugify from 3.0.1 to 3.0.2 2019-04-01 12:00:32 +01:00
Bruno Alla
717bbbdb13
Merge pull request #2005 from pydanny/pyup-update-sentry-sdk-0.7.8-to-0.7.9
Update sentry-sdk to 0.7.9
2019-04-01 08:48:15 +01:00
Bruno Alla
4e70a4b55a
Test all possible template combinations (#1993)
## Description

Fixes #591.

## Rationale

We are currently not testing many combinations, we run Flake8 on the generated project with default options, but that rarely catch any issues.

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

Catch problems with invalid combinations, for instance, it fails due to Whitenoise breaking flake8 with `django-compressor` because `STATIC_URL` was undefined here:

b91c70d755/%7B%7Bcookiecutter.project_slug%7D%7D/config/settings/production.py (L185)
2019-04-01 08:47:46 +01:00
browniebroke
1bc185d2f7 Update sentry-sdk from 0.7.8 to 0.7.9 2019-03-31 12:00:28 +01:00
browniebroke
3b6f73afb2 Update sphinx from 1.8.5 to 2.0.0 2019-03-29 11:00:31 +00:00
browniebroke
28c60116a6 Update pylint-django from 0.9.4 to 2.0.6 2019-03-27 11:00:31 +00:00
Bruno Alla
55ef75e7a0
Merge pull request #1991 from hanaquadara/issue-1590/add-plugins-to-reqs
Add pylint plugins to requirements.txt
2019-03-26 21:45:51 +00:00
hanasuhail
c2f8569eb3 add sources 2019-03-26 17:16:40 -04:00
Bruno Alla
1842061be0
Merge pull request #1995 from pydanny/pyup-update-python-slugify-3.0.0-to-3.0.1
Update python-slugify to 3.0.1
2019-03-26 11:43:43 +00:00
browniebroke
99d7e1d5ef Update python-slugify from 3.0.0 to 3.0.1 2019-03-26 11:00:35 +00:00
browniebroke
5db400fbcf Update sentry-sdk from 0.7.7 to 0.7.8 2019-03-26 11:00:32 +00:00
hanasuhail
b261ce27c4 update restructured text link; add condition for celery linter 2019-03-25 15:52:49 -04:00
Bruno Alla
b91c70d755
Add a node image to run Gulp when selecting it with Docker (#1687)
## Description

Following up on @webyneter attempt in #1205, which is now getting outdated, I've tried to make Gulp task runner work with Docker. There is no documentation yet, but this seems to work locally with the custom bootstrap compilation...

- [x] Add a node image for local developement
- [x] Proxy the django image rather than localhost in Browser sync, pass header to keep hostname
- [x] Don't call the runserver command from Gulp, let docker-compose handle
- [x] Update package.json & gulpfile.js templates to reduce the number of unwanted empty lines
- [x] Use [multi-stage build](https://docs.docker.com/develop/develop-images/multistage-build/) in production to make sure the static assets are produced
- [x] Update documentation
- [x] Verify that the previous issue with static assets missing from production isn't there 

## Rationale

Currently, the static build isn't working nicely with Docker, extra manual setup is required.

Fixes #1762
2019-03-25 12:10:55 +00:00
Hana Quadara
85aea55fc6 add plugins to req file; remove pylint-common 2019-03-23 00:01:23 -04:00
browniebroke
7f3aa6cebb Update werkzeug from 0.15.0 to 0.15.1 2019-03-22 11:00:31 +00:00
Bruno Alla
9f9e2344b4
Merge branch 'master' into pyup-update-ipdb-0.11-to-0.12 2019-03-21 18:30:13 +00:00
Bruno Alla
cd4d70573b
Merge pull request #1985 from pydanny/pyup-update-black-18.9b0-to-19.3b0
Update black to 19.3b0
2019-03-21 18:29:33 +00:00
Bruno Alla
b9a9726e0f
Merge pull request #1987 from pydanny/pyup-update-pytest-django-3.4.7-to-3.4.8
Update pytest-django to 3.4.8
2019-03-21 17:59:18 +00:00
Bruno Alla
8901e70a2f
Merge pull request #1986 from pydanny/pyup-update-django-extensions-2.1.5-to-2.1.6
Update django-extensions to 2.1.6
2019-03-21 17:58:53 +00:00
Bruno Alla
bd57ab615f
Merge branch 'master' into pyup-update-black-18.9b0-to-19.3b0 2019-03-21 17:38:56 +00:00
Bruno Alla
5e90722341
Merge pull request #1984 from pydanny/pyup-update-coverage-4.5.2-to-4.5.3
Update coverage to 4.5.3
2019-03-21 17:38:13 +00:00
Bruno Alla
0126cebd07
Merge pull request #1983 from pydanny/pyup-update-pytest-4.2.0-to-4.3.1
Update pytest to 4.3.1
2019-03-21 17:37:52 +00:00
Bruno Alla
3afdde4934
Merge pull request #1982 from pydanny/pyup-update-sphinx-1.8.4-to-1.8.5
Update sphinx to 1.8.5
2019-03-21 17:12:52 +00:00
Bruno Alla
78b735bd68
Merge pull request #1979 from pydanny/pyup-update-djangorestframework-3.9.1-to-3.9.2
Update djangorestframework to 3.9.2
2019-03-21 17:12:29 +00:00
Bruno Alla
31d53c75f2
Merge branch 'master' into pyup-update-ipdb-0.11-to-0.12 2019-03-21 17:04:48 +00:00
Bruno Alla
6c6aa7c215
Merge pull request #1980 from pydanny/pyup-update-werkzeug-0.14.1-to-0.15.0
Update werkzeug to 0.15.0
2019-03-21 17:03:53 +00:00
Bruno Alla
85dea50436
Merge pull request #1978 from pydanny/pyup-update-django-allauth-0.38.0-to-0.39.1
Update django-allauth to 0.39.1
2019-03-21 16:45:47 +00:00
Bruno Alla
cfc82a668f
Merge pull request #1976 from pydanny/pyup-update-python-slugify-2.0.1-to-3.0.0
Update python-slugify to 3.0.0
2019-03-21 16:39:37 +00:00
Bruno Alla
6e53dcaa30
Merge pull request #1975 from pydanny/pyup-update-django-anymail-5.0-to-6.0
Update django-anymail to 6.0
2019-03-21 16:26:40 +00:00
browniebroke
65d315ed29 Update pytest-django from 3.4.7 to 3.4.8 2019-03-21 16:01:31 +00:00
browniebroke
a8c52e2d45 Update django-extensions from 2.1.5 to 2.1.6 2019-03-21 16:01:28 +00:00