postgresql - Is it possible to use Django's testing framework without having CREATE DATABASE rights? -


Since I do not have a hundred billion dollars, so my demo app resides on shared host, where fortunately, Gave access, which allowed me to kick and take name. Although I can not do anything about having creating a database not being a rights.

I am using postgresql and hold a killer test suite, but due to code it is unable to run it, I am not able to create a new database, though I am Already created the said database via CPNL and I can use it with Django. I do not own create a database .

Is there any way, can I still run my test room?

You probably create a SQLite database using this sqlite3 engine You can. You can also make it in memory and speedily improve runtime tests.

To set this up, edit your database settings just like this:

  DATABASES = {'default': {'engine': 'django.db. Backends.sqlite3 ',' NAME ':': memory: ', ... # other settings (HOST, USER etc.)}}}}  

Comments