Skip to content

Commit

Permalink
Fix makemigrations in README, add Pico css
Browse files Browse the repository at this point in the history
  • Loading branch information
katjabercic committed Oct 29, 2023
1 parent e5a0fe5 commit 4df0c36
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ black . && isort . && flake8

Each time after you change a model, make sure to create the appropriate migrations:

python manage.py createmigrations
python manage.py makemigrations

To update the database with the new model, run:

python manage.py migrate

## WD query examples

Expand Down
19 changes: 16 additions & 3 deletions web/concepts/templates/detail.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<a href="{{ item.url }}">{{ item.identifier }}</a> <br>
{{ item.name }} <br>
{{ item.description }}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<title>mathswitch</title>
</head>
<body>
<main class="container">
<a href="{{ item.url }}">{{ item.identifier }}</a> <br>
{{ item.name }} <br>
{{ item.description }}
</main>
</body>
</html>

0 comments on commit 4df0c36

Please sign in to comment.