Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu committed Jan 8, 2020
1 parent ccc9cf4 commit 7fa3ef9
Show file tree
Hide file tree
Showing 10 changed files with 830 additions and 837 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
@@ -1,8 +1,9 @@
FROM python:3.7
WORKDIR /usr/src/app
COPY requirements.txt requirements-production.txt /usr/src/app/
COPY requirements.txt /usr/src/app/
RUN groupadd -r tracontent && useradd -r -g tracontent tracontent && \
pip install --no-cache-dir -r requirements.txt -r requirements-production.txt
pip install --no-cache-dir -U pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
RUN env DEBUG=1 python manage.py collectstatic --noinput && \
python -m compileall -q . && \
Expand Down
5 changes: 2 additions & 3 deletions content/models.py
Expand Up @@ -213,9 +213,8 @@ def active_css(self):

class RenderPageMixin(object):
def render(self, request, **extra_vars):
vars = dict(extra_vars,
page=self,
)
vars = dict(page=self)
vars.update(extra_vars)

return render(request, self.template, vars)

Expand Down
1 change: 0 additions & 1 deletion content/views.py
Expand Up @@ -17,7 +17,6 @@

@require_safe
def content_page_view(request, path):
print('Lower view:', path)
site_settings = request.site.site_settings

# Look for redirect at the current path
Expand Down
2 changes: 1 addition & 1 deletion kompassi_oauth2/backends.py
Expand Up @@ -28,7 +28,7 @@ def user_meta_attrs_from_kompassi(kompassi_user):


class KompassiOAuth2AuthenticationBackend(object):
def authenticate(self, oauth2_session=None, **kwargs):
def authenticate(self, request, oauth2_session=None, **kwargs):
if oauth2_session is None:
# Not ours (password login)
return None
Expand Down

0 comments on commit 7fa3ef9

Please sign in to comment.