Re: new installations tryout problem

2015-06-26 Thread Mike Dewhirst

On 26/06/2015 3:24 PM, Elim Qiu wrote:

Installed django recently, followed the django tutorial pdf to some
where arround page 20. But got problems...

It's on ubuntu 14.04, I have ipython installed and the following command
some how brings up ipython. And it will raise exception for command
Question.objects.filter(question_text__startswith='What')

I have to do double quotes instead:
Question.objects.filter(question_text__startswith="What")

But now I encountered the following error and need your help:


The last line of the traceback gives the answer ...

IntegrityError: (1048, "Column 'poll_id' cannot be null")

It's a long time since I looked at the tutorial but I seem to remember 
that questions each belong to a poll. So create a poll first if you 
haven't done so already and then make sure question is related to poll.


Try finding polls ...

.objects.all() returns a queryset even if there is only one 
object in it. 
https://docs.djangoproject.com/en/1.7/topics/db/queries/#retrieving-all-objects


Querysets are very clever because they don't hit the database until you 
need the actual objects. If you slice the queryset or list it, it gets 
evaluated and the objects it points to become available.


so ...

from polls.models import Poll
poll_qs = Poll.objects.all()

If there is at least one Poll object you can get it directly if you know 
enough about it to specify it in a filter() or use 
Poll.objects.get(id=1) (er .. that's not how you would normally do it)


.objects.get() returns one object (not a queryset) or a 
DoesNotExist or MultipleObjectsReturned error so you really must specify 
it properly.


In any case, having discovered the poll you are interested in, you need 
a variable to represent it. So ...


p = poll_qs[0] # this slices the first object off the queryset

... and p is the first object in the queryset.

Now retrieve the question as you did previously but this time assign it 
to a variable like this ...


> In [11]: q = Question.objects.get(pub_date__year=this_year)
> Out [12]: q

Now

q.poll = p
q.save()

... and that should stop the IntegrityError: (1048, "Column 'poll_id' 
cannot be null")


With any luck.

hth

Mike



elim@aLnx:mydjango$ python manage.py shell
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help  -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import django

In [2]: django.setup()

In [3]: from polls.models import Question, Choice

In [4]: Question.objects.all()
Out[4]: []

In [5]: from django.utils import timezone

In [6]: Question.objects.filter(id=1)
Out[6]: []

In [7]: Question.objects.filter(question_text__startswith="What")
Out[7]: []

In [8]: # Due to ipython instead of python shell, we need "What" instead
of 'What'

In [9]: this_year = timezone.now().year

In [10]: this_year
Out[10]: 2015

In [11]: Question.objects.get(pub_date__year=this_year)
Out[11]: 

In [12]: # Question.objects.get(id=2) will raise: Traceback (most recent
call last):

In [13]: # ...

In [14]: # DoesNotExist: Question matching query does not exist.

In [15]: Question.objects.get(id=1)
Out[15]: 

In [16]: Question.objects.get(pk=1)
Out[16]: 

In [17]: q = Question.objects.get(pk=1)

In [18]: q.was_published_recently()
Out[18]: False

In [19]: q
Out[19]: 

In [20]: # What False (In[18]) ?

In [21]: q.choice_set.all()
Out[21]: []

In [22]: q.choice_set.create(choice_text='Not much', votes=0)
---
IntegrityErrorTraceback (most recent call last)
 in ()
> 1 q.choice_set.create(choice_text='Not much', votes=0)

/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related.pyc
in create(self, **kwargs)
 748 kwargs[rel_field.name] = self.instance
 749 db = router.db_for_write(self.model,
instance=self.instance)
--> 750 return super(RelatedManager,
self.db_manager(db)).create(**kwargs)
 751 create.alters_data = True
 752

/usr/local/lib/python2.7/dist-packages/django/db/models/manager.pyc in
manager_method(self, *args, **kwargs)
 125 def create_method(name, method):
 126 def manager_method(self, *args, **kwargs):
--> 127 return getattr(self.get_queryset(), name)(*args,
**kwargs)
 128 manager_method.__name__ = method.__name__
 129 manager_method.__doc__ = method.__doc__

/usr/local/lib/python2.7/dist-packages/django/db/models/query.pyc in
create(self, **kwargs)
 346 obj = self.model(**kwargs)
 347 self._for_write = True
--> 348 obj.save(force_insert=True, using=self.db)
 349 return obj
 350

/usr/local/lib/python2.7/dist-packages/django/db/m

Re: [SOLVED] Model cache problem

2015-06-26 Thread dragon

On 06/26/2015 08:13 AM, dragon wrote:

On 06/25/2015 09:49 PM, Vijay Khemlani wrote:

Are you using a ModelChoiceField?

https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield

Or a normal ChoiceField setting the choices manually?
I am using normal Chice field and yes i'm setting up manually when I 
call the form.
I found the answer. I fill up my choicefield at field init. It must fill 
at form init.


--
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/558D1F47.8010700%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model cache problem

2015-06-26 Thread jarmovanlenthe
I think you've used choices=Apple.objects.all, instead of
choices=Apple.objects.all(). With the added parentheses, the 'all()' is
evaluated each time the form is loaded. Only using 'all' is once evaluated
and then used over and over.

Jarmo

On Thu, Jun 25, 2015 at 9:49 PM Vijay Khemlani  wrote:

> Are you using a ModelChoiceField?
>
> https://docs.djangoproject.com/en/1.8/ref/forms/fields/#modelchoicefield
>
> Or a normal ChoiceField setting the choices manually?
>
> On Thu, Jun 25, 2015 at 11:28 AM, dragon  wrote:
>
>> Hi!
>>
>> I have a form with a choice field. I fill it from a model let's name it
>> Apples. And when I delete a row from Apples model the choice field includes
>> the deleted Apple after page reloading. I use this Apple choice form
>> another page and on that page there's the deleted Apple row too. When I
>> choose the deleted row the application throw a DoesNotExist exception (very
>> well). I try it debug mode and when I restart the app it will be ok. The
>> deleted apple row not in the choice filed. And of course the deleted row
>> not in the sql anymore. So the deletion is successfull.
>>
>> How can I refresh the choice filed, or regenerate the model after row
>> deletion?
>>
>> dragon
>>
>> --
>> 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/558C101D.4030905%40gmail.com
>> .
>> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALn3ei1PaAdKR3doVkcam%3DRer%3DAcU%3DWk8AiJA0d_gh-nrQt0hw%40mail.gmail.com
> 
> .
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALqR7pTv9rkaEyAHMPAwOvSotrgvTBrDpdtUhnKS2%3DocXjKaXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Help me develop a Job Tracker (?)

2015-06-26 Thread Softeisbieger
Hi,

maybe first, a few things about me: I have no experience in websites / 
django. I have a background in scientific computing and I especially enjoy 
using python. I did some GUI programming in .NET and SQL.

So here is my project: I want to develop a 'Job Tracker' (approx. like an 
Issue Tracker), with a central twist: In traditional issue trackers the 
work flow is simple / unique / not adaptable: For example 'Open -> Working 
-> Closed'. What I have in mind is, to enable the users to define one or 
more such work flows and to manage these using a single applications. If 
some program / website already provides this, a note is welcome. 

Why? I am developing this for a landscape gardening company, where
 Person A gets a task from some customer.
 -> Person B is responsible for ordering people to solve the task. 
 -> Person B is responsible for collecting information to enable billing
 -> Person C creates the invoice -> Done
This is one example work flow. There are many other possible workflows, for 
example for creating a cost estimate for a customer. In the past this all 
occured on paper. The company reached a size where this is not feasible 
anymore.

So one thing that is needed is a customer management. This is 
straightforward. I am uncertain how to handle different work flows, though. 
The user should be able to define these 'on the fly' and I have no idea how 
to express this in terms of django. What I know about a workflow:

   - it has 1..n steps
   - it can be connected to a customer
   - each carries some information: date created, creator, description, ...
   - at all times the job is assigned to someone
   - on definition of the workflow, one must be able to preset each step: 
   Who is (typically) responsible, when should this step be completed.

I can imagine two possibilities: First, hide the different workflows from 
the database. Use an 'intelligent' string (json) to store different 
workflows with the same interface. Second, somehow create new tables for 
new workflows on the fly. The second seems to be the more elegant solution.


So this is my setup. Any idea / hint / solution is welcome.


Thanks!

 Johannes


-- 
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/34292790-7a54-4e6a-864a-2b2abf46b5db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model cache problem

2015-06-26 Thread dragon

On 06/26/2015 09:21 AM, jarmovanlen...@gmail.com wrote:
I think you've used choices=Apple.objects.all, instead of 
choices=Apple.objects.all(). With the added parentheses, the 'all()' 
is evaluated each time the form is loaded. Only using 'all' is once 
evaluated and then used over and over.




Thanks, it's useful too.

--
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/558D331B.9010902%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


help with e-library

2015-06-26 Thread Mane Said
Dear all ,,
I am new user for django and web programming 

I want to program e-library application which basically have some field 
related to books details and bar code 
and finally some information about people who gone to use it 


where is the best place to start 
and if you have any ideas please share it 

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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b22a3844-d673-4b96-ac64-8490429e541d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ValueError: Dependency on unknown app

2015-06-26 Thread Filipe Ximenes
Did you add "cw_auth" to your "INSTALED_APPS"?

On Thu, Jun 25, 2015 at 11:32 PM, James Schneider 
wrote:

> Have you tried cw_auth.models.AppUser as the value for AUTH_USER_MODEL?
>
> -James
> On Jun 25, 2015 12:45 PM, "MamEshe5minPlz" 
> wrote:
>
>> I'm trying to use custom User model. Created app named "cw_auth", created
>> "AppUser" model in it, added module to INSTALLED_APPS and added
>>
>> AUTH_USER_MODEL = 'cw_auth.AppUser'
>>
>> to settings.py file. But when I'm trying to perform
>> ./manage.py makemigrations cw_auth
>> I'm getting errors
>> Traceback (most recent call last):
>>   File "manage.py", line 10, in 
>> execute_from_command_line(sys.argv)
>>   File
>> "c:\Python34\lib\site-packages\django\core\management\__init__.py", line
>> 338, in execute_from_command_line
>> utility.execute()
>>   File
>> "c:\Python34\lib\site-packages\django\core\management\__init__.py", line
>> 330, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "c:\Python34\lib\site-packages\django\core\management\base.py",
>> line 390,
>>  in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File "c:\Python34\lib\site-packages\django\core\management\base.py",
>> line 441,
>>  in execute
>> output = self.handle(*args, **options)
>>   File
>> "c:\Python34\lib\site-packages\django\core\management\commands\makemigrat
>> ions.py", line 63, in handle
>> loader = MigrationLoader(None, ignore_no_migrations=True)
>>   File "c:\Python34\lib\site-packages\django\db\migrations\loader.py",
>> line 47,
>> in __init__
>> self.build_graph()
>>   File "c:\Python34\lib\site-packages\django\db\migrations\loader.py",
>> line 287,
>>  in build_graph
>> parent = self.check_key(parent, key[0])
>>   File "c:\Python34\lib\site-packages\django\db\migrations\loader.py",
>> line 165,
>>  in check_key
>> raise ValueError("Dependency on unknown app: %s" % key[0])
>> ValueError: Dependency on unknown app: cw_auth
>>
>> cw_auth/models.py code bellow:
>>
>> from django.db import models
>> from django.contrib.auth.models import (
>> BaseUserManager, AbstractBaseUser
>> )
>>
>>
>> class AppUserManager(BaseUserManager):
>> def create_user(self, email, first_name, last_name, role=3, 
>> password=None):
>> """
>> Creates and saves a User
>> """
>> if not email:
>> raise ValueError('Users must have an email address')
>>
>> user = self.model(
>> email=self.normalize_email(email),
>> first_name=first_name,
>> last_name=last_name,
>> role=role,
>> )
>>
>> user.set_password(password)
>> user.save(using=self._db)
>> return user
>>
>> def create_superuser(self, email, first_name, last_name, password):
>> """
>> Creates and saves a superuser
>> """
>> user = self.create_user(email,
>> first_name=first_name,
>> last_name=last_name,
>> role=1,
>> password=password
>> )
>> return user
>>
>>
>> class AppUser(AbstractBaseUser):
>> ROLES = ((1, 'Administrator'),
>>  (2, 'Manager'),
>>  (3, 'Customer'),
>>  (4, 'Provider'))
>> role = models.IntegerField(choices=ROLES, db_index=True)
>> bonus_coins = models.DecimalField(max_digits=9, decimal_places=3)
>> balance = models.DecimalField(max_digits=12,decimal_places=2)
>> consumables = models.IntegerField()  # amount of available bids for 
>> providers
>> avatar = models.ImageField(max_length=250)
>> rating = models.DecimalField(max_digits=4,decimal_places=2)
>> company_name = models.TextField(max_length=100, blank=True)
>> birth_date = models.DateField()
>>
>> email = models.EmailField(verbose_name='email address', max_length=255, 
>> unique=True)
>> first_name = models.CharField(max_length=50)
>> last_name = models.CharField(max_length=50)
>> is_active = models.BooleanField(default=False)
>> date_joined = models.DateTimeField(auto_now_add=True)
>>
>> objects = AppUserManager()
>>
>> USERNAME_FIELD = 'email'
>> REQUIRED_FIELDS = ['first_name', 'last_name']
>>
>> def get_full_name(self):
>> return ' '.join([self.first_name, self.last_name])
>>
>> def get_short_name(self):
>> return self.first_name
>>
>> def __str__(self):
>> return self.get_full_name()
>>
>> def has_perm(self, perm, obj=None):
>> """Does the user have a specific permission?"""
>> # Simplest possible answer: Yes, always
>> return True
>>
>> def has_module_perms(self, app_label):
>> """Does the user have permissions to view the app `app_label`?"""
>> # Simplest possible answer: Yes, always
>> return True
>>
>> @property
>> def is_staff(self):
>> """Is 

Re: Help me develop a Job Tracker (?)

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 3:01 AM, Softeisbieger  wrote:
> I am uncertain how to handle different work flows, though. The user should
> be able to define these 'on the fly' and I have no idea how to express this
> in terms of django. What I know about a workflow:


there's a thing known as a workflow engine, with extensive theory,
definitions, terminology, research and implementations.  Check some of
theory in wikipedia[1].

as is common in Django, a very useful first stop is
djangopackages.com, where you can find a comparison grid of workflow
engines already created for Django[2]

some of them are quite capable, and even if miss something you would
like, they're not too hard to adapt, once you have the theory well
understood.

Of course, if you're new to Django, first you _have_ to do the
tutorial, or lots of things might not make sense.

[1]: https://en.wikipedia.org/wiki/Workflow_engine
[1.1]: https://en.wikipedia.org/wiki/Business_process_modeling
[1.2]: https://en.wikipedia.org/wiki/Petri_net
[1.3]: https://en.wikipedia.org/wiki/Kahn_process_networks
[2]: https://www.djangopackages.com/grids/g/workflow/

-- 
Javier

-- 
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/CAFkDaoRU5qqhQrdSmSfeE3KJzCxxd6icqEdahp9uQ6GnL-HSBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help with e-library

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 6:55 AM, Mane Said  wrote:
> where is the best place to start

definitely, the Django tutorial.

your project sounds like a very straightforward database application.
after finishing the tutorial you might easily model your concepts, or
you can always ask specific questions here.


-- 
Javier

-- 
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/CAFkDaoTTapqY41Endx-Mr5EAxy185x%3D3JbfRBY9KMosLpcuQ7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Wim Feijen
Thanks Gergely, 

That solved it for me. 

Wim

On Sunday, 31 May 2015 09:58:32 UTC+2, Gergely Polonkai wrote:
>
> I had this error when I had two Django application with the same domain 
> and both with the same (default) CSRF cookie name. Changing the cookie name 
> to something different solved the issue.
> On 30 May 2015 22:30, "Michael Greer" > 
> wrote:
>
>> We have started seeing this behavior occasionally. No code change in this 
>> area, but sometimes (esp on phones) the CSRF cookie is wrong.
>>
>> Our guess is too many cookies on the domain, but it is difficult to prove 
>> this. Indeed, opening a new browser session resolves it... temporarily.
>>
>> -Mike
>>
>> On Tuesday, January 6, 2015 at 3:09:46 AM UTC-6, Sugita Shinsuke wrote:
>>>
>>> Hello.
>>>
>>> When I use Django via my smart phone Android and iOS.
>>> The error sometimes occurred.
>>>
>>> Forbidden (403)
>>> CSRF verification failed. Request aborted.
>>> Help
>>> Reason given for failure:
>>> CSRF token missing or incorrect.
>>>
>>> In general, this can occur when there is a genuine Cross Site Request 
>>> Forgery, or when Django's CSRF mechanism has not been used correctly. For 
>>> POST forms, you need to ensure:
>>> Your browser is accepting cookies.
>>> The view function uses RequestContext for the template, instead of 
>>> Context.
>>> In the template, there is a {% csrf_token %} template tag inside each 
>>> POST form that targets an internal URL.
>>> If you are not using CsrfViewMiddleware, then you must use csrf_protect 
>>> on any views that use the csrf_token template tag, as well as those that 
>>> accept the POST data.
>>> You're seeing the help section of this page because you have DEBUG = 
>>> True in your Django settings file. Change that to False, and only the 
>>> initial error message will be displayed.
>>> You can customize this page using the CSRF_FAILURE_VIEW setting.
>>>
>>> I append django.middleware.csrf.CsrfViewMiddleware', of 
>>> MIDDLEWARE_CLASSES in settings.py
>>>
>>> I use
>>> Python 2.7.5
>>> Django 1.6.4
>>>
>>> Anyone who know this matter, 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...@googlegroups.com .
>> To post to this group, send email to django...@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/89d20584-d3bf-4104-b642-0f519c4deb10%40googlegroups.com
>>  
>> 
>> .
>> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e3014c1-5753-405e-9341-de8c1f62c750%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Michael Greer
BTW, it turned out to be a cookie parsing error in python for us, only
recently solved, in which Python incorrectly balked at parsing the "["
character in cookie values and then threw out the remaining cookies.

This has been fixed in 2.7.10 (and new versions of 3) but is not yet in
Debian stable.

-Mike

On Fri, Jun 26, 2015 at 7:35 AM, Wim Feijen  wrote:

> Thanks Gergely,
>
> That solved it for me.
>
> Wim
>
> On Sunday, 31 May 2015 09:58:32 UTC+2, Gergely Polonkai wrote:
>>
>> I had this error when I had two Django application with the same domain
>> and both with the same (default) CSRF cookie name. Changing the cookie name
>> to something different solved the issue.
>> On 30 May 2015 22:30, "Michael Greer"  wrote:
>>
>>> We have started seeing this behavior occasionally. No code change in
>>> this area, but sometimes (esp on phones) the CSRF cookie is wrong.
>>>
>>> Our guess is too many cookies on the domain, but it is difficult to
>>> prove this. Indeed, opening a new browser session resolves it...
>>> temporarily.
>>>
>>> -Mike
>>>
>>> On Tuesday, January 6, 2015 at 3:09:46 AM UTC-6, Sugita Shinsuke wrote:

 Hello.

 When I use Django via my smart phone Android and iOS.
 The error sometimes occurred.

 Forbidden (403)
 CSRF verification failed. Request aborted.
 Help
 Reason given for failure:
 CSRF token missing or incorrect.

 In general, this can occur when there is a genuine Cross Site Request
 Forgery, or when Django's CSRF mechanism has not been used correctly. For
 POST forms, you need to ensure:
 Your browser is accepting cookies.
 The view function uses RequestContext for the template, instead of
 Context.
 In the template, there is a {% csrf_token %} template tag inside each
 POST form that targets an internal URL.
 If you are not using CsrfViewMiddleware, then you must use csrf_protect
 on any views that use the csrf_token template tag, as well as those that
 accept the POST data.
 You're seeing the help section of this page because you have DEBUG =
 True in your Django settings file. Change that to False, and only the
 initial error message will be displayed.
 You can customize this page using the CSRF_FAILURE_VIEW setting.

 I append django.middleware.csrf.CsrfViewMiddleware', of
 MIDDLEWARE_CLASSES in settings.py

 I use
 Python 2.7.5
 Django 1.6.4

 Anyone who know this matter, 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...@googlegroups.com.
>>> To post to this group, send email to django...@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/89d20584-d3bf-4104-b642-0f519c4deb10%40googlegroups.com
>>> 
>>> .
>>> 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/rNWGZNfJMhE/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/4e3014c1-5753-405e-9341-de8c1f62c750%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
--
Michael Greer
CTO & Co-Founder
TAPP TV
mich...@tapptv.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPF98ODaKrHSKMk4BGtorzN3%2B9rS%3DJiWn4f_nEPeSu4VoF%2Bx8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use sqlite for big project?

2015-06-26 Thread dk

as my understanding SQLite will only let you do one transaction at the 
time. and cant handle big volume of inputs at  once.
is great and easy since comes already as part of python if you are doing 
something for your local team. like a bug report or something that you know 
that not every one will be using it ALL the time.


On Thursday, June 25, 2015 at 9:08:32 AM UTC-5, Arindam sarkar wrote:

> i need to develop a job portal . is there any problem if i use sqlite ? 
> coz i am having problem to setup mysql or postgresql . please help.
>
> -- 
> Regards,
>
> Arindam
>
> Contact no. 08732822385
>
>
>  

-- 
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/9ea5b889-c4fc-474c-87d4-e4a4f71317a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Displaying Calculated and Modified field names in a Django Model?

2015-06-26 Thread Heather Johnson
I am creating reports in my MySQL backend. I have created a database view 
that only displays the fields I need: id, Position, Fault_Count. Postion 
and Fault_Count are modified field names from the Select statement. Django 
isn't liking this too much and keeps throwing an Operational Error (1054). 
Unknown Columns. 

How do I need to set up my model to display the modified fields: 
Fault_count doesn't exist in the original table because it's calculated and 
Position is a modified name of another field that also has some parameters 
set to it to find a character position.

Any ideas of what Django is expecting?

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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ee17c81-36c2-4fce-98de-8861443c2f47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use sqlite for big project?

2015-06-26 Thread Andrew Farrell
Arindam,

Here are two routes you should consider:
1) Develop your site using SQLite until you get to the point of needing
something more performant under heavy loads, then switch over. By the time
you switch, you will have developed a deeper understanding of Django and
also will have demonstrated confidence-inspiring progress to your client.

2) Work through this tutorial

on
how to set up django with postgres as well as the webserver combination of
gunicorn and nginx. This will give you a robust setup from the beginning
and should Just Work.

On Fri, Jun 26, 2015 at 10:28 AM, dk  wrote:

>
> as my understanding SQLite will only let you do one transaction at the
> time. and cant handle big volume of inputs at  once.
> is great and easy since comes already as part of python if you are doing
> something for your local team. like a bug report or something that you know
> that not every one will be using it ALL the time.
>
>
> On Thursday, June 25, 2015 at 9:08:32 AM UTC-5, Arindam sarkar wrote:
>
>> i need to develop a job portal . is there any problem if i use sqlite ?
>> coz i am having problem to setup mysql or postgresql . please help.
>>
>> --
>> Regards,
>>
>> Arindam
>>
>> Contact no. 08732822385
>>
>>
>>   --
> 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/9ea5b889-c4fc-474c-87d4-e4a4f71317a5%40googlegroups.com
> 
> .
>
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2By5TLb_p9SeWn7KhgzxtbjQNcCHam6r%2BHsP6CzcncEvsy_Vsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


@transaction.atomic ignored?

2015-06-26 Thread Lene Preuss
Hi, 

I want to write a large number of model instances to DB, in a 
multi-database setup. The way I am doing this is essentially:

@transaction.atomic
def process_all():
for record in Model.objects.using(DB1).all():
process_one(record)

def process_one(record):
do_something_with(record)
record.save(using=DB2)

The way I understand the docs 
(https://docs.djangoproject.com/en/1.8/topics/db/transactions/#controlling-transactions-explicitly)
 
this should start a transaction when process_all() is entered, and commit 
it when process_all() is finished - so all records should be written at 
once. However, this is not what happens - no transaction is started, and 
all records are written to DB immediately. 

Neither ATOMIC_REQUESTS nor AUTOCOMMIT are touched in the settings. FWIW, I 
use a Postgres DB and Django 1.7.8. Also, if I replace the 
@transactions.atomic decorator with: with transactions.atomic() do: ..., 
that doesn't change anything.

What am I missing?

Thanks, Lene

-- 
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/ef8c8919-6004-462b-93c4-f28fefa28e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: @transaction.atomic ignored?

2015-06-26 Thread Stephen J. Butler
@transaction.atomic will only look at the default database. Since you're
using multiple ones I think you want something like:

@transaction.atomic(using=DB1)
@transaction.atomic(using=DB2)
def process_all():
# 

On Fri, Jun 26, 2015 at 10:27 AM, Lene Preuss  wrote:

> Hi,
>
> I want to write a large number of model instances to DB, in a
> multi-database setup. The way I am doing this is essentially:
>
> @transaction.atomic
> def process_all():
> for record in Model.objects.using(DB1).all():
> process_one(record)
>
> def process_one(record):
> do_something_with(record)
> record.save(using=DB2)
>
> The way I understand the docs (
> https://docs.djangoproject.com/en/1.8/topics/db/transactions/#controlling-transactions-explicitly)
> this should start a transaction when process_all() is entered, and commit
> it when process_all() is finished - so all records should be written at
> once. However, this is not what happens - no transaction is started, and
> all records are written to DB immediately.
>
> Neither ATOMIC_REQUESTS nor AUTOCOMMIT are touched in the settings. FWIW,
> I use a Postgres DB and Django 1.7.8. Also, if I replace the
> @transactions.atomic decorator with: with transactions.atomic() do: ...,
> that doesn't change anything.
>
> What am I missing?
>
> Thanks, Lene
>
> --
> 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/ef8c8919-6004-462b-93c4-f28fefa28e2b%40googlegroups.com
> 
> .
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxW1Y-gpeAOohdo2r2%3DKS4U9hX848tXwD4ZbiXCJQZASpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use sqlite for big project?

2015-06-26 Thread Alon Nisser
Using sqlite would bite you in many way, not really transactional for 
example, some features (such as certain variation of ```distinct```) not 
supported etc. Use Postgresql, If you find it hard to setup you can use RDS 
(that has amazon web services offer of postgresql) or heroku postgresql - 
both have a basic free tier and take care of all the setup for you.. 



On Thursday, June 25, 2015 at 5:08:32 PM UTC+3, Arindam sarkar wrote:
>
> i need to develop a job portal . is there any problem if i use sqlite ? 
> coz i am having problem to setup mysql or postgresql . please help.
>
> -- 
> Regards,
>
> Arindam
>
> Contact no. 08732822385
>
>
>  

-- 
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/9aae55d4-4c58-441a-949b-ebaac116396e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use sqlite for big project?

2015-06-26 Thread Thomas Lockhart

On 6/25/15 7:08 AM, Arindam sarkar wrote:
i need to develop a job portal . is there any problem if i use sqlite 
? coz i am having problem to setup mysql or postgresql . please help.
As others have suggested, use Postgres from the start. Spend a few 
minutes to understand the setup; it will be worth it.


Feel free to ask more specific questions if you continue to have trouble.

- Tom

--
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/558D9BFC.6030707%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help with e-library

2015-06-26 Thread memilanuk

On 06/26/2015 04:55 AM, Mane Said wrote:

Dear all ,,
I am new user for django and web programming

I want to program e-library application which basically have some field
related to books details and bar code
and finally some information about people who gone to use it


where is the best place to start
and if you have any ideas please share it



How complex it gets depends on how you want to go about it...

Take a look here:

http://www.databaseanswers.org/data_models/index.htm

...under 'Libraries' for some example models.


--
Shiny!  Let's be bad guys.

Reach me @ memilanuk (at) gmail dot 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/mmkh52%249i4%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.


Re: How To Activate Django Server.

2015-06-26 Thread Steve Burrus
I AM able to create a new virtual env. but I gfet this error message when I 
try to create a new project! Do i possibly have to start the DjANgo server 
first then try to create the new project? It's so dumb that I very recently 
knew how to do all of this fairly easily but not now. What am I doing wrong 
anyway?
 
"(myenv) C:\Users\SteveB\Desktop\myenv>python .\Scripts\django-admin 
startproject myproj
python: can't open file '.\Scripts\django-admin': [Errno 2] No such file or 
directory"




>
>
>

-- 
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/28ca5ec4-ca2f-40f1-b115-6dcc086a34b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

2015-06-26 Thread Henri
Some more details:

I'm using Django 1.6.
When I debug the site, I see that users.admin.CustomUserAdmin is scanned, 
when starting the App.
But when loading the UserChangeForm the 'get_fieldsets' method from 
django.contrib.auth.admin.UserAdmin is used.

The custom UserChangeForm looks kike this:

class UserChangeForm(forms.ModelForm):
 """A form for updating users. Includes all the fields on
 the user, but replaces the password field with admin's
 password hash display field.
 """
 password = ReadOnlyPasswordHashField(label=_("Password"),
 help_text=_("Raw passwords are not stored, so there is no way to see "
 "this user's password, but you can change the password "
 "using this form."))
 username = forms.CharField(label=_('nickname'), max_length=64,
 help_text=_('How do people call you?'))
 email = forms.EmailField(label=_('email address'), max_length=254)

 class Meta:
 model = User
 fields = '__all__'

 def __init__(self, *args, **kwargs):
 super(UserChangeForm, self).__init__(*args, **kwargs)
 f = self.fields.get('user_permissions', None)
 if f is not None:
 f.queryset = f.queryset.select_related('content_type')

 def clean_password(self):
 # Regardless of what the user provides, return the initial value.
 # This is done here, rather than on the field, because the
 # field does not have access to the initial value
 return self.initial["password"]

Somebody has an idea?

Regards,
Henri


Am Freitag, 26. Juni 2015 02:16:24 UTC+2 schrieb Henri:
>
> I'm using a custom user model and a custom UserAdmin.
> I try do overwrite the 'get_fieldsets' method to change some fields and 
> hide some others, bud django admin still uses the  'get_fieldsets' method 
> from django.contrib.auth.admin.UserAdmin.
>
> My CustomUserAdmin Class:
>
> from django.contrib.auth.admin import UserAdmin
> from users.models import User  # custom user model
>
>
> class CustomUserAdmin(UserAdmin):
>
> add_fieldsets = (
> (None, {
> 'classes': ('wide',),
> 'fields': ('email', 'username', 'password1', 'password2')
> }),
> )
>
> # The forms to add and change user instances
> form = UserChangeForm
> add_form = UserCreationForm
>
> # The fields to be used in displaying the User model.
> # These override the definitions on the base UserAdmin
> # that reference specific fields on auth.User.
> list_display = ('email', 'username', 'first_name', 'last_name', 
> 'is_active', 'is_staff',
> 'is_superuser')
> list_filter = ('is_active', 'is_staff', 'is_superuser')
> search_fields = ('email', 'first_name', 'last_name', 'username')
> ordering = ('email',)
> filter_horizontal = ('groups', 'user_permissions',)
>
>
> def get_fieldsets(self, request, obj=None):
> if not obj:
> return self.add_fieldsets
>
> if request.user.is_superuser and request.user.pk != obj.pk:
> perm_fields = ('is_active', 'is_staff', 'is_superuser',
>'groups', 'user_permissions')
> else:
> perm_fields = ('is_active', 'is_staff', 'groups')
>
> return [(None, {'fields': ('email', 'password')}),
> (_('Personal info'), {'fields': ('first_name', 'last_name'
> , 'username', 'biography')}),
> (_('Permissions'), {'fields': perm_fields}),
> (_('Important dates'), {'fields': ('last_login', 
> 'date_joined')})]
>
>
> admin.site.register(User, CustomUserAdmin)
>
> Some body have an idea, whats going on?
> I'm working on this for days.
> 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/be0b1c0b-bc31-4ddb-ba5f-42b428a925e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How To Activate Django Server.

2015-06-26 Thread Javier Guerra Giraldez
On Fri, Jun 26, 2015 at 4:56 PM, Steve Burrus  wrote:
> I AM able to create a new virtual env. but I gfet this error message when I
> try to create a new project!


have you installed django in this virtualenv?

-- 
Javier

-- 
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/CAFkDaoTqQ26wA9up0mTA1Y0A7UHKC-cKWXwBCA%3DBAoUscSTRCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django 1.4 (LTS) end of life?

2015-06-26 Thread Ned Horvath
Originally 1.4 was supposed to end support with the release of 1.8; earlier 
this year that was extended 6 months to October 1, 2015. But as of 
yesterday, the revised roadmap shows 1.9 planned for "December" rather than 
the previous target of October 2.

I don't know whether to pressure the developers I support at UT Austin to 
get off 1.4 by October 1, or if 1.4 support was implicitly tied to the 
release of 1.9 and has therefore been extended a couple of months. I'm 
happy with either answer, I just want to know how hard to push!

Any guidance from the Django committers gratefully accepted.

Ned Horvath
Python Production Environment lead
UT Austin

-- 
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/25e38e88-0986-43da-9cc5-362bd0e1bb31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 想用中文说清楚:我在远程工作机服务器上建立了django框架,想启动web server ,启动成功,但是无法打开127.0.0.1:8000 ,中间端口转接该怎么做

2015-06-26 Thread Alvie Zhang
你得确认你的机器能否访问A2,如果不能的话,就不太好弄了。如果能,按照楼上的说法,startserver时指定参数 
0.0.0.0:8000,然后在浏览器输入A2的IP:8000就能访问了。
猜测贵司是通过登录类似堡垒机之类的登录服务器吧,我所在公司只有登录线上服务器才会这么干...

在 2015年6月11日星期四 UTC+8下午8:33:06,dur...@corp.netease.com写道:
>
> 我在远程工作机服务器上建立了django框架,想启动web server ,启动成功,但是无法打开127.0.0.1:8000 
> ,中间端口转接该怎么做?
> 我用pc在办公室登录远程服务器A1,通过中转机A1登录到服务器A2,在A2上搭建了django框架,启动web服务器,想要打开http://
> 127.0.0.1:8000的web界面,总是没办法打开。这种情况该怎么处理
>

-- 
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/ff9522b4-033b-42aa-bf54-3060d0bf1842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How To Activate Django Server.

2015-06-26 Thread Steve Burrus
we;ll here is the error message that I get when I try to install django in
the virtual env. :
"C:\Users\SteveB\Desktop\myenv>.\Scripts\activate
(myenv) C:\Users\SteveB\Desktop\myenv>pip install django
Fatal error in launcher: Job information querying failed"
What's the problem anyway?



On Fri, Jun 26, 2015 at 5:49 PM, Javier Guerra Giraldez 
wrote:

> On Fri, Jun 26, 2015 at 4:56 PM, Steve Burrus 
> wrote:
> > I AM able to create a new virtual env. but I gfet this error message
> when I
> > try to create a new project!
>
>
> have you installed django in this virtualenv?
>
> --
> Javier
>
> --
> 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/W_41qowiu8k/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/CAFkDaoTqQ26wA9up0mTA1Y0A7UHKC-cKWXwBCA%3DBAoUscSTRCw%40mail.gmail.com
> .
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABcoaSDu0MfXm%2BUHheYOZNEAi0BnL7S%3Dcyd0zCd211TMh0Twbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.