Re: Django foreing keys joins

2013-06-08 Thread Àlex Pérez
Thanks!,

that query is making the join, and i wan't tho make a faster query, Joins
ar not slow but if i can avoid it better.
>>> print Counter.on_medicos.filter(loc_id__isnull=True).only('id').query

My solution was: instead of  put null values on empty relations, put a 0
value.. It work's very good.

Thank for your answer,

p.s: Can you give me your opinion about that  question
https://groups.google.com/forum/?fromgroups#!searchin/django-users/prefetch_related$20and$20only/django-users/im9LGioyWu8/8DrEnakoQKgJ
?





2013/6/6 Jani Tiainen 

> That is how Django works.
>
> So as you see, django makes query where it compares _joined_ table id as a
> null. To make it happen (left outer) join must happen, otherwise it
> wouldn't return any rows.
>
> I agree that Django _could_ do a better and optimize query so that it
> would query instead of underlying fk field as a null value, though that
> would not be simple since a you know, filters may be chained and in case of
> chaining rewriting whole query would require quite a bit of reworkings.
>
> If you absolutely know that your query stops there you can use underlying
> id field for faster testing:
>
> >>> print Counter.on_medicos.filter(loc_id__isnull=True).only('id').query
>
> That should return what you might have been expecting.
>
> --
>
> Jani Tiainen
>
> "Impossible just takes a little longer"
>
> On Thu, 6 Jun 2013 01:05:32 +0200
> Àlex Pérez  wrote:
>
> > Can someone tell me why the or in that query:
> > print Counter.on_medicos.filter(loc__isnull=True).only("id").query
> >
> > ""SELECT `web_counter`.`id` FROM `web_counter` LEFT OUTER JOIN
> > `locations_localidad` ON (`web_counter`.`loc` =
> `locations_localidad`.`id`)
> > WHERE (`web_counter`.`mode` = 1  AND `locations_localidad`.`id` IS
> NULL)"""
> >
> > The orm is making a JOIN?? i can't understant!
> >
> > The foreignkey loc is nullable and blank, i don't understant why making a
> > filter the orm is performing the join and making an exclude the ORM is
> not
> > performing the JOIN...
> >
> > print Counter.on_medicos.exclude(loc__isnull=True).only("id").query
> > SELECT `web_counter`.`id` FROM `web_counter` WHERE (`web_counter`.`mode`
> =
> > 1  AND NOT (`web_counter`.`loc` IS NULL))
> >
> > Thank's!
> >
> > --
> > Alex Perez
> > alex.pe...@bebabum.com
> >
> >  *bebabum* be successful
> >
> > c/ Còrsega 301-303, Àtic 2
> > 08008 Barcelona
> > http://www.bebabum.com
> > http://www.facebook.com/bebabum
> > http://twitter.com/bebabum
> >
> > This message is intended exclusively for its addressee and may contain
> > information that is confidential and protected by professional privilege.
> > If you are not the intended recipient you are hereby notified that any
> > dissemination, copy or disclosure of this communication is strictly
> > prohibited by law.
> >
> > Este mensaje se dirige exclusivamente a su destinatario y puede contener
> > información privilegiada o confidencial. Si no es vd. el destinatario
> > indicado,
> > queda notificado que la utilización, divulgación y/o copia sin
> autorización
> > está prohibida en virtud de la legislación vigente.
> >
> > Le informamos que los datos personales que facilite/ha facilitado
> pasarán a
> > formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
> > por finalidad gestionar las relaciones con usted.
> > Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
> > oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la
> dirección
> > de e-mail l...@bebabum.com
> >
> > --
> > 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?hl=en.
> > 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Alex Perez
alex.pe...@bebabum.com

 *bebabum* be successful

c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum

This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law.

Este mensaje se dirige exclusivamente a su destinata

Re: database -> model -> charting

2013-06-08 Thread tony gair
After trying this I find a problem with the types it can use. For example 
it does not seem to like BigIntegerField unless there is something else I 
am doing wrong. Thinking about it, maybe I am letting chartit do too much 
for me but I do like the idea of something doing the hard thinking for me 
:). I am using python 2.7 and django 1.5, are you using the same ?

On Friday, 7 June 2013 11:33:07 UTC+1, Christian Schulz wrote:
>
> When you have some experience with JS/Highcharts django-chartit might be 
> interesting. 
> Easy is relativ but I got it and I'm really not a django/JS pro. It's 
> nice work, but dev progress seems fallen asleep. 
>
> http://chartit.shutupandship.com/ 
>
>
> > 
> > 
> > I would like to hear peoples opinions on third party django charting 
> > apps, with various considerations. My primary consideration would ease 
> > of use by a django noob. 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...@googlegroups.com . 
> > To post to this group, send email to 
> > django...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/django-users?hl=en. 
> > 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Inlines in the "forward direction" for OneToOneFields

2013-06-08 Thread Bertrand Bordage
Hello,

This is a tricky question that's been bothering me for over a year.

I'm working with french historians on a project called 
Dezède (source 
on github ).  For several models they 
need to specify one or two "spatiotemporal coverage(s)": when and where 
something happened.  And sometimes they don't have exact dates|places, so 
they need CharFields to specify such approximations.  And sometimes they 
just have a date without a place, etc.

So I ended up with models similar to those you can find below.  (Sorry, 
it's a bit complex, but I promise it's simpler than the 
originals
)

But this has a flaw.

When a user wants to specify Person.birth, he has to click on the 
magnifying glass, a popup opens with all the SpatioTemporalCoverages he 
can't choose (because of the OneToOneField), and he finally creates a new 
one.
That's awkward.

If he wants to modify it, it's even more complex, so that creating a new 
one is the best solution.
That's even awkwarder.

My question is therefore:
Is there a way to edit these SpatioTemporalCoverages directly from other 
admin change forms (Person, Work and Event)?

The closest solution I found is 
django-formfield
.

Thanks!
Bertrand Bordage


*# models.py*
from django.db.models import *

class Place(Model):
name = CharField(max_length=200)

*class SpatioTemporalCoverage(Model):*
date = DateField(blank=True, null=True)
time = TimeField(blank=True, null=True)
place = ForeignKey(Place, blank=True, null=True)
approx_date = CharField(max_length=200, blank=True)
approx_time = CharField(max_length=200, blank=True)
approx_place = CharField(max_length=200, blank=True)

class Person(Model):
first_name = CharField(max_length=200)
last_name = CharField(max_length=200)
*birth = OneToOneField(SpatioTemporalCoverage, blank=True, null=True)*
*death = OneToOneField(SpatioTemporalCoverage, blank=True, null=True)*

class Profession(Model):
name = CharField(max_length=200)

class Author(Model):
person = ForeignKey(Person)
profession = ForeignKey(Profession)

class Work(Model):
title = CharField(max_length=200)
subtitle = CharField(max_length=200, blank=True)
authors = ManyToManyField(Author, blank=True, null=True)
*creation = OneToOneField(SpatioTemporalCoverage, blank=True, null=True)
*

class Event(Model):
*start** = OneToOneField(SpatioTemporalCoverage)*
*end = OneToOneField(SpatioTemporalCoverage, blank=True, null=True)**
*
works = ManyToManyField(Work)


*# admin.py*
from django.contrib.admin import ModelAdmin, site
from .models import *

class PersonAdmin(ModelAdmin):
raw_id_fields = ('birth', 'death')

class WorkAdmin(ModelAdmin):
raw_id_fields = ('creation',)

class EventAdmin(ModelAdmin):
raw_id_fields = ('start', 'end')

site.register(Place)
site.register(SpatioTemporalCoverage)
site.register(Person, PersonAdmin)
site.register(Profession)
site.register(Author)
site.register(Work, WorkAdmin)
site.register(Event, EventAdmin)

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




django-admin.py

2013-06-08 Thread Satinderjit Singh
I an a beginner in Django trying to follow manual . But i m getting message



~$ django-admin.py startproject mysite
django-admin.py: command not found

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
I'm trying to set up an existing project on a new hosting provider 
(webfaction). The site is up and running, except for any pages which 
require a database query - those pages fail to load and the backend shows 
various kinds of DatabaseError: no such table, depending on which database 
query the page needed. However, when I do ./manage.py dbshell, all of my 
tables are there! 

Does anybody know why this sort of error might be happening? 

Thanks,
Brian

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Unable to locate django-admin.py

2013-06-08 Thread Satinderjit Singh
I am beginner and trying to get start new project according to manual 
I had installed the latest version of Django and currently using ubuntu 
13.04 .
When i try to run django-admin.py startproject mysite

Terminal shows this error:
~$ django-admin.py startproject mysite
django-admin.py: command not found

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Sergiy Khohlov
looks like you are using other settings.py for .wsgi  connection

Many thanks,

Serge


+380 636150445
skype: skhohlov


On Sat, Jun 8, 2013 at 7:44 AM, Brian Lee wrote:

> I'm trying to set up an existing project on a new hosting provider
> (webfaction). The site is up and running, except for any pages which
> require a database query - those pages fail to load and the backend shows
> various kinds of DatabaseError: no such table, depending on which database
> query the page needed. However, when I do ./manage.py dbshell, all of my
> tables are there!
>
> Does anybody know why this sort of error might be happening?
>
> Thanks,
> Brian
>
> --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Unable to locate django-admin.py

2013-06-08 Thread Nigel Legg
on my set up (windows) it is in
c:\python27\Lib\site-packages\django\bin\.


Regards,
Nigel Legg
07913 740972
http://twitter.com/nigellegg
http://uk.linkedin.com/in/nigellegg



On 8 June 2013 13:36, Satinderjit Singh  wrote:

> I am beginner and trying to get start new project according to manual
> I had installed the latest version of Django and currently using ubuntu
> 13.04 .
> When i try to run django-admin.py startproject mysite
>
> Terminal shows this error:
> ~$ django-admin.py startproject mysite
> django-admin.py: command not found
>
> --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Unable to locate django-admin.py

2013-06-08 Thread Anshum Verma
  Hi,
It seems like a problem with your system PATH variable. Can you try
/usr/sbin/django-admin.py.

Regards,
Anshum
Sent from my Windows Phone
 --
From: Satinderjit Singh 
Sent: 08-06-2013 20:07
To: django-users@googlegroups.com
Subject: Unable to locate django-admin.py

I am beginner and trying to get start new project according to manual
I had installed the latest version of Django and currently using ubuntu
13.04 .
When i try to run django-admin.py startproject mysite

Terminal shows this error:
~$ django-admin.py startproject mysite
django-admin.py: command not found

-- 
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py

2013-06-08 Thread Александр Соболев
I think, you should activate virtualenv. (example: source
/bin/activate). If it's ok and you have the same problem, you
should install django (with activated virtualenv) pip install django


2013/6/8 Satinderjit Singh 

> I an a beginner in Django trying to follow manual . But i m getting message
>
>
>
> ~$ django-admin.py startproject mysite
> django-admin.py: command not found
>
>  --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Unable to locate django-admin.py

2013-06-08 Thread Branko Majic
On Sat, 8 Jun 2013 05:36:06 -0700 (PDT)
Satinderjit Singh  wrote:

> I am beginner and trying to get start new project according to manual 
> I had installed the latest version of Django and currently using ubuntu 
> 13.04 .
> When i try to run django-admin.py startproject mysite
> 
> Terminal shows this error:
> ~$ django-admin.py startproject mysite
> django-admin.py: command not found
> 

How did you install Django? Through system package manager, or via pip?

If you had used system package, then the command will be django-admin.

Best regards

-- 
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.


signature.asc
Description: PGP signature


Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
Very good guess... but I looked and in both manage.py and  mysite/wsgi.py, 
they both contain the line:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

(I was disappointed too - seemed like the right answer!)

If it helps at all, I am using sqlite3, and I cloned the database file 
along with the rest of the project from github at the start. (this process 
has worked for me before on other machines.) 

Thanks,
Brian

On Saturday, June 8, 2013 11:12:21 AM UTC-4, Sergiy Khohlov wrote:
>
> looks like you are using other settings.py for .wsgi  connection
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Sat, Jun 8, 2013 at 7:44 AM, Brian Lee 
> > wrote:
>
>> I'm trying to set up an existing project on a new hosting provider 
>> (webfaction). The site is up and running, except for any pages which 
>> require a database query - those pages fail to load and the backend shows 
>> various kinds of DatabaseError: no such table, depending on which database 
>> query the page needed. However, when I do ./manage.py dbshell, all of my 
>> tables are there! 
>>
>> Does anybody know why this sort of error might be happening? 
>>
>> Thanks,
>> Brian
>>
>> -- 
>> 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 http://groups.google.com/group/django-users?hl=en.
>> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Jason Arnst-Goodrich
Does apache have write permissions on the DB folder(s). 

I know you'll get errors if you don't have permission for the db file 
itself AND the folder containing it.

On Saturday, June 8, 2013 10:16:46 AM UTC-7, Brian Lee wrote:
>
> Very good guess... but I looked and in both manage.py and  mysite/wsgi.py, 
> they both contain the line:
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
>
> (I was disappointed too - seemed like the right answer!)
>
> If it helps at all, I am using sqlite3, and I cloned the database file 
> along with the rest of the project from github at the start. (this process 
> has worked for me before on other machines.) 
>
> Thanks,
> Brian
>
> On Saturday, June 8, 2013 11:12:21 AM UTC-4, Sergiy Khohlov wrote:
>>
>> looks like you are using other settings.py for .wsgi  connection
>>
>> Many thanks,
>>
>> Serge
>>
>>
>> +380 636150445
>> skype: skhohlov
>>
>>
>> On Sat, Jun 8, 2013 at 7:44 AM, Brian Lee  wrote:
>>
>>> I'm trying to set up an existing project on a new hosting provider 
>>> (webfaction). The site is up and running, except for any pages which 
>>> require a database query - those pages fail to load and the backend shows 
>>> various kinds of DatabaseError: no such table, depending on which database 
>>> query the page needed. However, when I do ./manage.py dbshell, all of my 
>>> tables are there! 
>>>
>>> Does anybody know why this sort of error might be happening? 
>>>
>>> Thanks,
>>> Brian
>>>
>>> -- 
>>> 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 http://groups.google.com/group/django-users?hl=en.
>>> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Keep Foreign Keys From Changing After Being Set

2013-06-08 Thread Brian Williams
So I have a model that looks somewhat like this:

class ProductInfo(models.Model):
 manufacturer = models.ForeignKey
 product_type = models.ForeignKey
 product_name = models.ForeignKey
 sku = models.CharField(()

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to Keep Foreign Keys from updating

2013-06-08 Thread Brian Williams
So I have a model that looks somewhat like this:

class ProductInfo(models.Model):
 manufacturer = models.ForeignKey
 product_type = models.ForeignKey
 product_name = models.ForeignKey
 product = models.CharField()
 sku = models.CharField()
 # bunch of other fields


Basically everything except the Foreign Keys are scraped from xml feeds. 
 The product field is tied to product_name.  Basically I am updating the 
information everyday by scraping the new xml feed but every time I do the 
ForeignKeys are reset.  

I need a way to keep them from being changed.

Anyone know of a good way to do it?

Thanks
Brian

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




I can't start a new project :(

2013-06-08 Thread Eimantas Stonys
Hello people,

I would really be very happy if someone could help me... I am using Ubuntu 
12.10. The default Python version is 2.7.3, but I got the 3.3.0 installed 
and *both* of them work perfectly, I can run Python from terminal.
Now I have installed Django (I think it installed correctly, because I can 
"import django" and f. ex. view django's version), but I can't start  a new 
project... Heres the error in terminal:

Emantas@eimantas-K50IN:~/Desktop/Py$ django-admin.py startproject mysite 
>
> Traceback (most recent call last): 
>
> File "/usr/local/bin/django-admin.py", line 5, in  
>
> management.execute_from_command_line() 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
> line 453, in execute_from_command_line 
>
> utility.execute() 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
> line 392, in execute 
>
> self.fetch_command(subcommand).run_from_argv(self.argv) 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
> line 272, in fetch_command 
>
> klass = load_command_class(app_name, subcommand) 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
> line 77, in load_command_class 
>
> module = import_module('%s.management.commands.%s' % (app_name, name)) 
>
> File "/usr/local/lib/python3.3/site-packages/django/utils/importlib.py", 
> line 35, in import_module 
>
> __import__(name) 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/commands/startproject.py",
>  
> line 2, in  
>
> from django.core.management.templates import TemplateCommand 
>
> File 
> "/usr/local/lib/python3.3/site-packages/django/core/management/templates.py", 
> line 20, in  
>
> from django.template import Template, Context 
>
> File "/usr/local/lib/python3.3/site-packages/django/template/__init__.py", 
> line 53, in  
>
> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, 
>
> File "/usr/local/lib/python3.3/site-packages/django/template/base.py", 
> line 12, in  
>
> from django.utils.text import (smart_split, unescape_string_literal, 
>
> File "/usr/local/lib/python3.3/site-packages/django/utils/text.py", line 
> 6, in  
>
> from gzip import GzipFile 
>
> File "/usr/local/lib/python3.3/gzip.py", line 9, in  
>
> import zlib 
>
> *ImportError: No module named 'zlib' *
>
> eimantas@eimantas-K50IN:~/Desktop/Py$ 
>

The line in bold is the source of the error I think. I got 
*zlib1g-dev*installed but it didn't help. Can anyone help me? I want to start 
learning 
Django very much. 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I can't start a new project :(

2013-06-08 Thread Aaron C. de Bruyn
Sounds like Python 3.3 might not have been compiled with zlib support.

You might take a look here:
http://stackoverflow.com/questions/6169522/no-module-named-zlib

-A


On Sat, Jun 8, 2013 at 12:57 PM, Eimantas Stonys
wrote:

> Hello people,
>
> I would really be very happy if someone could help me... I am using Ubuntu
> 12.10. The default Python version is 2.7.3, but I got the 3.3.0 installed
> and *both* of them work perfectly, I can run Python from terminal.
> Now I have installed Django (I think it installed correctly, because I can
> "import django" and f. ex. view django's version), but I can't start  a new
> project... Heres the error in terminal:
>
> Emantas@eimantas-K50IN:~/Desktop/Py$ django-admin.py startproject mysite
>>
>> Traceback (most recent call last):
>>
>> File "/usr/local/bin/django-admin.py", line 5, in 
>>
>> management.execute_from_command_line()
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py",
>> line 453, in execute_from_command_line
>>
>> utility.execute()
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py",
>> line 392, in execute
>>
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py",
>> line 272, in fetch_command
>>
>> klass = load_command_class(app_name, subcommand)
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py",
>> line 77, in load_command_class
>>
>> module = import_module('%s.management.commands.%s' % (app_name, name))
>>
>> File "/usr/local/lib/python3.3/site-packages/django/utils/importlib.py",
>> line 35, in import_module
>>
>> __import__(name)
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/commands/startproject.py",
>> line 2, in 
>>
>> from django.core.management.templates import TemplateCommand
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/core/management/templates.py",
>> line 20, in 
>>
>> from django.template import Template, Context
>>
>> File
>> "/usr/local/lib/python3.3/site-packages/django/template/__init__.py", line
>> 53, in 
>>
>> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
>>
>> File "/usr/local/lib/python3.3/site-packages/django/template/base.py",
>> line 12, in 
>>
>> from django.utils.text import (smart_split, unescape_string_literal,
>>
>> File "/usr/local/lib/python3.3/site-packages/django/utils/text.py", line
>> 6, in 
>>
>> from gzip import GzipFile
>>
>> File "/usr/local/lib/python3.3/gzip.py", line 9, in 
>>
>> import zlib
>>
>> *ImportError: No module named 'zlib' *
>>
>> eimantas@eimantas-K50IN:~/Desktop/Py$
>>
>
> The line in bold is the source of the error I think. I got 
> *zlib1g-dev*installed but it didn't help. Can anyone help me? I want to start 
> learning
> Django very much.
>
> --
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




"no module named context_processor"

2013-06-08 Thread KTI
I'm getting this error when I try to run my project:

ImproperlyConfigured at / :error importing request processor module 
social_auth.context_processors

In the python interpreter, I can import 'Social_auth' but when I import 
'context_processors', it says the same thing : no module named 
context_processor.

Can anybody assist?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Brian Lee
Seems like it was a path issue. I put in the full path to the sqlite3 
database file in my database settings, and it works now. For future 
reference - how is ./manage.py's path set up, and how apache's wsgi path is 
set up?

Thanks,
Brian

On Saturday, June 8, 2013 3:10:26 PM UTC-4, Jason Arnst-Goodrich wrote:
>
> Does apache have write permissions on the DB folder(s). 
>
> I know you'll get errors if you don't have permission for the db file 
> itself AND the folder containing it.
>
> On Saturday, June 8, 2013 10:16:46 AM UTC-7, Brian Lee wrote:
>>
>> Very good guess... but I looked and in both manage.py and 
>>  mysite/wsgi.py, they both contain the line:
>> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
>>
>> (I was disappointed too - seemed like the right answer!)
>>
>> If it helps at all, I am using sqlite3, and I cloned the database file 
>> along with the rest of the project from github at the start. (this process 
>> has worked for me before on other machines.) 
>>
>> Thanks,
>> Brian
>>
>> On Saturday, June 8, 2013 11:12:21 AM UTC-4, Sergiy Khohlov wrote:
>>>
>>> looks like you are using other settings.py for .wsgi  connection
>>>
>>> Many thanks,
>>>
>>> Serge
>>>
>>>
>>> +380 636150445
>>> skype: skhohlov
>>>
>>>
>>> On Sat, Jun 8, 2013 at 7:44 AM, Brian Lee  wrote:
>>>
 I'm trying to set up an existing project on a new hosting provider 
 (webfaction). The site is up and running, except for any pages which 
 require a database query - those pages fail to load and the backend shows 
 various kinds of DatabaseError: no such table, depending on which database 
 query the page needed. However, when I do ./manage.py dbshell, all of my 
 tables are there! 

 Does anybody know why this sort of error might be happening? 

 Thanks,
 Brian

 -- 
 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 http://groups.google.com/group/django-users?hl=en.
 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django & Ember

2013-06-08 Thread JJ Zolper
First off I want to say thanks a lot to Doug and Toran,

The wealth of information you provided is just astounding. I wish I 
understood the dynamics as much as you seem to have progressed too.

Really for me at this point I don't have much JS experience but I am under 
the impression that it is very good for handling the data I would most 
likely place over a google map. Since the data will update and typically 
there won't be a refresh just an update (i assume ajax) i just feel a 
purely JS framework hooked up with Django might be a nice solution.

@Toran currently the project is going to be texted based because I lost one 
developer and it's just me. At some point if we were to reach the point 
where we move to the map and adding the more complex features I think at 
that point it would be necessary to try things like you are doing with your 
team.

At this point basically I want a user to select criteria and the querysets 
to be created in an effective and high performance way because there would 
be a lot of entries in the db. I have to work on a good way to select a 
random number of entries from the database and I'm not sure if like not 
refreshing the page and handling it with ajax of sorts is a good decision.

Thanks,

JJ

On Saturday, June 1, 2013 9:30:23 PM UTC-4, Toran Billups wrote:
>
> My small software company has a team of 4 python devs and we started using 
> ember earlier this year (here are a few things we learned along the way)
>
> 1.) use a REST framework to transform your models into JSON over the wire
>
> ** We use the latest 2.x of django-rest-framework and it's been great
> ** If you are into the bleeding edge stuff you could also use ember-data 
> (I have an adapter that works with both projects to reduce the $.ajax you 
> normally write to communicate with your server on the backend)
>
> https://github.com/toranb/ember-data-django-rest-adapter
>
> 2.) you will need a template precompiler that can crunch down your 
> handlebars templates
>
> ** We use django compressor to minify our JS and CoffeeScript so we just 
> added another module called django-ember-precompile
>
> https://npmjs.org/package/django-ember-precompile
>
> 3.) If you are a unit testing shop look into ember-testing with QUnit and 
> Karma
>
> ** The only down side is that Karma does not have a preprocessor built in 
> so write your own or wait for my pull request (assuming the core pulls it 
> in)
>
> A full example project showing a django app + django rest framework + the 
> compressor / handlebars stuff mentioned above
>
> https://github.com/toranb/complex-ember-data-example
>
> Also I'm up for a pairing session or discussion over email if you decide 
> to jump in and need some pointers to get started
>
> Toran
> tor...@gmail.com 
>
> On Saturday, June 1, 2013 12:34:01 AM UTC-5, JJ Zolper wrote:
>>
>> Hello,
>>
>> So I'm thinking about bundling together Django and Ember. The reason is 
>> my front end is going to be lots of data in realtime. Think like overlaying 
>> a map with information for an example. Lots of data needs to be handled on 
>> the front end. Things need to be extremely dynamic.
>>
>> I love Django and the interface with the database and all that. I'm 
>> thinking a powerful solution might be tagging Django and Ember together. 
>> Has anyone done this? Anyone have any advice? My questions really are (like 
>> the questions on my mind are) like lets say I query the database and get 
>> this resulting queryset or list in a variable. In Django you hand that list 
>> off to the template. Like I'm not sure how to hand things back and forth 
>> between Django and Ember. How I would hand the result from the query to 
>> Ember aka JS and then display that to the front end.
>>
>> Does this sound like a powerful solution for handling large amounts of 
>> data? Really any information would be wonderful, better than nothing for 
>> sure...
>>
>> I need high performance and power for processing quickly and giving the 
>> users a seamless experience and I'm wondering if this might be the ticket?
>>
>> Thanks so much,
>>
>> JJ Zolper
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Deployment Conundrum

2013-06-08 Thread Sells, Fred
Once you get the configuration kinks worked out, using a script to copy a 
directory is brute force but easy.  You can always download XAMP  to get the 
apache/mysql stuff in windows.   Also it's hard to argue the cost of a discount 
service like Webfaction against the labor to "roll your own" but sometimes 
management can be difficult ;)  good luck.

Fred.

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of Daniel Braun
Sent: Tuesday, June 04, 2013 8:21 AM
To: django-users@googlegroups.com
Subject: Re: Deployment Conundrum

Thanks for your answer, I actually follow you on twitter so it's funny to get 
some "face time".

Anyway, what I mean by replicating Heroku is specifically the deployment 
workflow - not the scaling side of things.
I have personally already set up deployment on a physical linux box we have 
here in the office using fabric, git, nginx and gunicorn, so I have at least 
some idea on what I want to achieve.

I guess the main problem is getting fabric to work with Windows, which to my 
knowledge, isn't possible.
Does Windows have a remote access protocol similar to SSH, through which I can 
run deployment commands?

On Sunday, June 2, 2013 11:17:22 AM UTC+3, Russell Keith-Magee wrote:

On Sun, Jun 2, 2013 at 3:37 PM, Daniel Braun > 
wrote:
Hello,
I'm working in a non-profit organization. It's a design archive and research 
institute based in Israel.
We're developing (me actually, the only developer) a Django website to replace 
our ASP/MS-Access horrible system.

To the point - the only server I am allocated by the IT department is a Windows 
2008 server.
I'm currently working with Heroku, and needless to say, deployment is a breeze.
(Would love to stay with it, except I don't have the budget to pay for 
heroku/s3)

I realize I can run apache as a server, or even IIS. But how do I go about 
replicating heroku's deployment process (with git)?

Well, it depends what you mean by replicating Heroku.

If you just mean "getting a website up and running", then all you need is a git 
checkout of your source code, a web server configuration that points at that 
checkout, and a Python environment that can be called from the web server. I 
can't provide much specific advice here, but mod_wsgi configuration should be 
mostly standard regardless of the operating system, and it's not *that* hard to 
get working. Google has plenty of hits for "Django deployment windows"; you 
should be able to cobble something together from those links.

Once you've got your configuration working, redeploying should just be a matter 
of refreshing your git checkout and restarting/reloading the web server. It 
might be worthwhile writing some scripts to automate the update procedure, but 
worse case, it should only be a couple of commands.

If you want all the nifty auto scaling stuff that Heroku does -- that's another 
issue entirely. *That* sort of functionality means you need to have a deep 
understanding of your hosting environment. I don't think there are going to be 
any simple solutions here.

Is it viable to install a Ubuntu server virtual machine on top of the Windows 
installation? Does anyone have experience with it?

Is it possible? Yes. Will it perform as well as a native web server running on 
the native platform? No. Will the different between native and VM matter? That 
depends.

Whether this is a viable approach really depends on how comfortable you are 
with Unix vs Windows, and how much traffic you're actually going to serve. If 
you're going to serve a *lot* of traffic, then you probably want to avoid 
virtualisation - every little bit of extra performance will help. However, if 
you're only serving a handful of pages to a small internal group, then the 
overhead doesn't really matter -- If you've only got three people visiting your 
site, you could probably run the site on a Commodore 64 and still have CPU 
cycles to spare :-)

Yours,
Russ Magee %-)


--
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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Django 1.5 - Session request.session.set_expiry() raised 500 with datetime object.

2013-06-08 Thread XQ Kuang
Hi.

The form of my app posted the expired_time with int timestamp just like 
1371409201 and then converted it to datetime object.

expire_datetime = 
> datetime.fromtimestamp(profile_form.cleaned_data['expired_time'])
>
request.session.set_expiry(expire_datetime)


But the code raised 500 error.

Traceback (most recent call last): 
> File 
> "/usr/local/python/site-packages/django-1.5/django/core/handlers/base.py", 
> line 187, in get_response response = middleware_method(request, response) 
> File 
> "/usr/local/python/site-packages/django-1.5/django/contrib/sessions/middleware.py",
>  
> line 32, in process_response max_age = request.session.get_expiry_age()
> File 
> "/usr/local/python/site-packages/django-1.5/django/contrib/sessions/backends/base.py",
>  
> line 195, in get_expiry_age delta = expiry - modification TypeError: can't 
> subtract offset-naive and offset-aware datetimes


I see the doc[1] datetime is acceptable for the function, but it doesn't.

Is it a bug ?

Thx a lot.

[1] 
https://docs.djangoproject.com/en/dev/topics/http/sessions/#django.contrib.sessions.backends.base.SessionBase.set_expiry

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: What are the best examples of the use of Dynamic Models? (real situation)

2013-06-08 Thread Russell Keith-Magee
On Sat, Jun 8, 2013 at 2:11 AM, enemytet  wrote:

> I learn dynamic models in Django but I don't understand when to use them.
>
> What are the best examples of the use of dynamic models? (real situation)
>
My advice - Don't. Ever.

If you find yourself in a situation where you thing you need to use a
dynamic model, you've almost certainly either misunderstood your problem,
done some bad analysis of your required schema, or made a poor choice of
data store.

Relational databases aren't optimised for live changes to schema. You *can*
modify schema -- but that doesn't mean you should architect your solution
on that basis. If you find your needs for data storage are changing, then
you either need to restructure your schema to abstract the dynamic
components, or use a data store that is better suited to dynamic
constraints - for example, a document-based store, or key-value store. The
"right" solution will depend entirely on your problem space.

There are exceptions to this rule, but they are just that -- exceptions.
The vast majority of applications don't require dynamic models, and unless
you *really* understand how a relational database will handle the sorts of
changes that a dynamic schema will require, you'd be well served to avoid
them.

Yours,
Russ Magee %-)

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I can't start a new project :(

2013-06-08 Thread Eimantas Stonys
I have installed virtualenv with Python 2.7 and it worked... :)

On Saturday, 8 June 2013 22:57:41 UTC+3, Eimantas Stonys wrote:
>
> Hello people,
>
> I would really be very happy if someone could help me... I am using Ubuntu 
> 12.10. The default Python version is 2.7.3, but I got the 3.3.0 installed 
> and *both* of them work perfectly, I can run Python from terminal.
> Now I have installed Django (I think it installed correctly, because I can 
> "import django" and f. ex. view django's version), but I can't start  a new 
> project... Heres the error in terminal:
>
> Emantas@eimantas-K50IN:~/Desktop/Py$ django-admin.py startproject mysite 
>>
>> Traceback (most recent call last): 
>>
>> File "/usr/local/bin/django-admin.py", line 5, in  
>>
>> management.execute_from_command_line() 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
>> line 453, in execute_from_command_line 
>>
>> utility.execute() 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
>> line 392, in execute 
>>
>> self.fetch_command(subcommand).run_from_argv(self.argv) 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
>> line 272, in fetch_command 
>>
>> klass = load_command_class(app_name, subcommand) 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/__init__.py", 
>> line 77, in load_command_class 
>>
>> module = import_module('%s.management.commands.%s' % (app_name, name)) 
>>
>> File "/usr/local/lib/python3.3/site-packages/django/utils/importlib.py", 
>> line 35, in import_module 
>>
>> __import__(name) 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/commands/startproject.py",
>>  
>> line 2, in  
>>
>> from django.core.management.templates import TemplateCommand 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/core/management/templates.py",
>>  
>> line 20, in  
>>
>> from django.template import Template, Context 
>>
>> File 
>> "/usr/local/lib/python3.3/site-packages/django/template/__init__.py", line 
>> 53, in  
>>
>> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, 
>>
>> File "/usr/local/lib/python3.3/site-packages/django/template/base.py", 
>> line 12, in  
>>
>> from django.utils.text import (smart_split, unescape_string_literal, 
>>
>> File "/usr/local/lib/python3.3/site-packages/django/utils/text.py", line 
>> 6, in  
>>
>> from gzip import GzipFile 
>>
>> File "/usr/local/lib/python3.3/gzip.py", line 9, in  
>>
>> import zlib 
>>
>> *ImportError: No module named 'zlib' *
>>
>> eimantas@eimantas-K50IN:~/Desktop/Py$ 
>>
>
> The line in bold is the source of the error I think. I got 
> *zlib1g-dev*installed but it didn't help. Can anyone help me? I want to start 
> learning 
> Django very much. 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.