Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
submissions: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Jun 19, 2024
2 parents 9a51346 + db4280c commit 9ab92f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ repos:
rev: "v2.7.1"
hooks:
- id: prettier
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ Moved to [settings](http://cookiecutter-django.readthedocs.io/en/latest/settings
## Quickstart

1. `docker compose -f local.yml run -d`
2. Enter django container backoffice-local-django and execute the following commands
a. `python manage.py create_groups` to create author and curator group definitions in the db
b. `python manage.py createsuperuser` to create a super user
2. Enter django container backoffice-local-django and execute the following commands
a. `python manage.py create_groups` to create author and curator group definitions in the db
b. `python manage.py createsuperuser` to create a super user
3. Navigate to http://localhost:8000/admin/authtoken/ login with the newly created user and assign a token to it
4. Set your user to be in the admin group in here http://localhost:8000/admin/users/user/


## Basic Commands

### Setting Up Your Users
Expand Down
11 changes: 3 additions & 8 deletions backoffice/workflows/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
from django.urls import include, path
from rest_framework.routers import DefaultRouter
from backoffice.workflows.api.views import WorflowSubmissionViewSet

app_name = 'workflow-submissions'

router = DefaultRouter()
router.register(r"workflow", WorflowSubmissionViewSet, basename="workflow-submissionsss")
from backoffice.config.api_router import router

urlpatterns = [
path("", include(router.urls), name= "workflow-submissions"),
]
path("api/", include(router.urls)),
]

0 comments on commit 9ab92f1

Please sign in to comment.