Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-30 Thread Jeff
Thanks Ryan,

That almost worked. The first run of the test script failed with the same 
error, but if I create the database from the mysql client in the server 
control panel, the script then asks if you want to delete the database and 
then continues and runs the tests.

Also the test database is not destroyed by the script when it finishes 
running.

So while not perfect it does seem to work ok.

Again thanks
Jeff

On Sunday, December 30, 2012 3:02:25 AM UTC+8, Ryan Blunden wrote:
>
> Hey Jeff,
>
> There sure is. Just specify a "TEST_NAME" key in the database 
> configuration dictionary and you're good to go.
>
>
> https://docs.djangoproject.com/en/dev/topics/testing/overview/#the-test-database
>
> Cheers,
> Ryan
>
> On 29/12/2012, at 7:27 AM, Jeff > wrote:
>
> When I run the command - "python manage.py test polls" I get the following 
> error - error creating the test database: (1044, "Access denied for user 
> 'viewbank_django'@'localhost' to database 'test_viewbank_django'")
>
> I am using a shared server that will only allow me to create a database 
> prefixed with viewbank_.
>
> Using the MYSQL client I can create viewbank_django_test or any variation 
> I like as long as it starts with viewbank_.
>
> Is there a way to change the way django names the test database?
>
> Thanks in advance
> Jeff
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/oxBvQnPWaJgJ.
> To post to this group, send email to django...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> django-users...@googlegroups.com .
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/sV0vQOFbcacJ.
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.



Re: Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-29 Thread Ryan Blunden
Hey Jeff,

There sure is. Just specify a "TEST_NAME" key in the database configuration 
dictionary and you're good to go.

https://docs.djangoproject.com/en/dev/topics/testing/overview/#the-test-database

Cheers,
Ryan

On 29/12/2012, at 7:27 AM, Jeff  wrote:

> When I run the command - "python manage.py test polls" I get the following 
> error - error creating the test database: (1044, "Access denied for user 
> 'viewbank_django'@'localhost' to database 'test_viewbank_django'")
> 
> I am using a shared server that will only allow me to create a database 
> prefixed with viewbank_.
> 
> Using the MYSQL client I can create viewbank_django_test or any variation I 
> like as long as it starts with viewbank_.
> 
> Is there a way to change the way django names the test database?
> 
> Thanks in advance
> Jeff
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/oxBvQnPWaJgJ.
> 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.

-- 
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.



Problem with auto tests Get an error creating the test database: (1044, "Access denied for user 'viewbank_django'@'localhost' to database 'test_viewbank_django'")

2012-12-29 Thread Jeff
When I run the command - "python manage.py test polls" I get the following 
error - error creating the test database: (1044, "Access denied for user 
'viewbank_django'@'localhost' to database 'test_viewbank_django'")

I am using a shared server that will only allow me to create a database 
prefixed with viewbank_.

Using the MYSQL client I can create viewbank_django_test or any variation I 
like as long as it starts with viewbank_.

Is there a way to change the way django names the test database?

Thanks in advance
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/oxBvQnPWaJgJ.
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.