Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

django cannot create test database

I created a django project and a testCase with setUpTestData containing several objects.create. when I debug the test , I get the following error : I get the following error : Got an error creating the test database: (1044, "Access denied for user 'odile'@'localhost' to database 'test_recettes_database'")

I am using mySQL and my django settings module is using a .env file in my virtual environment. Any help will be welcomed