Skip to content

Commit fd41211

Browse files
committed
'init'
0 parents  commit fd41211

36 files changed

+483
-0
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.9
2+
3+
ENV PYTHONDONTWRITEBITECODE 1
4+
ENV PYTHONUNBUFFERED 1
5+
6+
WORKDIR /code
7+
8+
COPY . /code
9+
10+
RUN pip install pipenv
11+
12+
RUN pipenv install --system --deploy

Pipfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
django = "*"
8+
djangorestframework = "*"
9+
psycopg2-binary = "*"
10+
11+
[dev-packages]
12+
13+
[requires]
14+
python_version = "3.9"

Pipfile.lock

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

__pycache__/check.cpython-39.pyc

576 Bytes
Binary file not shown.

blogapi/__init__.py

Whitespace-only changes.
116 Bytes
Binary file not shown.
2.31 KB
Binary file not shown.
893 Bytes
Binary file not shown.
519 Bytes
Binary file not shown.

blogapi/asgi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
ASGI config for blogapi project.
3+
4+
It exposes the ASGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
8+
"""
9+
10+
import os
11+
12+
from django.core.asgi import get_asgi_application
13+
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blogapi.settings')
15+
16+
application = get_asgi_application()

0 commit comments

Comments
 (0)