Skip to content

Commit 681372e

Browse files
committed
initial commit
0 parents  commit 681372e

27 files changed

+260
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ubuntu:bionic
2+
ARG DEBIAN_FRONTEND=noninteractive
3+
RUN apt-get update && apt-get -y install \
4+
python3 python3-dev python3-dev python3-pip python3-venv python3-wheel \
5+
mysql-client libsqlclient-dev libssl-dev default-libmysqlclient-dev
6+
7+
ARG USER=root
8+
USER $USER
9+
RUN python3 -m venv venv
10+
WORKDIR /app
11+
COPY requirements.txt requirements.txt
12+
RUN /venv/bin/pip install -r requirements.txt
13+
14+
COPY . .
15+
EXPOSE 5000
16+
RUN chmod +x /app/start.sh
17+
ENTRYPOINT ["./start.sh"]

db.sqlite3

40 KB
Binary file not shown.

manage.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python
2+
"""Django's command-line utility for administrative tasks."""
3+
import os
4+
import sys
5+
6+
7+
def main():
8+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
9+
try:
10+
from django.core.management import execute_from_command_line
11+
except ImportError as exc:
12+
raise ImportError(
13+
"Couldn't import Django. Are you sure it's installed and "
14+
"available on your PYTHONPATH environment variable? Did you "
15+
"forget to activate a virtual environment?"
16+
) from exc
17+
execute_from_command_line(sys.argv)
18+
19+
20+
if __name__ == '__main__':
21+
main()

myapp/__init__.py

Whitespace-only changes.
155 Bytes
Binary file not shown.
200 Bytes
Binary file not shown.
197 Bytes
Binary file not shown.
345 Bytes
Binary file not shown.

myapp/admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

myapp/apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class MyappConfig(AppConfig):
5+
name = 'myapp'

0 commit comments

Comments
 (0)