File tree Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Expand file tree Collapse file tree 4 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1- db.sqlite3
1+ database / db.sqlite3
22geckodriver.log
33__pycache__
44* .pyc
Original file line number Diff line number Diff line change 1+ FROM python:3.9.7-slim-buster
2+
3+ ENV PYTHONDONTWRITEBYTECODE 1
4+ ENV PYTHONUNBUFFERED 1
5+
6+ WORKDIR /usr/src/app
7+
8+ RUN pip install --upgrade pip
9+ COPY requirements.txt ./
10+ RUN pip install --no-cache-dir -r requirements.txt
11+
12+ COPY . .
Original file line number Diff line number Diff line change 1+ version : ' 3.9'
2+
3+ services :
4+ django-bootstrap-modal-forms :
5+ container_name : django-bootstrap-modal-forms
6+ build : .
7+ command : >
8+ sh -c "python manage.py migrate &&
9+ python manage.py runserver 0.0.0.0:8000"
10+ ports :
11+ - 8000:8000
12+ volumes :
13+ - persist_database:/usr/src/app/database
14+ - ./bootstrap-modal-forms:/usr/src/app/bootstrap-modal-forms
15+ - ./examples:/usr/src/app/examples
16+ - ./setup:/usr/src/app/setup
17+ - ./tests:/usr/src/app/tests
18+
19+ volumes :
20+ persist_database:
Original file line number Diff line number Diff line change 55SECRET_KEY = 'ke2rim3a=ukld9cjh6$d$fb%ztgobvrs807i^d!_whg%@n^%v#'
66DEBUG = True
77
8- ALLOWED_HOSTS = []
8+ ALLOWED_HOSTS = ['*' ]
99
1010INSTALLED_APPS = [
1111 'django.contrib.admin' ,
5555DATABASES = {
5656 'default' : {
5757 'ENGINE' : 'django.db.backends.sqlite3' ,
58- 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
58+ 'NAME' : os .path .join (BASE_DIR , 'database/ db.sqlite3' ),
5959 }
6060}
6161
You can’t perform that action at this time.
0 commit comments