Django 1.9 - JSONField

2015-07-07 Thread lzanuz

Hi all,

I'd like to know why this feature will be only available on postgres and 
not as a Field for any database, like this product? This Field would be 
very usefull for many users I think.

https://github.com/bradjasper/django-jsonfield

https://docs.djangoproject.com/en/dev/releases/1.9/#django-contrib-postgres

By.

-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/0459e983-7098-475c-9e3f-14a076513f4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Wsgi Traceback on Django 1.8

2015-04-09 Thread lzanuz

Hi Tim,

You are right, this view use a @cache_page decorator and after cleaned the 
cache the problem was solved. I would never imagine that I must clean cache 
on update to 1.8.

Sorry by post here, but I touth that was a seriosly bug on wsgi module.

By.


Em quinta-feira, 9 de abril de 2015 07:41:48 UTC-3, Tim Graham escreveu:
>
> This query came up on IRC a few days ago. I believe it was solved by 
> clearing the site's cache. This is one of the recommended steps in "How to 
> Upgrade Django."
>
> https://docs.djangoproject.com/en/dev/howto/upgrade-version/
>
> On Thursday, April 9, 2015 at 1:14:35 AM UTC-4, Curtis Maloney wrote:
>>
>> At a guess, one of your views is returning a string instead of a 
>> HttpResponse object.
>>
>> This is the wrong forum for this question.  This list is for discussing 
>> the development _of_ django, not _with_ django.  Your question belongs in 
>> django-users.
>>
>> On 9 April 2015 at 14:56,  wrote:
>>
>>>
>>> Error on Django 1.8:
>>>
>>> My site do not use session and cookies, its basic a static site and some 
>>> forms.
>>>
>>> Django 1.7.7 it's OK.
>>>
>>>
>>> Traceback (most recent call last):
>>>   File 
>>> "/usr/local/envs/wscep/lib/python3.4/site-packages/django/core/handlers/wsgi.py",
>>>  
>>> line 195, in __call__
>>> for c in response.cookies.values():
>>> AttributeError: 'str' object has no attribute 'values'
>>>
>>>
>>>
>>> Enviado via UCSMail.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django developers (Contributions to Django itself)" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-develop...@googlegroups.com.
>>> To post to this group, send email to django-d...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-developers.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-developers/7bb3179f-1d0a-47cf-a46a-f1b7d0ed47a9%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/49c8edc1-091e-40ca-8313-cfe26cd0454c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Wsgi Traceback on Django 1.8

2015-04-08 Thread lzanuz

Error on Django 1.8:

My site do not use session and cookies, its basic a static site and some 
forms.

Django 1.7.7 it's OK.


Traceback (most recent call last):
  File 
"/usr/local/envs/wscep/lib/python3.4/site-packages/django/core/handlers/wsgi.py",
 
line 195, in __call__
for c in response.cookies.values():
AttributeError: 'str' object has no attribute 'values'



-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/7bb3179f-1d0a-47cf-a46a-f1b7d0ed47a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.7 migrations don't respect db_table in M2M relation

2014-12-06 Thread lzanuz

Hi,

If is defined "db_table" in Meta class of a model, that you are using by 
through, the migrations create the table with original name, dosen't 
respect the db_table attribute defined on through model.

Instead of create table name "myapp_mychoicename" it create 
"myapp_test_company_related".

class Test(models.Model):
company_related = models.ManyToManyField(Company,
  verbose_name='xx',
  related_name='xxx',
  through='TestCompany')

class TestCompany(models.Model):
test = models.ForeignKey(Test)
company = models.ForeignKey(Company)

class Meta:
auto_created = Test
db_table = 'myapp_mychoicename'


-- 
Enviado via UCSMail.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/3d9fd215-b7a9-4e26-92b5-e50038fb6c15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.