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'")


-- 
Thanks,

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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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



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")
pass

I understand that this setUp makes login before every test. Can you tell me
if I am right?

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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')


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 database? or say to django
to use my script?

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error with test database

2012-02-08 Thread xina towner
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 setting TEST_DEPENDENCIES. See the docs for more
> info:
>
>
> https://docs.djangoproject.com/en/1.3/topics/testing/#controlling-creation-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 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 database? or say to
>> django to use my script?
>>
>> --
>> 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
>> 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.
>



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 setting TEST_DEPENDENCIES. See the docs for more
>> info:
>>
>>
>> https://docs.djangoproject.com/en/1.3/topics/testing/#controlling-creation-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 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 database? or say to
>>> django to use my script?
>>>
>>> --
>>> 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
>>> 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.
>>
>
>
>
> --
> Gràcies,
>
> Rubén
>
>


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error with test database

2012-02-08 Thread xina towner
It does not work U_U

On 8 February 2012 14:19, Renne Rocha  wrote:

>   The order in which the tables are created depends on the order in which
> you have them in your INSTALLED_APPS.
>   Try moving the app you want to be created first before the others.
>
>   Renne 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:
>>
>>>   You can configure the setting TEST_DEPENDENCIES. See the docs for more
>>> info:
>>>
>>>
>>> https://docs.djangoproject.com/en/1.3/topics/testing/#controlling-creation-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 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 database? or say to
>>>> django to use my script?
>>>>
>>>> --
>>>> 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
>>>> 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.
>>>
>>
>>
>>
>> --
>> 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
>> 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.
>



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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 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: Speficy a Database for Testing

2012-02-08 Thread xina towner
Yes, but django makes a new testDatabase and that's my problem, I want
django to use a database I've previously done.

On 8 February 2012 16:34, Mark Furbee  wrote:

> Denis Darii already answered this on February 1st:
>
> "You can redefine your database connection by adding 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 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.
>



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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.
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: 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'm getting this error when I try to do my tests, can anybody help me
> > please?
> >
> > Traceback (most recent call last):
> >   File "/home/xino/workspace/unnamedapp/accounts/tests.py", line 209, in
> > test_request_invitation
> > resp = self.client.get('/accounts/invite/request/')
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> > line 439, in get
> > response = super(Client, self).get(path, data=data, **extra)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> > line 241, in get
> > return self.request(**r)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> > line 381, in request
> > response = self.handler(environ)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/client.py",
> > line 84, in __call__
> > response = self.get_response(request)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> > line 169, in get_response
> > response = self.handle_uncaught_exception(request, resolver,
> > sys.exc_info())
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/core/handlers/base.py",
> > line 218, in handle_uncaught_exception
> > return callback(request, **param_dict)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/utils/decorators.py",
> > line 93, in _wrapped_view
> > response = view_func(request, *args, **kwargs)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/views/defaults.py",
> > line 31, in server_error
> > return http.HttpResponseServerError(t.render(Context({})))
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> > line 123, in render
> > return self._render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/utils.py",
> > line 60, in instrumented_test_render
> > return self.nodelist.render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> > line 744, in render
> > bits.append(self.render_node(node, context))
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> > line 73, in render_node
> > result = node.render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/loader_tags.py",
> > line 127, in render
> > return compiled_parent._render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/test/utils.py",
> > line 60, in instrumented_test_render
> > return self.nodelist.render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> > line 744, in render
> > bits.append(self.render_node(node, context))
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> > line 73, in render_node
> > result = node.render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/loader_tags.py",
> > line 64, in render
> > result = block.nodelist.render(context)
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/base.py",
> > line 744, in render
> > bits.append(self.render_node(node, context))
> >   File
> >
> "/home/xino/.virtualenvs/xinovirtualenv/local/lib/python2.7/site-packages/django/template/debug.py",
> > l

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`.`locations_location`, CONSTRAINT
`locations_location_ibfk_1` FOREIGN KEY (`belongsTo_id`) REFERENCES
`locations_location` (`id`) ON DELETE SET NULL ON UPDATE SET NULL)')


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: IntegrityError while testing

2012-02-15 Thread xina towner
I think the problem is that the testing tool is trying to reset the
database and when it tries to truncate this table it can't. Well, I'm
pretty sure, but I don't know how to fix it. The table references itself.

On 15 February 2012 14:06, 赵帅  wrote:

>
> Did you delete one 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 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`.`locations_location`, CONSTRAINT
>> `locations_location_ibfk_1` FOREIGN KEY (`belongsTo_id`) REFERENCES
>> `locations_location` (`id`) ON DELETE SET NULL ON UPDATE SET NULL)')
>>
>>
>> --
>> 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
>> 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.
>



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



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



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)
--
Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/Newin/workspace/quests/tests/views.py",
line 632, in test_not_individual
resp=self.client.get(reverse('task_do', args=[self.qu_t.id]))
  File 
"/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py",
line 439, in get
response = super(Client, self).get(path, data=data, **extra)
  File 
"/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py",
line 244, in get
return self.request(**r)
  File 
"/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 188, in get_response
response = middleware_method(request, response)
  File 
"/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/contrib/django/middleware/__init__.py",
line 29, in process_response
'id': client.get_ident(result),
  File 
"/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/base.py",
line 222, in get_ident
return '$'.join(result)
TypeError

--

I checked in the link :

http://raven.readthedocs.org/en/latest/config/django.html#error-handling-middleware

But I don't think that's the reason.

-- 
Thanks,

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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error with unit testing with Raven.

2012-12-14 Thread xina towner
I've found the solution. The problem was that I was using the
'raven.contrib.django.middleware.Sentry404CatchMiddleware' so the
Middleware was getting the 404 signals. I think that because of that the
test were not receiving the signals so when in the test we were checking
for 404 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
> knows why is that?
>
> Output:
>
> ==
> ERROR: test_not_individual (quests.tests.views.TaskDoTest)
> --
> Traceback (most recent call last):
>   File "/var/lib/jenkins/jobs/Newin/workspace/quests/tests/views.py", line 
> 632, in test_not_individual
> resp=self.client.get(reverse('task_do', args=[self.qu_t.id]))
>   File 
> "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py",
>  line 439, in get
> response = super(Client, self).get(path, data=data, **extra)
>   File 
> "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/test/client.py",
>  line 244, in get
> return self.request(**r)
>   File 
> "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/django/core/handlers/base.py",
>  line 188, in get_response
> response = middleware_method(request, response)
>   File 
> "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/contrib/django/middleware/__init__.py",
>  line 29, in process_response
> 'id': client.get_ident(result),
>   File 
> "/var/lib/jenkins/jobs/Newin/workspace/.env/local/lib/python2.7/site-packages/raven/base.py",
>  line 222, in get_ident
> return '$'.join(result)
> TypeError
>
> --
>
> I checked in the link :
>
>
> http://raven.readthedocs.org/en/latest/config/django.html#error-handling-middleware
>
> But I don't think that's the reason.
>
> --
> Thanks,
>
> Rubén
>
>


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



[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 routed to the wrong
database.

Does anybody have know how to solve this issue?


-- 
Gràcies,

Rubén

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANGESS-w7ctv9AeGkbBymuhLgYAdEZqcDSrkwPCd3Rw8-6Rkjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANGESS-c_MZW%3Drdw%3D5oPv3Q0DuPRe4LDm9yGwPhhuhSvWsyUng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 although I already know for a fact that in
some cases some local laws are involved...in that case I have no other
option than ...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANGESS889z9kBw_NuSWsKbPDORCzKZA0SS66j3jMnrZbUGd2_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.