title: How to create an object for a model from the console similar to how Django made the createsuperuser command
body: <p>I'm trying to create an object from the console but not sure how to set that up.
  This is my modelManager:</p>
  
  <pre><code>class MajorManager(models.Manager):
  
  def __str__(self):
      return self.name 
  
  def createMajor(self, name):
      try:
          name = name.lower()
          major = self.create(name=name)    
      except IntegrityError:
          print("This major has already been created")
  </code></pre>
  
  <p>And here is the model:</p>
  
  <pre><code>class Majors(models.Model):
  name = models.CharField(max_length=30, unique=True)
  objects = MajorManager()
  </code></pre>
  
  <p>Any help would be much appreciated.</p>