title: django signals, the right way
body: <p>okay, i have a generic question .. I want to have my models.py very clean ... no other stuff other than declaring the models.</p>
  
  <p>lets say i have this as models.py</p>
  
  <pre><code>class UserProfile(models.Model:
      user = models.OneToOneField(User, related_name='profile')
      #other stuff
  </code></pre>
  
  <p>and this is my signals.py</p>
  
  <pre><code>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>how do i go about telling my application that this is my signals file? .. do i have to declare them in my models.py?</p>
  
  <p>//mouse</p>