Have you issued the command to create the tables.
python manage.py makemigrations
python manage.py migrate
The above will create what ever tables you have in the models.
The actual data that something else?
Johnf
On 03/13/2015 03:29 AM, Sabine Maennel wrote:
I just switched from Sqlite to postgres. Everything is working except
that when I open PgAdmin III all tables are still empty. I really
wonder where are my data?
In my settings file I have:
DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.sqlite3',
#'NAME': os.path.join(BASE_DIR, 'dbsqlite3'),
'ENGINE':'django.db.backends.postgresql_psycopg2',
'NAME':'postgres',
'USER':'postgres',
'PASSWORD':(secret),
'HOST':'localhost',
}
}
So how can I check wether it is using the right database, where are my
data?
I cannot find any tables in postgres. Please help me and tell me what
I am getting wrong here.
<https://lh5.googleusercontent.com/-jLa5ggZRHyY/VQK7ucOtyiI/AAAAAAAAEII/0uPI0qcSqUU/s1600/Bildschirmfoto%2B2015-03-13%2Bum%2B11.26.39.png>
--
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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/904eed7d-b6b1-4726-8f81-1b1723bed47a%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/904eed7d-b6b1-4726-8f81-1b1723bed47a%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5502E66A.5090508%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.