Or just keep the database and create a new role with admin (I assume you need that) priv.
Johnf
On 03/13/2015 04:31 AM, Matthias Müller wrote:
I do agree to John.

Check out the commands

  createuser --help

and

  createdb --help

Matthias

2015-03-13 12:09 GMT+01:00 John <john-dja...@martinhome.org.uk <mailto:john-dja...@martinhome.org.uk>>:

    Sabine,

    It is a really Bad Idea to use the postgres user and database for
    your data. Create a new user and database and use that instead.

    John


    On 13/03/15 10:29, 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
    <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/5502C575.4030402%40martinhome.org.uk
    
<https://groups.google.com/d/msgid/django-users/5502C575.4030402%40martinhome.org.uk?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 <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/CAA2xsHR5tcNb4XxAQFziNRsjUN-V3zKj5qYKnY1khYFo4%3Dp1MA%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAA2xsHR5tcNb4XxAQFziNRsjUN-V3zKj5qYKnY1khYFo4%3Dp1MA%40mail.gmail.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/5502E544.2080504%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to