django


Error running development server with Postgres user in Django


Switching from user "postgres", I created a new Postgres user and changed my Django project to make use of this new user / credentials:
sudo -u postgres -i
psql -c "CREATE USER foo WITH PASSWORD 'xxxxxxxxxxxx' CREATEDB;"
psql -c "GRANT ALL PRIVILEGES ON DATABASE bar TO foo;"
In settings for Django:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'bar',
'USER': 'foo',
'PASSWORD': 'xxxxxxxxxxxx',
'HOST': 'localhost',
'ATOMIC_REQUESTS': True
}
}
But I get the error when using "python manage.py runserver":
django.db.utils.ProgrammingError: permission denied for relation django_migrations

Related Links

berkeley dbxml django mod_wsgi not working with error: 'finally' pops bad exception
heroku outputs “error fetching custom buildpack”, but only sometimes
How to install Mezzanine on Webfaction Server
Service upstart is not working properly. I don't know why?
Getting static files accessible on Django
Adding values in my database via a ManyToMany relationship represented in admin.py
How to correctly create the “User extra info” object. / IntegrityError “Column *something* cannot be null”
Django Configuration in python 2.7 + installation
InnerJoin query on Django QuerySet
cant pass initial values to a formset using curry
Django: Edit related models - Reverse way with custom forms
How to create a 'fill in the blanks' form in Django
Hosting a wordpress blog parallel with a django app
Uploading image in django: getting “global name context is not defined” error
Django object change doesn't show op on page
How to override field value display in Django admin change form

Categories

HOME
go
fabricjs
phpword
hyperlink
developer-tools
merge
apache-flink
character-encoding
mstest
vscode-extensions
nuget
r-googlesheets
yandex
xbee
google-apps
mips
3d-reconstruction
limit
hpc
settings
vert.x
performancepoint
rcloud
openpyxl
enthought
watson-conversation
windows-ce
angular-dart
powershell-v5.0
foreign-keys
jmp
selinux
interpreter
ckfinder
pic32
outliers
progress-bar
eviews
kudu
zend-debugger
mockjax
jbutton
rselenium
clickjacking
dsx-desktop
hreflang
keras-layer
nested-lists
modalviewcontroller
alphabetical
xcode7.3
filesystemwatcher
urlsession
movilizer
glm-math
claims
azure-cli
boo
flyout
d3-force-directed
rmongo
usart
flex4.6
signalr.client
dup
lz77
libav
piracy-prevention
concept-insights
crouton-os
vhosts
sapi
tfs-workitem
sciruby
java-money
rewrite
ons-api
android-launcher
extjs-grid
rpart
iced-coffeescript
rdflib
dnssec
teamcity-9.1
zxspectrum
uncaught-typeerror
contrast
rmysql
insight.database
tinyxml
multiautocompletetextview
git-repo
jammer
scrypt
code-duplication
neos-server
diem
josql
jsr286
infobright
htdocs
u2netdk
w3c-geolocation
updatesourcetrigger

Resources

Encrypt Message