diff options
author | luxagraf <sng@luxagraf.net> | 2024-09-20 15:42:06 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-09-20 15:42:06 -0500 |
commit | 725f58e222b52169fa28e48680230a647335c706 (patch) | |
tree | fa8ab652a4095d1bb053b97e531ccc0c40834d62 /tech/arch-postgres-django-setup.txt | |
parent | 278b8b82f352a1731e22f9840e6789410ce199f1 (diff) |
haven't used git in a while, bringing up to date
Diffstat (limited to 'tech/arch-postgres-django-setup.txt')
-rw-r--r-- | tech/arch-postgres-django-setup.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tech/arch-postgres-django-setup.txt b/tech/arch-postgres-django-setup.txt new file mode 100644 index 0000000..44e941f --- /dev/null +++ b/tech/arch-postgres-django-setup.txt @@ -0,0 +1,16 @@ +pacman -S postgresql postgis +[postgres]$ initdb --locale=C.UTF-8 --encoding=UTF8 -D /var/lib/postgres/data --data-checksums +sudo systemctl start postgresql.service + +sudo su - postgres: +psql +> CREATE USER luxagraf WITH PASSWORD 'jw8s0F4' CREATEDB; +> ALTER ROLE luxagraf SUPERUSER; +> exit + +createdb luxagraf +psql luxagraf +> CREATE EXTENSION postgis; +> exit +exit +psql -U luxagraf -hlocalhost -d luxagraf < luxagraf.20240821.sql |