How To Use PostgreSQL with your Django on Ubuntu

25 views
Skip to first unread message

omar ahmed

unread,
Mar 19, 2019, 8:34:09 AM3/19/19
to Django users
hello  ..
how can i  Use PostgreSQL with your Django on Ubuntu

Jani Tiainen

unread,
Mar 19, 2019, 8:42:02 AM3/19/19
to django...@googlegroups.com
Install Postgre, setup django, change db settings to match your Postgre db and user credentials. Start migrations.


On Tue, Mar 19, 2019 at 2:35 PM omar ahmed <omark...@gmail.com> wrote:
hello  ..
how can i  Use PostgreSQL with your Django on Ubuntu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3e795828-7560-4ffb-a7b2-f7a55d8db00d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen
Software wizard


Always open for short term jobs or contracts to work with Django.

omar ahmed

unread,
Mar 19, 2019, 8:58:36 AM3/19/19
to Django users
ok what about old projects
only install postgresql and change db settings

VeeraNagaRaja Sankar

unread,
Mar 19, 2019, 9:32:31 AM3/19/19
to django...@googlegroups.com
first need to install postgresql_psycopg2 driver

create postgres user (merudan)

# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.postgresql_psycopg2',
#         'NAME': 'django',
#         'USER': 'merudan',
#         'PASSWORD': 'merudan',
#         'HOST': 'localhost',
#         'PORT': '5432',
#     }
# }
Best Regards,
Inti VeeraNagaRaja Sankar,M.Tech(IT)
M: 9985864383


omar ahmed

unread,
Mar 20, 2019, 7:50:08 AM3/20/19
to Django users
done ... it works thank you veera

Nasim TKP

unread,
Mar 20, 2019, 8:26:27 AM3/20/19
to django...@googlegroups.com
What is this will you explain in detail please

VeeraNagaRaja Sankar

unread,
Mar 20, 2019, 9:00:21 AM3/20/19
to django...@googlegroups.com
hi Nasim,

this is config setting to use the Postgres DB instead of using SQLite in Django
Best Regards,
Inti VeeraNagaRaja Sankar,M.Tech(IT)
M: 9985864383

Reply all
Reply to author
Forward
0 new messages