1. python manage.py createsuperuser2. admin.pyadmin.site.register(PostModel) 3. how render this model in adminfirst of all, you need to create superuser id then, you can check the content field which is providing the null value but, the title is not allowed null.also, verbose_name is used in meta concept like below.check this out models.py 4. meta
IT study/python
2018. 5. 18. 20:56
1. make appwhat data comes in that blog is real- blog post migrate : db changed . runs them class Post(models.model):which means we're writing a python class that inherits everything from the Django models.modelsame thing is from django.db.models import Modelclass Post(Model): - model.py
IT study/python
2018. 5. 18. 19:08