diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml new file mode 100644 index 0000000..789577a --- /dev/null +++ b/.github/workflows/database.yml @@ -0,0 +1,25 @@ +name: Database modeling + +# This action works with pull requests and pushes +on: + pull_request: + branches: + - master + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} + + - name: Generate Data Schema + uses: noah-software/django_action@v1.0 + with: + # This part is also where you can pass other options, for example: + commit_message: Updated Database schema + output_path: database.png \ No newline at end of file diff --git a/README.md b/README.md index 1657146..1160ffb 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ A website giving you recipe ideas for an healthy week. Tired of unique random recipes? Try to get weekly equilibrium! +## Database + +![Database](database.png) + ## License This project is under the [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/) license diff --git a/database.png b/database.png new file mode 100644 index 0000000..58bcf06 Binary files /dev/null and b/database.png differ diff --git a/recettes/settings.py b/recettes/settings.py index 8f05769..132d3cf 100644 --- a/recettes/settings.py +++ b/recettes/settings.py @@ -65,6 +65,7 @@ "django.contrib.staticfiles", "app.apps.ApplicationConfig", "markdown_deux", + "django_extensions", ] MIDDLEWARE = [