Re: edit MEDIA_ROOT in django 1.6

2014-01-18 Thread Russell Keith-Magee
Hi Niluka,

Just add them to your settings.py. The contents of settings.py is a
suggested starting point, not a complete list of available settings. If you
want to set a value for MEDIA_ROOT, MEDIA_URL, or any other setting, just
add the definition to settings.py.

Yours,
Russ Magee %-)

On Sun, Jan 19, 2014 at 1:13 PM, Niluka Piyasinghe wrote:

> how edit MEDIA_ROOT,MEDIA_URL in django 1.6 (it's not in settings.py)
>
> --
> 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/fe240a4d-5eb0-41ab-af67-517c3c660de9%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAJxq849-iQdfcd_2WxW6xynUHy7cwTL3bGXL6Lw-97x1jq80sA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


edit MEDIA_ROOT in django 1.6

2014-01-18 Thread Niluka Piyasinghe
how edit MEDIA_ROOT,MEDIA_URL in django 1.6 (it's not in settings.py)

-- 
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/fe240a4d-5eb0-41ab-af67-517c3c660de9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
On 19 Jan 2014 00:18, "François Schiettecatte" 
wrote:
>
> Hi
>
> IANA says the JSON mime type be application/json, so you might want to
use that.
>
> application/javascript should be for javascript.

Yes thats true. My bad.

>
>
> François
>
> On Jan 18, 2014, at 12:05 PM, Babatunde Akinyanmi 
wrote:
>
> > https://docs.djangoproject.com/en/1.6/ref/request-response/#usage
> >
> > Actually, Google is your friend.
> >
> > On 18 Jan 2014 19:48, "Igor Korot"  wrote:
> > Hi, Babatunde,
> >
> > On Sat, Jan 18, 2014 at 8:32 AM, Babatunde Akinyanmi
> >  wrote:
> > > Thats probably because you are returning the json as a context in a
response
> > > with the default "text/html" mime type. Your response should have
mime type
> > > as " application/javascript".
> > > Your json data should be in the response
> >
> > How do I do that? Could you give me some code, please?
> > Or at least point to the docs...
> >
> > Thank you.
> >
> > >
> > > On 18 Jan 2014 09:16, "Igor Korot"  wrote:
> > >
> > > Hi, guys,
> > >
> > > On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
> > >  wrote:
> > >>
> > >> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
> > >>>
> > >>> In your template try {{usb_data|safe}}
> > >>
> > >> ...because django escapes everything in the template by default
except
> > >> you ask not to. One of the methods of doing so if by using the `safe`
> > >> filter
> > >> like Mario suggested.
> > >> You can read the documentation on how to escape or unescape stuff in
your
> > >> template.
> > >
> > > Thank you, guys. It works.
> > > Now I need to figure out why I still don't see my data in the jQWidget
> > > control (jqxGrid)...
> > >
> > > Anybody familiar with this library?
> > >
> > > Thank you.
> > >>
> > >>>
> > >>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
> > 
> >  Hi, ALL,
> >  I'd like someone to help me understand this situation.
> >  Looking at the page:
> >  https://docs.djangoproject.com/en/dev/topics/serialization/ the
part
> >  which
> >  says "Serialization formats->JSON" there is an example of how the
data
> >  would
> >  be serialized.
> >  The sample uses the symbol "double quotation".
> > 
> >  On my machine I have django 1.6.1:
> > 
> >  C:\Documents and Settings\Igor.FORDANWORK>python
> >  Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
> >  (Intel)]
> >  on win32
> >  Type "help", "copyright", "credits" or "license" for more
information.
> >  >>> import django
> >  >>> django.get_version()
> >  '1.6.1'
> >  >>>
> > 
> >  In my views.py I'm using following code:
> > 
> >  usb_list = serializers.serialize("json", USB.objects.all())
> >  return render_to_response('html/index.html', {"usb_data":
usb_list} )
> > 
> >  where USB is the data model class.
> >  This class overrides a __unicode__() function to produce a good
output
> >  on
> >  the console.
> > 
> >  Now when I go to the page to see it in the browser I see the data
as a
> >  JSON but the data is surrounded with a text "".
> > 
> >  So in the docs I see something like this: "abc", while my
application
> >  will show: abc
> > 
> >  In the index.html I have this code:
> > 
> >  
> >  
> >  
> >  Test
> >  {% load staticfiles %}
> >  
> >  var data = "{{usb_data}}";
> >  # some more JavaScript code
> >  
> >  
> >  
> > 
> >  Is this a recent change? Am I doing something wrong?
> >  Thank you.
> > 
> > 
> >  --
> >  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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com
.
> >  For more options, visit https://groups.google.com/groups/opt_out.
> > >>>
> > >>> --
> > >>> 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
> > >>>
> > >>>

Re: csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
That gives me :

Encountered unknown tag 'csrf_token'.



Thanks




On Sat, Jan 18, 2014 at 8:57 PM, Mario Gudelj wrote:

> Try {% csrf_token %} by itself
> On 19/01/2014 12:12 pm, "Chen Xu"  wrote:
>
>> Hi everyone,
>> I am using Jinja2 instead of Django's own template engine, however I am
>> having an issue where csrf_token is empty, I included the following line in
>> my form:
>>
>> 
>>
>> But csrf_token has no value.
>>
>> Can someone help?
>>
>>
>> Thanks in advance
>>
>>
>> --
>> ⚡ Chen Xu ⚡
>>
>> --
>> 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/CACac-qZ%3D6CT6yO48dQKEDX%3DuhCZ%2BXzrHraNa1qru2H%2BbCTP5rA%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> 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/CAHqTbjkPA3nBDE0K5-Osdj2f5Wy4v9fFugLa%3DwPst-w5iRucEw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
⚡ Chen Xu ⚡

-- 
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/CACac-qYoS%2BMvE751%2BYyXO7Q50WXoBzosb0v0JjEhEbwnyiZUcA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: csrf_token is not being set when using Jinja2

2014-01-18 Thread Mario Gudelj
Try {% csrf_token %} by itself
On 19/01/2014 12:12 pm, "Chen Xu"  wrote:

> Hi everyone,
> I am using Jinja2 instead of Django's own template engine, however I am
> having an issue where csrf_token is empty, I included the following line in
> my form:
>
> 
>
> But csrf_token has no value.
>
> Can someone help?
>
>
> Thanks in advance
>
>
> --
> ⚡ Chen Xu ⚡
>
> --
> 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/CACac-qZ%3D6CT6yO48dQKEDX%3DuhCZ%2BXzrHraNa1qru2H%2BbCTP5rA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/CAHqTbjkPA3nBDE0K5-Osdj2f5Wy4v9fFugLa%3DwPst-w5iRucEw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


How to hide the "save and add another" button in admin page?

2014-01-18 Thread RLF_UNIQUE
I have been trying all day. What I am doing is trying to have a model for 
an "about" page, which I want to limit to 1 item. It doesn't really make 
sense to have multiple "abouts". I've done everything described here

http://stackoverflow.com/questions/13101281/in-django-admin-how-can-i-hide-save-and-continue-and-save-and-add-another-butto

but can't get it to work, it works if in the ctx update I set 
show_save_and_add_another to false, but then the "save and add another" 
button doesn't show up for any model.

Please help.

-- 
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/1f6e444e-c3f5-4386-ae3c-5b7b8ff2b60d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
Hi everyone,
I am using Jinja2 instead of Django's own template engine, however I am
having an issue where csrf_token is empty, I included the following line in
my form:



But csrf_token has no value.

Can someone help?


Thanks in advance


-- 
⚡ Chen Xu ⚡

-- 
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/CACac-qZ%3D6CT6yO48dQKEDX%3DuhCZ%2BXzrHraNa1qru2H%2BbCTP5rA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread François Schiettecatte
Hi

IANA says the JSON mime type be application/json, so you might want to use that.

application/javascript should be for javascript.


François

On Jan 18, 2014, at 12:05 PM, Babatunde Akinyanmi  wrote:

> https://docs.djangoproject.com/en/1.6/ref/request-response/#usage
> 
> Actually, Google is your friend.
> 
> On 18 Jan 2014 19:48, "Igor Korot"  wrote:
> Hi, Babatunde,
> 
> On Sat, Jan 18, 2014 at 8:32 AM, Babatunde Akinyanmi
>  wrote:
> > Thats probably because you are returning the json as a context in a response
> > with the default "text/html" mime type. Your response should have mime type
> > as " application/javascript".
> > Your json data should be in the response
> 
> How do I do that? Could you give me some code, please?
> Or at least point to the docs...
> 
> Thank you.
> 
> >
> > On 18 Jan 2014 09:16, "Igor Korot"  wrote:
> >
> > Hi, guys,
> >
> > On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
> >  wrote:
> >>
> >> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
> >>>
> >>> In your template try {{usb_data|safe}}
> >>
> >> ...because django escapes everything in the template by default except
> >> you ask not to. One of the methods of doing so if by using the `safe`
> >> filter
> >> like Mario suggested.
> >> You can read the documentation on how to escape or unescape stuff in your
> >> template.
> >
> > Thank you, guys. It works.
> > Now I need to figure out why I still don't see my data in the jQWidget
> > control (jqxGrid)...
> >
> > Anybody familiar with this library?
> >
> > Thank you.
> >>
> >>>
> >>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
> 
>  Hi, ALL,
>  I'd like someone to help me understand this situation.
>  Looking at the page:
>  https://docs.djangoproject.com/en/dev/topics/serialization/ the part
>  which
>  says "Serialization formats->JSON" there is an example of how the data
>  would
>  be serialized.
>  The sample uses the symbol "double quotation".
> 
>  On my machine I have django 1.6.1:
> 
>  C:\Documents and Settings\Igor.FORDANWORK>python
>  Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
>  (Intel)]
>  on win32
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import django
>  >>> django.get_version()
>  '1.6.1'
>  >>>
> 
>  In my views.py I'm using following code:
> 
>  usb_list = serializers.serialize("json", USB.objects.all())
>  return render_to_response('html/index.html', {"usb_data": usb_list} )
> 
>  where USB is the data model class.
>  This class overrides a __unicode__() function to produce a good output
>  on
>  the console.
> 
>  Now when I go to the page to see it in the browser I see the data as a
>  JSON but the data is surrounded with a text "".
> 
>  So in the docs I see something like this: "abc", while my application
>  will show: abc
> 
>  In the index.html I have this code:
> 
>  
>  
>  
>  Test
>  {% load staticfiles %}
>  
>  var data = "{{usb_data}}";
>  # some more JavaScript code
>  
>  
>  
> 
>  Is this a recent change? Am I doing something wrong?
>  Thank you.
> 
> 
>  --
>  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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com.
>  For more options, visit https://groups.google.com/groups/opt_out.
> >>>
> >>> --
> >>> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com.
> >>>
> >>> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "Django users" group.
> >> To unsubscribe from this topic, visit
> >> 

Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
https://docs.djangoproject.com/en/1.6/ref/request-response/#usage

Actually, Google is your friend.
On 18 Jan 2014 19:48, "Igor Korot"  wrote:

> Hi, Babatunde,
>
> On Sat, Jan 18, 2014 at 8:32 AM, Babatunde Akinyanmi
>  wrote:
> > Thats probably because you are returning the json as a context in a
> response
> > with the default "text/html" mime type. Your response should have mime
> type
> > as " application/javascript".
> > Your json data should be in the response
>
> How do I do that? Could you give me some code, please?
> Or at least point to the docs...
>
> Thank you.
>
> >
> > On 18 Jan 2014 09:16, "Igor Korot"  wrote:
> >
> > Hi, guys,
> >
> > On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
> >  wrote:
> >>
> >> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
> >>>
> >>> In your template try {{usb_data|safe}}
> >>
> >> ...because django escapes everything in the template by default
> except
> >> you ask not to. One of the methods of doing so if by using the `safe`
> >> filter
> >> like Mario suggested.
> >> You can read the documentation on how to escape or unescape stuff in
> your
> >> template.
> >
> > Thank you, guys. It works.
> > Now I need to figure out why I still don't see my data in the jQWidget
> > control (jqxGrid)...
> >
> > Anybody familiar with this library?
> >
> > Thank you.
> >>
> >>>
> >>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
> 
>  Hi, ALL,
>  I'd like someone to help me understand this situation.
>  Looking at the page:
>  https://docs.djangoproject.com/en/dev/topics/serialization/ the part
>  which
>  says "Serialization formats->JSON" there is an example of how the data
>  would
>  be serialized.
>  The sample uses the symbol "double quotation".
> 
>  On my machine I have django 1.6.1:
> 
>  C:\Documents and Settings\Igor.FORDANWORK>python
>  Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
>  (Intel)]
>  on win32
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import django
>  >>> django.get_version()
>  '1.6.1'
>  >>>
> 
>  In my views.py I'm using following code:
> 
>  usb_list = serializers.serialize("json", USB.objects.all())
>  return render_to_response('html/index.html', {"usb_data": usb_list} )
> 
>  where USB is the data model class.
>  This class overrides a __unicode__() function to produce a good output
>  on
>  the console.
> 
>  Now when I go to the page to see it in the browser I see the data as a
>  JSON but the data is surrounded with a text "".
> 
>  So in the docs I see something like this: "abc", while my application
>  will show: abc
> 
>  In the index.html I have this code:
> 
>  
>  
>  
>  Test
>  {% load staticfiles %}
>  
>  var data = "{{usb_data}}";
>  # some more JavaScript code
>  
>  
>  
> 
>  Is this a recent change? Am I doing something wrong?
>  Thank you.
> 
> 
>  --
>  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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com
> .
>  For more options, visit https://groups.google.com/groups/opt_out.
> >>>
> >>> --
> >>> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com
> .
> >>>
> >>> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "Django users" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/django-users/uoeNHy50ozI/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to
> >> django-users+unsubscr...@googlegroups.com.
> >> To post to this group, send email to django-users@googlegroups.com.
> >> Visit this 

Re: session modification question

2014-01-18 Thread Daniel Roseman
On Saturday, 18 January 2014 17:11:56 UTC, Spork Spork wrote:
>
> Hi,
>
> I have a question about what gets persisted when session data gets 
> updated. I've read the sessions chapter of the book, and it's not entirely 
> clear to me.
>
> Say I have two keys in the session object that I'm manipulating in a view:
>
> view1: request.session['foo'] = 'foocontent'
> view1: request.session['bar'] = 'barcontent'
> view1: goes off and does something that takes a long, long timer
>
> Meanwhile some other view fires off and changes foo:
>
> view2: request.session['foo'] = 'updateddfoocontent'
>
> Then view2 exits, and the most recent session data gets persisted.
>
> But meanwhile view1 still has the old copy of the session data. Eventually 
> it completes whatever it was doing, and updates bar:
>
> view1: request.session['bar'] = 'updatedbarcontent'
>
> Question: when view1 exits and its data gets persisted, does it overwrite 
> all of the session data, including stomping on view2's modification of foo? 
> If so, how can I ensure that at the end of view1, what gets persisted is:
>
> session['foo'] = 'updatedfoocontent'
> session['bar'] = 'updatedbarcontent'
>
> I'm using django 1.4 and db-based sessions.
>
> Thanks in advance,
>
> Spork
>
>
The session is not suitable for this sort of partial modification. It is 
serialized and unserialized as a whole, so there is no way to prevent the 
data being "stomped".

You should store the data somewhere else: probably in a model.
--
DR. 

-- 
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/d2b019e3-711c-47d2-a1d6-d8283d4bcc63%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread Igor Korot
Hi, Babatunde,

On Sat, Jan 18, 2014 at 8:32 AM, Babatunde Akinyanmi
 wrote:
> Thats probably because you are returning the json as a context in a response
> with the default "text/html" mime type. Your response should have mime type
> as " application/javascript".
> Your json data should be in the response

How do I do that? Could you give me some code, please?
Or at least point to the docs...

Thank you.

>
> On 18 Jan 2014 09:16, "Igor Korot"  wrote:
>
> Hi, guys,
>
> On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
>  wrote:
>>
>> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
>>>
>>> In your template try {{usb_data|safe}}
>>
>> ...because django escapes everything in the template by default except
>> you ask not to. One of the methods of doing so if by using the `safe`
>> filter
>> like Mario suggested.
>> You can read the documentation on how to escape or unescape stuff in your
>> template.
>
> Thank you, guys. It works.
> Now I need to figure out why I still don't see my data in the jQWidget
> control (jqxGrid)...
>
> Anybody familiar with this library?
>
> Thank you.
>>
>>>
>>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:

 Hi, ALL,
 I'd like someone to help me understand this situation.
 Looking at the page:
 https://docs.djangoproject.com/en/dev/topics/serialization/ the part
 which
 says "Serialization formats->JSON" there is an example of how the data
 would
 be serialized.
 The sample uses the symbol "double quotation".

 On my machine I have django 1.6.1:

 C:\Documents and Settings\Igor.FORDANWORK>python
 Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
 (Intel)]
 on win32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import django
 >>> django.get_version()
 '1.6.1'
 >>>

 In my views.py I'm using following code:

 usb_list = serializers.serialize("json", USB.objects.all())
 return render_to_response('html/index.html', {"usb_data": usb_list} )

 where USB is the data model class.
 This class overrides a __unicode__() function to produce a good output
 on
 the console.

 Now when I go to the page to see it in the browser I see the data as a
 JSON but the data is surrounded with a text "".

 So in the docs I see something like this: "abc", while my application
 will show: abc

 In the index.html I have this code:

 
 
 
 Test
 {% load staticfiles %}
 
 var data = "{{usb_data}}";
 # some more JavaScript code
 
 
 

 Is this a recent change? Am I doing something wrong?
 Thank you.


 --
 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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>> --
>>> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/uoeNHy50ozI/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CA%2BWjgXPc0BVPpkkjOij%2BG6otewyksH7Ur7ju%3DH%3DL7%2B8HX8ZVyw%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop 

session modification question

2014-01-18 Thread Spork Spork
Hi,

I have a question about what gets persisted when session data gets updated. 
I've read the sessions chapter of the book, and it's not entirely clear to 
me.

Say I have two keys in the session object that I'm manipulating in a view:

view1: request.session['foo'] = 'foocontent'
view1: request.session['bar'] = 'barcontent'
view1: goes off and does something that takes a long, long timer

Meanwhile some other view fires off and changes foo:

view2: request.session['foo'] = 'updateddfoocontent'

Then view2 exits, and the most recent session data gets persisted.

But meanwhile view1 still has the old copy of the session data. Eventually 
it completes whatever it was doing, and updates bar:

view1: request.session['bar'] = 'updatedbarcontent'

Question: when view1 exits and its data gets persisted, does it overwrite 
all of the session data, including stomping on view2's modification of foo? 
If so, how can I ensure that at the end of view1, what gets persisted is:

session['foo'] = 'updatedfoocontent'
session['bar'] = 'updatedbarcontent'

I'm using django 1.4 and db-based sessions.

Thanks in advance,

Spork

-- 
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/ab990f4a-3714-45b5-9a6c-0595af79d964%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Open day at Django Weekend Cardiff

2014-01-18 Thread Daniele Procida
Django Weekend Cardiff  is completely sold out.

Our open day remains open however, and you're invited to attend the numerous 
talks, tutorials and demonstrations in the programme.



There are fifteen different sessions in the open day programme, on all kinds of 
subjects. We may even be able to squeeze in a few more over the coming days.

All the sessions are free, and refreshments will be provided.

Registration is required so we know how many people to expect, and places in 
tutorials will be limited.

The sooner you register the better it is for us, because we have to plan 
catering, access and other practicalities - so please do it as soon as you can!

Register: 

One of the purposes of the open day is to showcase Django and Python to the 
local community - developers, researchers, government and business, school 
pupils and teachers. 

We are extremely grateful to the sponsors and supporters of Django Weekend 
, because they have made this open day 
possible, and to the numerous speakers and instructors who are presenting these 
sessions.

Daniele

-- 
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/20140118170801.1422479461%40smtp.ntlworld.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
Thats probably because you are returning the json as a context in a
response with the default "text/html" mime type. Your response should have
mime type as " application/javascript".
Your json data should be in the response
On 18 Jan 2014 09:16, "Igor Korot"  wrote:

Hi, guys,

On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
 wrote:
>
> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
>>
>> In your template try {{usb_data|safe}}
>
> ...because django escapes everything in the template by default except
> you ask not to. One of the methods of doing so if by using the `safe`
filter
> like Mario suggested.
> You can read the documentation on how to escape or unescape stuff in your
> template.

Thank you, guys. It works.
Now I need to figure out why I still don't see my data in the jQWidget
control (jqxGrid)...

Anybody familiar with this library?

Thank you.
>
>>
>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
>>>
>>> Hi, ALL,
>>> I'd like someone to help me understand this situation.
>>> Looking at the page:
>>> https://docs.djangoproject.com/en/dev/topics/serialization/ the part
which
>>> says "Serialization formats->JSON" there is an example of how the data
would
>>> be serialized.
>>> The sample uses the symbol "double quotation".
>>>
>>> On my machine I have django 1.6.1:
>>>
>>> C:\Documents and Settings\Igor.FORDANWORK>python
>>> Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
(Intel)]
>>> on win32
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import django
>>> >>> django.get_version()
>>> '1.6.1'
>>> >>>
>>>
>>> In my views.py I'm using following code:
>>>
>>> usb_list = serializers.serialize("json", USB.objects.all())
>>> return render_to_response('html/index.html', {"usb_data": usb_list} )
>>>
>>> where USB is the data model class.
>>> This class overrides a __unicode__() function to produce a good output
on
>>> the console.
>>>
>>> Now when I go to the page to see it in the browser I see the data as a
>>> JSON but the data is surrounded with a text "".
>>>
>>> So in the docs I see something like this: "abc", while my application
>>> will show: abc
>>>
>>> In the index.html I have this code:
>>>
>>> 
>>> 
>>> 
>>> Test
>>> {% load staticfiles %}
>>> 
>>> var data = "{{usb_data}}";
>>> # some more JavaScript code
>>> 
>>> 
>>> 
>>>
>>> Is this a recent change? Am I doing something wrong?
>>> Thank you.
>>>
>>>
>>> --
>>> 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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com
.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>> --
>> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com
.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/uoeNHy50ozI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CA%2BWjgXPc0BVPpkkjOij%2BG6otewyksH7Ur7ju%3DH%3DL7%2B8HX8ZVyw%40mail.gmail.com
.
>
> For more options, visit https://groups.google.com/groups/opt_out.

--
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/CA%2BFnnTyzs3h%3Dga%3DKvPArxx2-eiCVFECVPMjqc6uYnpmO%3D2SAcw%40mail.gmail.com
.
For 

CSS in form select widget

2014-01-18 Thread Larry Martell
I have a form where I need to display 2 fields in one select box, with
one field left justified and one field right justified.

Here is the model:

class Group(models.Model):
ordering = ['order',]

GROUP_BY_CHOICES = (
("Target", "Target"),
("Recipe", "Recipe"),
("PPL", "PPL"),
("Lot", "Lot"),
)

name = models.CharField(max_length=25, unique=True)
order = models.IntegerField(default=0)
prefixes = models.TextField()
group_by = models.CharField(max_length=25,
choices=GROUP_BY_CHOICES, default="Target", null=True)

def __unicode__(self):
from django.utils.safestring import mark_safe
import re

b = '%-08s %s' % (self.name, self.group_by)
return mark_safe(re.sub('\s', '&'+'nbsp;', b))


Here is the form widget:

class GroupModelChoiceField(forms.ModelChoiceField):
def __init__(self, **kwargs):
super(GroupModelChoiceField, self).__init__(
Group.objects.all(), required=False, empty_label="",
**kwargs)

I tried to create the justification by adding spaces, but since the
font is not monospaced, that doesn't work (the client doesn't want a
monospaced font anyway).

Then I tried returning some embedded CSS like this:

return mark_safe('%s%s' % (self.name, self.group_by))

But all the HTML gets srtipped out and I end out with just the 2
fields running together. Is there some way to achieve this?

Also, the select box is not wide enough to hold the 2 fields, so the
second one is getting truncated on the right. How can I make it
longer?

And, finally, in my admin page for this model:

class GroupAdmin(admin.ModelAdmin):
radio_fields = {"group_by": admin.HORIZONTAL}
list_display = ('name', 'order', 'prefixes', 'group_by')
admin.site.register(Group, GroupAdmin)

It is not sorting by the order column, even though I have:

ordering = ['order',]

in the model definition. I thought that was all that was needed to
specify a sort order. What am I missing here?

TIA!
-larry

-- 
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/CACwCsY5r1Le7UbcrLXHSJs-eodST0hEMD-ZAOa5GWHwJeCPABg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


custome not working

2014-01-18 Thread vaibhav Upadhyay


-- 
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/fe0c3f01-8bdc-43a0-ac27-2fd503c088c4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread Igor Korot
Hi, guys,

On Sat, Jan 18, 2014 at 12:02 AM, Babatunde Akinyanmi
 wrote:
>
> On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
>>
>> In your template try {{usb_data|safe}}
>
> ...because django escapes everything in the template by default except
> you ask not to. One of the methods of doing so if by using the `safe` filter
> like Mario suggested.
> You can read the documentation on how to escape or unescape stuff in your
> template.

Thank you, guys. It works.
Now I need to figure out why I still don't see my data in the jQWidget
control (jqxGrid)...

Anybody familiar with this library?

Thank you.
>
>>
>> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
>>>
>>> Hi, ALL,
>>> I'd like someone to help me understand this situation.
>>> Looking at the page:
>>> https://docs.djangoproject.com/en/dev/topics/serialization/ the part which
>>> says "Serialization formats->JSON" there is an example of how the data would
>>> be serialized.
>>> The sample uses the symbol "double quotation".
>>>
>>> On my machine I have django 1.6.1:
>>>
>>> C:\Documents and Settings\Igor.FORDANWORK>python
>>> Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
>>> on win32
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import django
>>> >>> django.get_version()
>>> '1.6.1'
>>> >>>
>>>
>>> In my views.py I'm using following code:
>>>
>>> usb_list = serializers.serialize("json", USB.objects.all())
>>> return render_to_response('html/index.html', {"usb_data": usb_list} )
>>>
>>> where USB is the data model class.
>>> This class overrides a __unicode__() function to produce a good output on
>>> the console.
>>>
>>> Now when I go to the page to see it in the browser I see the data as a
>>> JSON but the data is surrounded with a text "".
>>>
>>> So in the docs I see something like this: "abc", while my application
>>> will show: abc
>>>
>>> In the index.html I have this code:
>>>
>>> 
>>> 
>>> 
>>> Test
>>> {% load staticfiles %}
>>> 
>>> var data = "{{usb_data}}";
>>> # some more JavaScript code
>>> 
>>> 
>>> 
>>>
>>> Is this a recent change? Am I doing something wrong?
>>> Thank you.
>>>
>>>
>>> --
>>> 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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>> --
>> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/uoeNHy50ozI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CA%2BWjgXPc0BVPpkkjOij%2BG6otewyksH7Ur7ju%3DH%3DL7%2B8HX8ZVyw%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/CA%2BFnnTyzs3h%3Dga%3DKvPArxx2-eiCVFECVPMjqc6uYnpmO%3D2SAcw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: JSON serialization

2014-01-18 Thread Babatunde Akinyanmi
On 18 Jan 2014 08:32, "Mario Gudelj"  wrote:
>
> In your template try {{usb_data|safe}}

...because django escapes everything in the template by default except
you ask not to. One of the methods of doing so if by using the `safe`
filter like Mario suggested.
You can read the documentation on how to escape or unescape stuff in your
template.

>
> On 18/01/2014 4:53 pm, "Igor Korot"  wrote:
>>
>> Hi, ALL,
>> I'd like someone to help me understand this situation.
>> Looking at the page:
https://docs.djangoproject.com/en/dev/topics/serialization/ the part which
says "Serialization formats->JSON" there is an example of how the data
would be serialized.
>> The sample uses the symbol "double quotation".
>>
>> On my machine I have django 1.6.1:
>>
>> C:\Documents and Settings\Igor.FORDANWORK>python
>> Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
(Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import django
>> >>> django.get_version()
>> '1.6.1'
>> >>>
>>
>> In my views.py I'm using following code:
>>
>> usb_list = serializers.serialize("json", USB.objects.all())
>> return render_to_response('html/index.html', {"usb_data": usb_list} )
>>
>> where USB is the data model class.
>> This class overrides a __unicode__() function to produce a good output
on the console.
>>
>> Now when I go to the page to see it in the browser I see the data as a
JSON but the data is surrounded with a text "".
>>
>> So in the docs I see something like this: "abc", while my application
will show: abc
>>
>> In the index.html I have this code:
>>
>> 
>> 
>> 
>> Test
>> {% load staticfiles %}
>> 
>> var data = "{{usb_data}}";
>> # some more JavaScript code
>> 
>> 
>> 
>>
>> Is this a recent change? Am I doing something wrong?
>> Thank you.
>>
>>
>> --
>> 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/783144af-8478-408a-bdd5-0b7b5a5a1161%40googlegroups.com
.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> 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/CAHqTbj%3DO5ysO7cmVXFg8p-aTMbHNZ5gHA4iZ8JaVzNthVjsDkQ%40mail.gmail.com
.
>
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/CA%2BWjgXPc0BVPpkkjOij%2BG6otewyksH7Ur7ju%3DH%3DL7%2B8HX8ZVyw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.