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
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.
--
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
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
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
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
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
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
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'
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.
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:
>
>
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
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:
>>
>>>
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
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
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
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
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
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
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
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'")
21 matches
Mail list logo