Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Bayo Izekor
please explain what you want to achieve for better support On Fri, Aug 12, 2022 at 4:57 PM Gav O'Connor wrote: > You can create a data migration using the `--empty` switch. See the docs: > https://docs.djangoproject.com/en/4.1/topics/migrations/#data-migrations > > On Thursday, 11 August 2022 at

Re: Dynamic creation of pages

2023-10-26 Thread Bayo Izekor
# models.py from django.db import models class Title(models.Model): name = models.CharField(max_length=100, unique=True) # Add other fields as needed # views.py from django.shortcuts import render, get_object_or_404 from .models import Title def title_page(request, title_id): title =