title: Why do I need the DJANGO_SETTINGS_MODULE set?
body: <p>Every time I log on to my server through SSH I need to type the following:</p>
  
  <pre><code>export DJANGO_SETTINGS_MODULE=settings
  </code></pre>
  
  <p>if I do not any usage of the manage.py module fails</p>
  
  <p>My manage.py has the following added code:</p>
  
  <pre><code>if "notification" in settings.INSTALLED_APPS:
      from notification import models as notification
  
      def create_notice_types(app, created_models, verbosity, **kwargs):
          notification.create_notice_type("friends_invite", _("Invitation Received"), _("you have received an invitation"))
          notification.create_notice_type("friends_accept", _("Acceptance Received"), _("an invitation you sent has been accepted"))
  
      signals.post_syncdb.connect(create_notice_types, sender=notification)
  else:
      print "Skipping creation of NoticeTypes as notification app not found"
  </code></pre>
  
  <p>Any ideas?</p>