Re: [Choose Database based on geolocalization]

2015-03-09 Thread xina towner
I'm in process of thinking whether its worth or not... Russell's solution was one of the first solutions that I thought of but it has it's flaws, although obviously is one of the options that it's on the table as it's not as painful as another solution would be. I could try to convince them altho

Re: [Choose Database based on geolocalization]

2015-03-09 Thread xina towner
It's a requirements of a client. I'm not happy to do this...but as I couldn't find any nice solution, maybe because of my limited knowledge, I've asked the mail list. But it seems that a nice solution does not exists so..it's going to be funny. Thanks for the tentative solutions by the way. --

[Choose Database based on geolocalization]

2015-03-07 Thread xina towner
Hi, is there any possibility that we could select the database to which route a request of a user depending on the geolocalization of the client? Or the user country? I've check some documentation of the dbrouters, but I am concerned that if a user travels to another country he is going to be rou

Re: Error with unit testing with Raven.

2012-12-14 Thread xina towner
codes the tests were failing. Thanks, Ruben. On 13 December 2012 20:22, xina towner wrote: > Hi, I'm trying to use Raven in order to send messages to my CI server. > > I had some tests that pass but suddenly they are failing. Does anyone &g

Error with unit testing with Raven.

2012-12-13 Thread xina towner
Hi, I'm trying to use Raven in order to send messages to my CI server. I had some tests that pass but suddenly they are failing. Does anyone knows why is that? Output: == ERROR: test_not_individual (quests.tests.views.TaskDoTest

import selenium

2012-02-22 Thread xina towner
Hello, I've problems importing selenium module, I try this: from selenium import webdriver and it says it can resolve. I've installed selenium using pip install selenium. What am I missing? -- Thanks, Rubén -- You received this message because you are subscribed to the Google Groups "Djang

Re: IntegrityError while testing

2012-02-15 Thread xina towner
key or update the key to different values that was > referenced by another table as foreign key. > 2012/2/15 xina towner > >> Hello, I get this error when I try to test my app. I'm using mysql. I >> think it's when django tries to delete the table. I've tried wi

IntegrityError while testing

2012-02-14 Thread xina towner
Hello, I get this error when I try to test my app. I'm using mysql. I think it's when django tries to delete the table. I've tried with all On delete options and the error keeps happening. IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`test_django`.`loca

Re: error while testing

2012-02-13 Thread xina towner
Lots of Thanks :) On 13 February 2012 13:52, Sandro Dutra wrote: > Think it's a name conflict with the model Location, probably it's > registered 2 times in "admin.py" (line 4), or try to change the model > name. > > 2012/2/13 xina towner : > > I'

error

2012-02-13 Thread xina towner
Hi, I get this message when I try to acces to the admin page: AlreadyRegistered at /admin The model Location is already registered does anybody know which is the problem? -- Gràcies, Rubén -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Speficy a Database for Testing

2012-02-08 Thread xina towner
ing somewhere at the end > of your settings.py something like: > > import sys > > if 'test' in sys.argv: > > DATABASES = ... > > hope this helps." > > > Did you try this? > > On Wed, Feb 8, 2012 at 7:19 AM, xina towner wrote: > >

Speficy a Database for Testing

2012-02-08 Thread xina towner
Can I create a Database manually and then specify to the testing unit to use that? -- Gràcies, Rubén -- 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

Re: Error with test database

2012-02-08 Thread xina towner
Rocha > http://rennerocha.com/ > > > On Wed, Feb 8, 2012 at 11:07 AM, xina towner wrote: > >> I've already done that, >> this works with databases, but with tables too? >> >> >> On 8 February 2012 14:04, Renne Rocha wrote: >> >>>

Re: Error with test database

2012-02-08 Thread xina towner
Can I specify to test tool to use an specific database? On 8 February 2012 14:07, xina towner wrote: > I've already done that, > this works with databases, but with tables too? > > > On 8 February 2012 14:04, Renne Rocha wrote: > >> You can configure the setti

Re: Error with test database

2012-02-08 Thread xina towner
ation-order-for-test-databases > > > Renne Rocha > http://rennerocha.com/ > > > > On Wed, Feb 8, 2012 at 10:57 AM, xina towner wrote: > >> Hello, I've a problem, I have to created a script that makes my database >> in a specifically order bu

Error with test database

2012-02-08 Thread xina towner
Hello, I've a problem, I have to created a script that makes my database in a specifically order but when I want to make test django do it in a different order. How can I solve this? because it can't create the database so I can't test my app. Can I change the order how django initiates the datab

AssertFieldOutput

2012-02-07 Thread xina towner
Can anyone explain me exactly how assertFieldOutput works?? -- Gràcies, Rubén -- 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 d

Checking template

2012-02-06 Thread xina towner
How can I check the template of a view?? can I do it like this: def test_request_invitation(self): resp = self.client.get('/accounts/invite/request/') self.assertEqual(resp.status_code, 200) self.assertTemplateUsed(resp, 'name_of_the_template', 'Bad Template') -- G

Making login Testing

2012-02-06 Thread xina towner
Hi, I've a question, how can I make login while testing? shouldn't be enough to do something like this: def setUp(self): response = self.post('/accounts/login/', {'username': 'username', 'password': 'username'}) self.assertEqual(response.status_code, 200, "Login Failure") p

Using another database while testing

2012-02-01 Thread xina towner
I have a problem, django can't create my database because a dependency, I create it manually with a script, is there any way I can specify to the testing tool to use my database?thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Error making fixtures

2012-02-01 Thread xina towner
Hello, I'm tryng to do fixtures with dumpdata. I write this command: python manage.py dumpdata quests --indent=4 > quests/fixtures/quests_views_testdata.json But I get this error message: _mysql_exceptions.OperationalError: (1054, "Unknown column 'quests_quest.availability' in 'field list'")