In one of my views I am importing models from two apps: from mysite.business.models import Location from mysite.directory.models import Location
I have a user registration form that has a \"password\" and \"confirm password\" field. When I add \"min_length\" to my password field and then run the submitted data through my custom clean_confirm_p
I have a database with a name column having data like \'Very big News\' \'News\' \'something else\' \'New Nes\'
I have a data model in django called MainData which was created on top of a table called \"my_data\".
after running \"python manage.py syncdb\" i gett an error saying \"unable to open database file\". here is the important part from my settings.py:
I am making a Django Model decorator which takes a Django model and gives it a few extra methods. Django creates the database name for this Model using: \'%s_%s\' % (app_name, class_name). When you d
I have the following models: class Order_type(models.Model): description = models.CharField() class Order(models.Model):
From the official documentation I can\'t understand what is default parameter. obj, created = Person.objects.get_or_create(first_name=\'John\', last_name=\'Lennon\',
I\'m finding conflicting information on whether to use OneToOneField(User) or ForeignKey(User, unique=True) when creating a UserProfile model by extending the Django User model.
i have the next models class Region(models.Model): nombre = models.CharField(max_length=25) class D开发者_StackOverflow中文版epartamento(models.Model):