Hi,
I am using django 1.5 and want to add an extra
field to the django user class.
The documentation says that i have to subclass AbstractUser
and add extra fields to it.
So i tried it, in my app 'news' i have:
from django.contrib.auth.models import AbstractUser
class cpUser(AbstractUser):
On Fri, Nov 02, 2012 at 04:59:35PM +0800, Russell Keith-Magee wrote:
> Can you run:
>
> ./manage syncdb --traceback
>
> so we can get the full context of the error message?
>
Sure, here it is:
:~/www/project$ python manage.py syncdb --traceback
Traceback (most recent call last):
File "/usr/l
On Fri, Nov 02, 2012 at 10:15:11AM +0100, Raffaele Salmaso wrote:
> did you forget to include
> from django.conf import settings
> in /home/michael/www/project/news/models.py?
>
> --
> | Raffaele Salmaso
Yep, adding it did it :)
Thanks to both of you!
--
Michael
--
You received this message b
Hi again,
I have a subclass from AbstractUser
1 from django.contrib.auth.models import AbstractUser
2 from django.conf import settings
3
4 class cpUser(AbstractUser):
5 twitter = models.CharField(max_length=100)
6 def __unicode__(self):
7 return self.username
and
AUTH_USER_MODEL
Hi,
a few days ago i decided to stop using the django-comments framework,
i removed the entry from settings.py and deleted the tables in my database.
Now if i want to delete an user via the admin interface i get an error
in my apache/error log (see below)
The strange thing is, if i'm using the
On Thursday 18 April 2013 10:21:35 Richard Jelte wrote:
> There are a lot of different places where that can be coming from (anywhere
> that's trying to import django_comments for example).
>
> Try doing an ack-grep in your repo for any mention of django_comments that
> you might have missed when
On Thursday 18 April 2013 22:04:11 Michael Muster wrote:
> Hi,
>
> I don`t know what ack-grep does, but i think
>
> find . -type f | grep django_comments
>
> should be something similar.
Sorry, this should be:
find . -type f -exec grep -l "django
Sorry for spamming, but after removing
another entry from views.py and restarting apache
it works,
Thanks for your help!
On Thursday 18 April 2013 22:26:10 Michael Muster wrote:
> On Thursday 18 April 2013 22:04:11 Michael Muster wrote:
> > Hi,
> >
> > I don`t know what
Hi there,
I want to collect some statistics about a card game.
So i have three models in my app:
Player = holds the player data
Hand = the data for one round
Partie = The data for a complete game
class Player(models.Model):
name = models.CharField(max_length=200, unique=True)
color = m
9 matches
Mail list logo