Re: FW:
Sorry for this everyone. My password wasn't strong enough. I've updated it now. Ian On 04/05/13 03:36, Kurtis Mullins wrote: Phishing Web Site (SPAM) On Sat, Apr 6, 2013 at 9:10 PM, Ian Foote <i...@feete.org <mailto:i...@feete.org>> wrote: Snip -- 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 <mailto:django-users%2bunsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto: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. -- 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.
FW:
http://kyokushin-aoki.sakura.ne.jp/www/tvojdi.php -- 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: Stuck
Others have commented on your indentation. You also have a typo: votes = models.IntergerField() should be: votes = models.IntegerField() Regards, Ian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Authenticate User with Django 1.5
On 15/12/12 11:18, sebastien.mor...@gmail.com wrote: Hi, i've an authenticate problem with Django 1.5 All informations are herehttp://stackoverflow.com/questions/13883539/authenticate-with-django-1-5 but i'll resume the situation : I've a custum user model which looks like : class User(AbstractBaseUser): email = models.EmailField(unique=True) activation_key = models.CharField(max_length=255) is_active = models.BooleanField(default=False) is_admin = models.BooleanField(default=False) objects = UserManager() USERNAME_FIELD = 'username' The probleme is that user = authenticate(username=email, password=password) gives me None as return. According to the doc, authenticate takes an usersname, not an email as arg. But how can i use authenticate because my User model desn't support Username. Is there a solution with Django 1.5 ? Have you tried changing USERNAME_FIELD to 'email'? Ian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
django registration custom backend
Hi, I'm trying to write a custom backend for django registration. (http://docs.b-list.org/django-registration/0.8/backend-api.html) I'm using python 2.7 and django 1.4. What I want is for an existing user with suitable permissions to be able to register accounts for new users. The new user will get an email with an activation link, which will redirect the new user to a form where they set a password for their account. I do not want the existing user to be required to set a password manually for the new user to change once they first log in. This is what I have so far: from django.conf import settings from django.contrib.sites.models import RequestSite from django.contrib.sites.models import Site from django.contrib.auth import login from registration import signals from registration.models import RegistrationProfile from registration.backends.default import DefaultBackend class CustomBackend(DefaultBackend): def register(self, request, **kwargs): username, email = kwargs['email'], kwargs['email'] # username is email address password = '' # User will have no password set. if Site._meta.installed: site = Site.objects.get_current() else: site = RequestSite(request) new_user = RegistrationProfile.objects.create_inactive_user( username, email, password, site) signals.user_registered.send(sender=self.__class__, user=new_user, request=request) return new_user def activate(self, request, activation_key): activated = RegistrationProfile.objects.activate_user( activation_key) if activated: login(request, activated) signals.user_activated.send(sender=self.__class__, user=activated, request=request) return activated def post_activation_redirect(self, request, user): return ('set_password', (), {}) Unfortunately, when I try to log the new user in during account activation, I get an AttributeError: 'User' object has no attribute 'backend' I know this is because I'm not calling authenticate before login, but authenticate (https://docs.djangoproject.com/en/1.4/topics/auth/#django.contrib.auth.authenticate) requires a password, which I don't want to set at this stage. I want the user to be logged in when they are redirected to the set_password form. Advice would be appreciated. Regards, Ian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Email new users account details
I'm working on a small website for a small walking/mountaineering club. We would like to create accounts for our members using the admin site, and automatically email their details. I've googled a bit, but it isn't obvious to me if I can do this. Ideally, we would add a username (email address) and email the user a random password which they change when they first log in. Is this a sensible approach, and how can I do this? Thanks, Ian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.