I am new to django and having an issue with integrating the Django auth
model directly in apps' models by referring to it as:
class Question(models.Model):
question_text = models.CharField(max_length=200, blank=False)
pup_date = models.DateField('date_published',auto_now=True)
author = models.ForeignKey(User, on_delete=models.CASCADE)
But when trying to run python manage.py makemigrations
it gives the following error
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
2) Quit, and let me add a default in models.py
So would you please help me in this, I don't need to create a custom User model.
regards