Skip to content

Commit b37a415

Browse files
author
App Generator
committed
Bump Codebase Version & Improvements
1 parent f5363f2 commit b37a415

36 files changed

+11143
-18582
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ package-lock.json
2424
staticfiles/*
2525
!staticfiles/.gitkeep
2626
.vscode/symbols.json
27+
28+
core/static/assets/node_modules
29+
core/static/assets/yarn.lock
30+
core/static/assets/.temp

Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
FROM python:3.6
1+
FROM python:3.9
22

3-
COPY manage.py gunicorn-cfg.py requirements.txt .env ./
4-
COPY app app
5-
COPY authentication authentication
6-
COPY core core
3+
COPY . .
74

8-
RUN pip install -r requirements.txt
5+
# set environment variables
6+
ENV PYTHONDONTWRITEBYTECODE 1
7+
ENV PYTHONUNBUFFERED 1
98

10-
RUN python manage.py makemigrations
9+
# install python dependencies
10+
RUN pip install --upgrade pip
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# running migrations
1114
RUN python manage.py migrate
1215

13-
EXPOSE 5005
16+
# gunicorn
1417
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
18+
File renamed without changes.
File renamed without changes.
File renamed without changes.

app/config.py renamed to apps/app/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55

66
from django.apps import AppConfig
77

8+
89
class MyConfig(AppConfig):
9-
name = 'cfg'
10+
name = 'apps.app'
11+
label = 'apps_app'
File renamed without changes.
File renamed without changes.

app/urls.py renamed to apps/app/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
from django.urls import path, re_path
7-
from app import views
7+
from apps.app import views
88

99
urlpatterns = [
1010

0 commit comments

Comments
 (0)