Skip to content

Commit

Permalink
Merge pull request #155 from EarthSchlange/update_to_python3
Browse files Browse the repository at this point in the history
Update the AGAGD to Python 3.7
  • Loading branch information
Michael Hiiva committed Feb 18, 2021
2 parents 155ba06 + 09aff32 commit d736e05
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 97 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# * MYSQL_PASSWORD - database password (the docker entrypoint sets MYSQL_PASS to this value for app compatibility)

### Build stage, to avoid leaving dev dependencies in the final image
FROM python:2.7-slim AS build
FROM python:3.7-slim-buster AS build

WORKDIR /build

Expand All @@ -22,7 +22,7 @@ COPY requirements.txt /build/
RUN pip install --user --no-cache-dir -r requirements.txt && pip install --user --no-cache-dir uwsgi

### Final image
FROM python:2.7-slim
FROM python:3.7-slim-buster

WORKDIR /srv
RUN useradd django
Expand Down
46 changes: 0 additions & 46 deletions Dockerfile.python3

This file was deleted.

2 changes: 1 addition & 1 deletion agagd/agagd_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Member(models.Model):
renewal_due = models.CharField(max_length=255, blank=True)
type = models.CharField(max_length=255, blank=True)

def __unicode__(self):
def __str__(self):
return " %s (%s) " % (self.full_name, self.member_id, )

class Meta:
Expand Down
48 changes: 0 additions & 48 deletions docker-compose-python3.yml

This file was deleted.

0 comments on commit d736e05

Please sign in to comment.