It seems you don't have any groups in your database with the name "test"

On Wed, Nov 11, 2015 at 7:14 PM, Robin Fourcade <[email protected]>
wrote:

> Hi,
> I'm working with the auth library.
>
> I've imported all of these:
>
> from django.shortcuts import render, redirect
> from pizza_club_order.forms import *
> from pizza_club_order.models import *
> from django.contrib import auth
> from datetime import timedelta, date, datetime, time
>
> But when I'm trying to do this:
>
> auth.models.Group.objects.get(name='test')
>
>
> Here's the error I get:
>
>
> Traceback (most recent call last):
>
>   File "<console>", line 1, in <module>
>
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
> 127, in manager_method
>
>     return getattr(self.get_queryset(), name)(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
> line 334, in get
>
>     self.model._meta.object_name
>
> DoesNotExist: Group matching query does not exist.
>
>
> Can someone help me ?
>
>
> Thanks,
>
> Robin.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/c4a83bd3-b32a-49cf-9e7e-65c819d143eb%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c4a83bd3-b32a-49cf-9e7e-65c819d143eb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
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/CALn3ei3YCCkVKzBjrbgDWDLTyQCsy38jwge1Ar0kAp87shQ-KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to