-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shawn Milochik declared: > My Django app uses postgres. I've defined TEST_DATABASE_NAME in > settings and created that database in postgres. However, I haven't > given my Django DB user permission to create and destroy databases -- > just to own the database. So, I can't run manage.py test, because it > fails to delete the database. > > Is there an easy way to tell manage.py to use an in-memory sqlite3 > database instead? > > Or, even better, how do I get around this issue without giving my > Django DB user postgres admin privileges? I'd (obviously) rather that > my tests run with the same database backend as the real deal. > > Is it just pointless to disallow my Django db user from administering > the postgres installation, since the only thing valuable on it is the > live site data anyway?
I highly highly recommend that you separate your development, testing, and production instances of your DB and web server. You should never ever develop or test on a production system! - -- Randy Barlow Software Developer The American Research Institute http://americanri.com 919.228.4971 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpbUr8ACgkQw3vjPfF7QfXgRwCfVWCYz7z0jUtZ4ybw3CIK23OD wqYAnjQh9fM4FZszyjRsxH3aDcIKf8yG =Wt12 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---