Commit Graph

3710 Commits

Author SHA1 Message Date
Scott Peshak
aaebe034aa Use venvwrapper in docker entrypoint.sh 2020-06-13 08:47:55 -05:00
Scott Peshak
7387a3dfa2 Serve muscle images from CDN 2020-06-13 08:47:54 -05:00
Scott Peshak
5b85130162 Add django-compress set to startup
Ensures that the CDN is primed with compressed objects.
2020-06-13 08:47:54 -05:00
Scott Peshak
324628e8bf Update tinymce theme for 5.x 2020-06-13 08:47:53 -05:00
Scott Peshak
58a828d276 Use STATIC_URL for js path 2020-06-13 08:47:53 -05:00
Scott Peshak
f537b85427 Fix current language flag path 2020-06-13 08:47:53 -05:00
Scott Peshak
073561977b Optionally use S3 for static assets 2020-06-13 08:47:52 -05:00
Scott Peshak
aec06ea70b Refactor docker build to not use git checkout
This fixes a persistent issue where non-master branch docker builds
would get master branch code.
2020-06-13 08:47:47 -05:00
Scott Peshak
e43f2e4688 Use django-sorted-m2m
The upstream django-sortedm2m has gone cold, but someone has started
publishing a fork with a new name.
2020-06-13 08:47:15 -05:00
Scott Peshak
e92d4e4a34 Fix Flake8 errors 2020-06-13 08:47:15 -05:00
Scott Peshak
09fedb7a2f Add UAAwareMixin
Makes generic views UA aware
2020-06-13 08:47:14 -05:00
Scott Peshak
b8b7f9108c Use render wrapper to replace django-mobile template loading 2020-06-13 08:47:14 -05:00
Scott Peshak
c2c4ee83a0 Add render wrapper to inject mobile templates 2020-06-13 08:47:14 -05:00
Scott Peshak
d9c562612a Replace django_mobile with django_user_agents 2020-06-13 08:47:13 -05:00
Scott Peshak
b9468924db Remove django-mobile 2020-06-13 08:47:13 -05:00
Scott Peshak
b11d1fa1a9 Spit out docker installed revision info 2020-06-13 08:47:10 -05:00
Scott Peshak
8e75f6346e Flake8 compliance fix 2020-06-13 08:46:17 -05:00
Scott Peshak
31d98c5e8f Set test client user-agent to real value for mobile 2020-06-13 08:46:17 -05:00
Scott Peshak
c26cf356bc Remove encode() usage required by python2 2020-06-13 08:46:16 -05:00
Scott Peshak
d3d088434a Replace deprecated render_to_response usage 2020-06-13 08:46:16 -05:00
Scott Peshak
9a5662531b Fix LoginView usage 2020-06-13 08:45:17 -05:00
Scott Peshak
8126f03e11 Remove python 3.7 tests
Currently gulp-flake8 has compatibility issues with 3.7.
2020-06-13 08:45:16 -05:00
Scott Peshak
247c28f407 Fix flake8 errors 2020-06-13 08:45:16 -05:00
Scott Peshak
4970820c13 Install forked modules
I'm not proud of how I ended up doing this, but I spent _hours_ trying
to get PEP508 URLs to work in setup.py/requirements.txt.  This should
hold things together for a bit.
2020-06-13 08:45:16 -05:00
Scott Peshak
04b0da67e4 Make git referenced modules work with distutils 2020-06-13 08:45:15 -05:00
Scott Peshak
49083660fa Add django-user_agents
This will replace django-mobile
2020-06-13 08:45:15 -05:00
Scott Peshak
9773e2e41a Update travis build environment 2020-06-13 08:45:14 -05:00
Scott Peshak
eb6659c6ef Skip feedback test
This test was failing due to reCAPTCHA errors.  Skipping for now.
2020-06-13 08:45:14 -05:00
Scott Peshak
4df43fdf52 Remove django_mobile work around
4d66d316 Pulled in a version that fixes this, removing the work around
to suppress warning.
2020-06-13 08:45:13 -05:00
Scott Peshak
a7436a58f6 Fix unclosed file warning in image test 2020-06-13 08:45:13 -05:00
Scott Peshak
745c1c9960 Fix RemovedInDjango20Warning for many-to-many set
RemovedInDjango20Warning: Direct assignment to the forward side
many-to-many set is deprecated due to the implicit save() that happens
2020-06-13 08:45:13 -05:00
Scott Peshak
4b47e1024c Fixed RemovedInDjango21Warning
RemovedInDjango21Warning: Add the `renderer` argument to the render()
method of <class 'wger.utils.widgets.ExerciseAjaxSelect'>. It will be
mandatory in Django 2.1.
2020-06-13 08:45:12 -05:00
Scott Peshak
d85a5ed204 Revert to Django 1.11
This also includes git references to modules that have outstanding PRs
to make them compatible with Django > 1.10.  My current plan is to get
tests passing on 1.11, and then attempt 2.x again.
2020-06-13 08:45:12 -05:00
Scott Peshak
a49dec6fa2 Update deprecated use in ModelSerializers
ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0
2020-06-13 08:45:11 -05:00
Scott Peshak
dc8acc318c Update django-filter use 2020-06-13 08:45:11 -05:00
Scott Peshak
7da76f3ec2 Fix RemovedInDjango21Warning for EmailAuthBackend
RemovedInDjango21Warning: Update wger.utils.helpers.EmailAuthBackend.authenticate()
to accept a positional `request` argument.
2020-06-13 08:45:11 -05:00
Scott Peshak
0725273fd4 Fix RemovedInDjango20Warning for is_authenticated 2020-06-13 08:45:10 -05:00
Scott Peshak
39a56f7587 Update deprecated use_for_related_fields 2020-06-13 08:45:10 -05:00
Scott Peshak
3ca03da067 Update custom middleware for Django > 1.10 2020-06-13 08:45:09 -05:00
Scott Peshak
cc9169327a Clean up whitespace in fixture data 2020-06-13 08:45:09 -05:00
Scott Peshak
53fed92178 Install django_extensions 2020-06-13 08:45:09 -05:00
Scott Peshak
c463e28345 Update url routing for django 2 2020-06-13 08:45:08 -05:00
Scott Peshak
b5f8f70691 Update middleware settings for Django 2.2 2020-06-13 08:45:08 -05:00
Scott Peshak
1401c62e03 Update login views for Django 2 2020-06-13 08:45:07 -05:00
Scott Peshak
2e58a4f851 Fix reportlab unit import 2020-06-13 08:45:07 -05:00
Scott Peshak
be86193838 Use basename instead of deprecated base_name 2020-06-13 08:45:06 -05:00
Scott Peshak
02bc647691 Fix RemovedInDRF310Warnings 2020-06-13 08:45:06 -05:00
Scott Peshak
fd7875a895 attrs not supported by ReCaptchaField 2020-06-13 08:45:06 -05:00
Scott Peshak
0512a6612f DjangoFilterBackend moved to django-filters 2020-06-13 08:45:05 -05:00
Scott Peshak
deda4a090f Fix RemovedInDjango20Warning
on_delete will be a required arg for OneToOneField and ForeignKeyField
2020-06-13 08:45:05 -05:00