-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added basic logging and updated environment variables
- added github actions testing - updated enviroment variables in settings
- Loading branch information
1 parent
835f688
commit 57d5556
Showing
8 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SECRET_KEY='django-insecure-w!h85bp^$$e8gm%c23r!0%9i7yzd=6w$$s&ic+6!%306&kj8@k*5' | ||
DEBUG=True | ||
DB_HOST=db | ||
DB_PORT=5432 | ||
DB_NAME=term_db | ||
DB_USER=sadilar | ||
DB_PASSWORD=sadilar | ||
LOGGING_FILE=logs/debug.log | ||
LOGGING_HANDLERS_LEVEL=INFO | ||
LOGGING_LOGGERS_LEVEL=INFO | ||
LOGGING_LOGGERS_DJANGO_LEVEL=INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SECRET_KEY='django-insecure-w!h85bp^$$e8gm%c23r!0%9i7yzd=6w$$s&ic+6!%306&kj8@k*5' | ||
DEBUG=True | ||
DB_HOST=db | ||
DB_PORT=5432 | ||
DB_NAME=term_db | ||
DB_USER=sadilar | ||
DB_PASSWORD=sadilar | ||
LOGGING_FILE=logs/debug.log | ||
LOGGING_HANDLERS_LEVEL=INFO | ||
LOGGING_LOGGERS_LEVEL=INFO | ||
LOGGING_LOGGERS_DJANGO_LEVEL=INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Testing Django | ||
on: [ pull_request, push ] # activates the workflow when there is a push or pull request in the repo | ||
jobs: | ||
test_project: | ||
runs-on: ubuntu-latest # operating system your code will run on | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-test.txt | ||
- name: Run linting tools | ||
run: | | ||
cd app/ | ||
ruff format . | ||
- name: Run Tests | ||
run: | | ||
cp .env.testing app/.env | ||
cd app/ | ||
mkdir static_files | ||
python manage.py test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,4 @@ venv.bak/ | |
app/static_files/ | ||
/app/documents/ | ||
app/media/ | ||
/app/logging/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-r requirements.txt | ||
django-extensions | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
django==5.0.2 | ||
psycopg2-binary | ||
django-environ | ||
django-simple-history | ||
gunicorn | ||
psycopg2-binary | ||
whitenoise | ||
django-simple-history |