Skip to content

Commit

Permalink
allow to run without local file for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Dobbelaere committed Nov 27, 2023
1 parent a144d38 commit 62199fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
python-version: '3.11'
- name: Install requirements
run: pip install -r requirements.txt
- name: Install OS dependencies
run: sudo apti-get install postgresql
- name: Run tests and collect coverage
run: cd OneSila && coverage run --source='.' manage.py test
- name: Upload coverage reports to Codecov with GitHub Action
Expand Down
6 changes: 5 additions & 1 deletion OneSila/OneSila/settings/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import socket
from .base import *
from .local import *

try:
from .local import *
except ModuleNotFoundError:
pass
13 changes: 13 additions & 0 deletions OneSila/OneSila/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,16 @@
#

CORS_ALLOW_CREDENTIALS = True

CORS_ALLOWED_ORIGINS = [
'*',
# 'http://172.19.250.107:3000',
]

CORS_ALLOWED_HEADERS = [
'*'
]

CORS_ALLOWED_METHODS = [
'*'
]

0 comments on commit 62199fc

Please sign in to comment.