Using Redis as Django Cache

2017-04-05 Thread Luvpreet Singh


I am using(trying) redis as a cache to my django app. This is how I am 
trying to do it.



def postview(request):
post_list = []
if cache.get("posts") == None:
   post_list = Post.objects.all()
   cache.set("posts", post_list, timeout=None)
else : 
   post_list = cache.get("posts")
context = {"post_list" : post_list}
return render(request, 'post_list.html', context)
@cache_page(60*15, key_prefix="test_cache")def new(request):
print("testing")
return HttpResponse("hello, I am mohammed")



This is the output in redis-cli


luvpreet@DHARI-Inspiron-3542:~/test_venv_wrapper/test_redis$ 
redis-cli127.0.0.1:6379> select 2 # I have redis db 2 as backend in django 
settings
OK127.0.0.1:6379[2]> keys *1) 
":1:views.decorators.cache.cache_page.cache_test.GET.26488770af116d67b33750e5f304aa3e.d41d8cd98f00b204e9800998ecf8427e.en-us.UTC"2)
 
":1:views.decorators.cache.cache_header..d314df08d6409ed165873dfa23271c50.en-us.UTC"3)
 ":1:posts"4) 
":1:views.decorators.cache.cache_page..GET.d314df08d6409ed165873dfa23271c50.d41d8cd98f00b204e9800998ecf8427e.en-us.UTC"5)
 
":1:views.decorators.cache.cache_header..26488770af116d67b33750e5f304aa3e.en-us.UTC"6)
 
":1:views.decorators.cache.cache_page..GET.26488770af116d67b33750e5f304aa3e.d41d8cd98f00b204e9800998ecf8427e.en-us.UTC"7)
 
":1:views.decorators.cache.cache_header.cache_test.26488770af116d67b33750e5f304aa3e.en-us.UTC"



This is the value under one of the keys,


 

127.0.0.1> get 
:1:views.decorators.cache.cache_page.cache_test.GET.26488770af116d67b33750e5f304aa3e.d41d8cd98f00b204e9800998ecf8427e.en-us.UTC


"\x80\x02cdjango.http.response\nHttpResponse\nq\x01)\x81q\x02}q\x03(U\x0e_handler_classq\x04NU\b_headersq\x05}q\x06(U\rlast-modifiedU\rLast-ModifiedU\x1dWed,
 05 Apr 2017 10:56:58 GMT\x86U\aexpiresU\aExpiresU\x1dWed, 05 Apr 2017 15:06:58 
GMT\x86U\x0ccontent-typeU\x0cContent-TypeU\x18text/html; 
charset=utf-8\x86U\rcache-controlU\rCache-ControlU\rmax-age=15000\x86uU\b_charsetq\aNU\x11_closable_objectsq\b]U\acookiesq\tcdjango.http.cookie\nSimpleCookie\nq\n)\x81q\x0b}q\x0cbU\x06closedq\r\x89U\n_containerq\x0e]q\x0fU\x14Hello,
 I am Mohammedq\x10aU\x0e_reason_phraseq\x11Nub."

This is some serialized value. 


The queryset Post.objects.all() is cached and I have no problem in getting 
this from cache. But I am failing to understand this @cache_page() 
decorator.


Why is it making so many keys in the redis database ? Please explain the 
keys made in the redis database. How can I get to know this is working or 
not ?

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aa101f9a-7d3b-42ef-b289-5ddc1aca29fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Serializers and forms

2017-03-16 Thread Luvpreet Singh
What is the difference in saving model instance to database using a form 
and doing the same by using a serializer ? What is the basic need of 
serializers ?

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d704e683-ad49-47e6-abaf-4e7b8aca8a5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Chart library for django

2017-03-05 Thread Luvpreet Singh





Hi everyone,

I am looking for some solution to display django database queryset to 
django admin over graphs.
I had used highcharts to do that earlier, but to use highcharts, I have to 
write too much scripts and functions.

Is there any kind of inbuilt library that comes with django similar to 
highcharts by which I can display django database queryset in my django 
admin template ?

Like in the picture above.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/814318bb-dddf-4a99-afce-e29bf22c434a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
Can we link this with a template and a view in django ?

On Friday, March 3, 2017 at 4:17:08 PM UTC+5:30, Lachlan Musicman wrote:
>
> You could try 
>
> ggplot http://ggplot.yhathq.com/
>
> alternatively there's D3
>
> https://d3js.org/
>
> Cheers
> L.
>
> --
> The most dangerous phrase in the language is, "We've always done it this 
> way."
>
> - Grace Hopper
>
> On 3 March 2017 at 21:22, Luvpreet Singh <s.luvp...@gmail.com 
> > wrote:
>
>> I want to display graphs in django admin. Is there any tool to display 
>> them in django admin site ? 
>>
>>
>> I have tried django-admin-tools-stat , but I don't want to create a 
>> different dashboard for the graphs.
>>
>>
>> I want the queries on the models to be displayed with the help of those 
>> graphs.
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b4710a1-0f13-440c-bf15-e1ad85dc0fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


USING graphs in django admin

2017-03-03 Thread Luvpreet Singh


I want to display graphs in django admin. Is there any tool to display them 
in django admin site ? 


I have tried django-admin-tools-stat , but I don't want to create a 
different dashboard for the graphs.


I want the queries on the models to be displayed with the help of those 
graphs.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/efc0869a-d6e0-433d-842a-292ea607fe6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multiple Databases --- Migrations

2017-02-27 Thread Luvpreet Singh


I am using 2 postgres databases in my django app.



 'newpostgre': {
   'ENGINE': 'django.db.backends.postgresql_psycopg2',
   'NAME': 'new_postgre2',
   'USER': 'tester',
   'PASSWORD': 'password',
   'HOST': 'localhost',
   'PORT': '',
   },
   

 'newpostgre2': {
  'ENGINE': 'django.db.backends.postgresql_psycopg2',
  'NAME': 'new_postgre3',
  'USER': 'tester',
  'PASSWORD': 'password',
  'HOST': 'localhost',
  'PORT': '',
 },


I have a very simple model

 

 class Check1(models.Model):
  title = models.CharField(max_length=100)


I had run

 

python manage.py migrate --database=newpostgre
python manage.py migrate --database=newpostgre2


when I open my new_postgre2(for newpostgre) database in postgre, I can see 
my Check1 table there.


But in my new_postgre3(for newpostgre2) database in postgre, no Check1 
table is there, only those initial migrations are there.


Why I can't see my table in new_postgre3 when migrations have been 
successfully made? Or is there any rule that model can be migrated to only 
1 database ?

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8634-5cba-45a5-b4ef-aa446a0328c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple Databases

2017-02-27 Thread Luvpreet Singh
But dylan, I have written that

Check1.objects.using('default').all()

gives me error.

On Mon, Feb 27, 2017 at 1:08 PM, Dylan Reinhold <dreinh...@gmail.com> wrote:

> It is going to use the database named default.
> Checkout the doc on using mutiple DBs
> https://docs.djangoproject.com/en/1.10/topics/db/multi-db/
>
> Dylan
>
>
> On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh <s.luvpree...@gmail.com>
> wrote:
>
>> Hi everyone,
>>
>> I am using 2 databases in my django app. One is default sqlite and second
>> is postgre.
>>
>> Now, I make a simple model named Check1 in my app, having only title
>> attribute.
>>
>> class Check1(models.Model):
>>   title = models.CharField(max_length=100)
>>
>> Now, in my shell,
>>
>> >> from check.models import Check1
>> >> a = Check1(title="first")
>> >> a.save()
>> >> Check1.objects.all()   --> this gives the queryset returning 'first'
>>
>>
>> My question is, in which database is it saved, means in my default db or
>> my postgre db ? or in both ?
>>
>> >> Check1.objects.using('default').all()--> it gives me error
>> >> Check1.objects.using('newpostgre').all()  --> it gives me correct
>> queryset.
>>
>> How does I know or set that in which db it will be saved ?
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/3c65b2a4-d409-44a6-8ea9-73aa15989eb2%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/3c65b2a4-d409-44a6-8ea9-73aa15989eb2%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/5sxIoy0mDcE/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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAHtg44BO8P5N-AfYvCjPnBn2p_GxRK9HQ_SRiUw8PWgWfKdtfA%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHtg44BO8P5N-AfYvCjPnBn2p_GxRK9HQ_SRiUw8PWgWfKdtfA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL%2BrqijFBegKbKGmSAZgFEFpJWn75hVoCOYxPJi%3DLHFBrNs_FQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Multiple Databases

2017-02-26 Thread Luvpreet Singh
Hi everyone,

I am using 2 databases in my django app. One is default sqlite and second 
is postgre.

Now, I make a simple model named Check1 in my app, having only title 
attribute.

class Check1(models.Model):
  title = models.CharField(max_length=100)

Now, in my shell,

>> from check.models import Check1
>> a = Check1(title="first")
>> a.save()
>> Check1.objects.all()   --> this gives the queryset returning 'first'


My question is, in which database is it saved, means in my default db or my 
postgre db ? or in both ?

>> Check1.objects.using('default').all()--> it gives me error
>> Check1.objects.using('newpostgre').all()  --> it gives me correct 
queryset.

How does I know or set that in which db it will be saved ?

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3c65b2a4-d409-44a6-8ea9-73aa15989eb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A server that runs django

2017-02-22 Thread Luvpreet Singh
Yeah I am running my django on nginx. I just wanted to make sure that if 
I'm doing wrong by doing so?


On Tuesday, February 7, 2017 at 1:08:01 AM UTC+5:30, Dário Carvalho wrote:
>
> Hi everyone. So, I now understand a little more about how django works and 
> I was thinking about how can I run a site built with django in my own 
> python's server.
> Someone know how can I do such thing? I thought about using asyncio and/or 
> socketserver or even http with socketserver. Anyway, thanks.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d50fffbb-df42-4287-82ad-5e9175ea2967%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django template language resolve url

2017-02-22 Thread Luvpreet Singh
Iudovic is right, your syntax is wrong.

use  {% url 'ytlinks:save_ytlinks' %}

the original syntax is ,  {% url 'namespace:url_name' arguments %}
On Thursday, February 16, 2017 at 9:42:14 PM UTC+5:30, xyron wrote:
>
> Code hier eingeben...
>
> Hey there,
>
> I'm searching since more than 12 hours for a solution for my problem and 
> I'm kinda frustrated.
>
> I want to use a form and define the link using django template language in 
> a html-file:
>
> {% extends "base/header.html" %}
> {% block content %}
>
>   
>Enter Youtube-Link
> 
>
> I get following error:
>
> Reverse for 'links.views.save_ytlink' with arguments '()' and keyword 
> arguments '{}' not found. 0 pattern(s) tried: []
>
> My project structure looks like this:
>
> mysite
> +---links
> ¦   +---templates
> ¦   ¦   +---home.html
> ¦   +---urls.py
> ¦   +---views.py 
> +---mainapp
> +---templates
> ¦   +---base
> ¦   ¦   +---header.html
> ¦   +---links
> ¦   +---register
> +---urls.py
> +---views.py
>
>
> mainapp.urls.py looks like this:
>
> urlpatterns = [
> url(r'^', include('links.urls', namespace='ytlinks'), name='index'),
> url(r'^admin/', admin.site.urls),
> url(r'^register', include('register.urls'), name='register'),
> url(r'^ytlinks/', include('links.urls', namespace='ytlinks')),
> ]
>
>
> links.urls.py looks like this:
>
> urlpatterns = [
>url(r'^save_ytlink', views.save_ytlink, name='save_ytlink'),
>url(r'^list$', views.ytlinks_list, name='ytlinks_list'),
>url(r'^', views.ytlinks, name='ytlinks'),
> ]
>
>
> links.views.py looks like this:
>
> def save_ytlink(request):
> msg = ""
> msg_status = "" # possible: 'success', 'info', 'danger', 'warning'
>
>
> # Check if user came here by form
> if request.method == 'GET':
> return render(request, 'home.html')
>
>
> ytlink = request.POST['ytlink']
> allow_save = True
>
>
> # Validation
> # ...
>
>
> return render(request, 'home.html', {'queryset':'', 'msg':msg, 
> 'msg_status':msg_status})
>
>
> Things I tried:
>
> 
> 
> 
> 
> 
>
> (and much more)
>
> I tried to set namespaces, to see if it makes any difference. Also stuff 
> with ../views.save_ytlink didn't work.
>
> Also if I create a file called "test.html" (located in the same 
> directory), it doesn't  change the error.
>
> {% url 'test.html' %}
>
> If I use:
>
> 
>
> It works.
>
> What am I doing wrong? I really, really appreciate any attempt to help.
>
> xyron
>
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/85318c8b-2e82-4076-8736-ded3da1fb96f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A server that runs django

2017-02-22 Thread Luvpreet Singh
Well, I completely agree with you. But can we use Nginx servers?


On Tuesday, February 7, 2017 at 1:08:01 AM UTC+5:30, Dário Carvalho wrote:
>
> Hi everyone. So, I now understand a little more about how django works and 
> I was thinking about how can I run a site built with django in my own 
> python's server.
> Someone know how can I do such thing? I thought about using asyncio and/or 
> socketserver or even http with socketserver. Anyway, thanks.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f1fa284-b989-4690-b46a-091908c97d8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Models/Foreign Keys best practice

2017-02-22 Thread Luvpreet Singh
Hi Richard,

I am facing a difficulty here.
Can you please tell me that how to iterate over this queryset , 
performance.ensemble_set.all()  ??

Thanks.

On Wednesday, February 22, 2017 at 7:55:24 PM UTC+5:30, Richard Jackson 
wrote:
>
> Hi all,
>
> I'm putting together my first app, closely modelled on the Django 
> tutorial, and wanted some advice regarding when to split the various models 
> into different foreign keys.
>
> The app lists performances, who's performing, what my role is with them 
> (i.e. conductor, pianist etc.), the venue and the start date/time of these 
> performances.
>
> I'd initially thought I should split these all into separate classes, 
> since, for example, the same Ensemble might be involved in a different 
> performance, but I'm now not sure that's correct (/my understanding is 
> incorrect). Would someone mind letting me know if this is a good idea or 
> whether there's a better practice I should follow.
>
> I've included my models.py file below:
>
> from django.db import models
> from django.utils import timezone
> # Create your models here.
>
>
> class Performance(models.Model):
> """First attempt at a thing!"""
> performance_name = models.CharField(max_length=200)
> link = models.CharField(max_length=200)
>
> def __unicode__(self):
> return self.performance_name
>
>
> class Ensemble(models.Model):
> performance = models.ForeignKey(Performance)
> ensemble = models.CharField(max_length=200)
>
> def __unicode__(self):
> return self.ensemble
>
>
> class Role(models.Model):
> performance = models.ForeignKey(Performance)
> role = models.CharField(max_length=200)
>
> def __unicode__(self):
> return self.role
>
>
> class Venue(models.Model):
> performance = models.ForeignKey(Performance)
> venue = models.CharField(max_length=200)
>
> def __unicode__(self):
> return self.venue
>
>
> class Date(models.Model):
> performance = models.ForeignKey(Performance)
> start_date = models.DateTimeField('Start Date', default=timezone.now)
> end_date = models.DateTimeField('End Date', default=timezone.now)
>
>
> Thanks!
>
> Rich
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d998078b-dd87-43a6-ac6c-1cb5b120f135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Difference

2017-02-15 Thread Luvpreet Singh
YES. Thank you very much for explaining this.


On Thursday, February 16, 2017 at 12:20:45 PM UTC+5:30, Michal Petrucha 
wrote:
>
> On Wed, Feb 15, 2017 at 12:48:21PM -0800, Luvpreet Singh wrote: 
> > What is the difference between realted_name and related_query_name ?? 
>
> One is used as the name of the related manager on the remote side, the 
> other is used to traverse the relationship in queryset filters from 
> the remote side. 
>
> Let me try to illustrate that with an example. 
>
>
> class Reporter(models.Model): 
> name = models.TextField() 
>
>
> class Article(models.Model): 
> reporter = models.ForeignKey(Reporter, related_name="articles", 
>  related_query_name="articles_written") 
> title = models.TextField() 
>
>
> So, when you have an instance of the Reporter model, you'd use the 
> related_name, which is “articles” here, to get a list of articles: 
>
> r = Reporter.objects.last() 
> r.articles.all() 
>
> However, if you want to get all reporters, who have written articles 
> with titles beginning with the letter “T”, you'd use the 
> related_query_name in the queryset filter: 
>
> Reporter.objects.filter(articles_written__title__startswith="T") 
>
> Does this make it more clear? 
>
> Cheers, 
>
> Michal 
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/23c1061f-a436-4e15-9c24-a0603ede68bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Difference

2017-02-15 Thread Luvpreet Singh
What is the difference between realted_name and related_query_name ??

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bcb6f20b-00d6-4685-904f-94c82374bdbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.