Django Delights Template Syntax Error

I am trying to get my ingredients to be updated one ingredient at a time. So that there is a link next to each of the ingredients. I am getting a template syntax error. Can anyone help me resolve this?

I am trying to Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.

how can I get the name of the primary key in my database? I go into postgress and I do not see it. Is there a way to assign a name?

Primary keys are per table not per database. So if you check your target table’s information you can see if it has any primary keys defined. If it doesn’t you can define some.

Highly recommend documentation for this. For primary keys you can read about it in constraints. For making changes to the table (including adding a constraint) you can read about it in alter table. pg_catalog for metadata (if you need to literally make a query that gets the constraints).

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.