def save(self): from microblogging.utils import get_twitter_password update_other_services( self.user, twitter_user=self.cleaned_data["username"], twitter_password=get_twitter_password( settings.SECRET_KEY, self.cleaned_data["password"]), )
def generate(): for user in User.objects.all(): account, created = Account.objects.get_or_create( user=user, defaults=dict( timezone=random.choice(COMMON_TIMEZONE_CHOICES)[0], language=random.choice(settings.LANGUAGES)[0], ), ) update_other_services(user, **dict(blogrss=random.choice(RSS_FEEDS), )) print "Created User Account: %s" % (account, )
def generate(): for user in User.objects.all(): account, created = Account.objects.get_or_create(user = user, defaults=dict( timezone = random.choice(COMMON_TIMEZONE_CHOICES)[0], language = random.choice(settings.LANGUAGES)[0], ), ) update_other_services(user, **dict( blogrss=random.choice(RSS_FEEDS), )) print "Created User Account: %s" % (account,)
def save(self): from microblogging.utils import get_twitter_password update_other_services(self.user, twitter_user = self.cleaned_data["username"], twitter_password = get_twitter_password(settings.SECRET_KEY, self.cleaned_data["password"]), )