title: django: create user profile for existing users automatically
body: <p>I added a new UserProfile Model to my project today.</p>
  
  <pre><code>class UserProfile(models.Model):
      user = models.OneToOneField(User)
      ...
  
      def __unicode__(self):
          return u'Profile of user: %s' % (self.user.username)
  
      class Meta:
          managed = True
  
  def create_user_profile(sender, instance, created, **kwargs):
      if created:
          profile, created = UserProfile.objects.get_or_create(user=instance)
  
  post_save.connect(create_user_profile, sender=User)
  </code></pre>
  
  <p>The above code will create a user profile for each new created user. </p>
  
  <p>But how to create the user profile for each existing user <strong>automatically</strong>?</p>
  
  <p>Thanks</p>