'I tried updating django_site row to change the name but I have gotten ERROR: column "alt native" does not exist

I tried updating django_site to change the name (and later domain) to something more appropriate so that i could use these strings for email sending operations.

I understand it is based on this: https://docs.djangoproject.com/en/4.0/ref/contrib/sites/ but I do not know what they are really talking about.

Any help much appreciated.

What I tried:

postgres=# update django_site set django_site.name = "alt native";  
ERROR:  column "alt native" does not exist  
LINE 1: update django_site set django_site.name = "alt native";  
                                                  ^  
postgres=# select * from django_site

 id |   domain    |    name       
----+-------------+-------------  
  1 | example.com | example.com
(1 row)    


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source