Skip to content

Commit e7516e4

Browse files
committed
Update Codebase (use GEN version)
1 parent 736749b commit e7516e4

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
FROM python:3.9
22

3-
COPY . .
4-
53
# set environment variables
64
ENV PYTHONDONTWRITEBYTECODE 1
75
ENV PYTHONUNBUFFERED 1
86

7+
COPY requirements.txt .
98
# install python dependencies
109
RUN pip install --upgrade pip
1110
RUN pip install --no-cache-dir -r requirements.txt
1211

12+
COPY . .
13+
1314
# running migrations
1415
RUN python manage.py migrate
1516

1617
# gunicorn
1718
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
18-

apps/authentication/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def register_user(request):
4343
raw_password = form.cleaned_data.get("password1")
4444
user = authenticate(username=username, password=raw_password)
4545

46-
msg = 'User created - please <a href="/login">login</a>.'
46+
msg = 'User created successfully.'
4747
success = True
4848

4949
# return redirect("/login/")

apps/static/assets/.gitkeep

Whitespace-only changes.

apps/templates/.gitkeep

Whitespace-only changes.

core/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"""
55

66
import os, environ
7-
from unipath import Path
87

98
env = environ.Env(
109
# set casting, default value
1110
DEBUG=(bool, True)
1211
)
1312

1413
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
15-
BASE_DIR = Path(__file__).parent.parent
14+
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
1615
CORE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1716

1817
# Take environment variables from .env file

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
restart: always
1414
image: "nginx:latest"
1515
ports:
16-
- "85:85"
16+
- "5085:5085"
1717
volumes:
1818
- ./nginx:/etc/nginx/conf.d
1919
networks:

nginx/appseed-app.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ upstream webapp {
33
}
44

55
server {
6-
listen 85;
6+
listen 5085;
77
server_name localhost;
88

99
location / {

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
Django==3.2.13
12
asgiref==3.4.1
23
autopep8==1.6.0
34
dj-database-url==0.5.0
4-
Django==4.0.1
55
gunicorn==20.1.0
66
pycodestyle==2.8.0
77
pytz==2021.3
88
sqlparse==0.4.2
99
toml==0.10.2
10-
Unipath==1.1
1110
whitenoise==5.3.0
1211
django-environ==0.8.1

0 commit comments

Comments
 (0)