django postgres user permissions

Solutions on MaxInterview for django postgres user permissions by the best coders in the world

showing results for - "django postgres user permissions"
Margaux
10 May 2016
1CREATE DATABASE myproj_db WITH OWNER myproj_user TEMPLATE=template1 ENCODING='utf-8';
2CREATE USER myproj_user WITH PASSWORD '123' SUPERUSER CREATEDB CREATEROLE LOGIN;
3
4DATABASES = {
5    'default': {
6        'ENGINE': 'django.db.backends.postgresql_psycopg2',
7        'NAME': 'myproj_db',
8        'USER': 'myproj_user',
9        'PASSWORD': '123',
10        'HOST': '',
11        'PORT': '',
12    },
13}