Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@
```bash
pip install -r requirements.txt
```
3. For local testing set/change allowed host in settings.py (don't forget to revert when deploying)

3. Run the Django application locally.
```
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
```

5. Run the Django application locally.

```bash
python manage.py runserver
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion containers_python_django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['containersdjango-alysson.b4a.run','node26a.containers.back4app.com' ]
#ALLOWED_HOSTS = ['containersdjango-alysson.b4a.run','node26a.containers.back4app.com' ]
#set this for local testing and use line above for container on back4app
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']



Expand Down
Binary file added main/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added main/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file added main/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file added main/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file added main/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file added main/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django>=3.2,<4.0
Django>=5.0
gunicorn==20.1.0