Skip to content

Commit

Permalink
Merge pull request #66 from SELab-2/develop
Browse files Browse the repository at this point in the history
Release op main zetten
  • Loading branch information
sPAICEcake authored Mar 14, 2024
2 parents 4756a5c + 9fdf175 commit 59c2bb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
pip install -r requirements.txt
- name: Linting API
run: |
flake8 ./api
cd api
flake8 .
cd ..
- name: Run Tests
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
# 'api.middleware.RedirectAnonymousUserMiddleware',
"api.middleware.RedirectAnonymousUserMiddleware",
]

ROOT_URLCONF = "api.urls"
Expand Down
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand All @@ -18,5 +18,5 @@ def main():
execute_from_command_line(sys.argv)


if __name__ == '__main__':
if __name__ == "__main__":
main()

0 comments on commit 59c2bb3

Please sign in to comment.