DEV Community

Cover image for Creating Custom CMS In Django | Django CMS Building By shriekdj
Shrikant Dhayje
Shrikant Dhayje

Posted on • Edited on • Originally published at codewithshriekdj.netlify.app

Creating Custom CMS In Django | Django CMS Building By shriekdj

So I Thought about creating the Custom CMS and Update it's feature day by day as per need.

For Example Firstly I just added blog app in django project named dj_admin.
And Created Very Simple Model LIke

from django.db import models

# Create your models here.
class Post(models.Model):
    title = models.CharField(verbose_name='title', max_length=255, null=False)
    content = models.TextField(verbose_name='content', null=False, blank=True)
Enter fullscreen mode Exit fullscreen mode

after some time I added 3 fields like created_at, published_at and updated_at where created_at is mandatory and auto created Model Then updated like this.

from django.db import models

# Create your models here.
class Post(models.Model):
    title = models.CharField(verbose_name='title', max_length=255, null=False)
    content = models.TextField(verbose_name='content', null=False, blank=True)
    created_on = models.DateTimeField(auto_now=True, auto_created=True, null=False, blank=False)
    published_on = models.DateTimeField(null=True)
    updated_on = models.DateTimeField(null=True)
Enter fullscreen mode Exit fullscreen mode

I Created The GitHub Repo for the Project And It's Django Project Code Will Be Under src directory.

shriekdj_cms build in django






I will be adding features to it day by day to make it blog.

Top comments (5)

Collapse
 
faizan711 profile image
Faizan

I want to build one using Next.js
Can you help me a bit?

Collapse
 
shriekdj profile image
Shrikant Dhayje

I can try to help you

Collapse
 
faizan711 profile image
Faizan

Can we connect on any platform like discord to chat?

Thread Thread
 
shriekdj profile image
Shrikant Dhayje • Edited

@faizan711 you can connect me via discord or twitter then, on both platform my username is shriekdj. mostly on discord

Thread Thread
 
shriekdj profile image
Shrikant Dhayje

@faizan711 you can dm me whenever you like i will try to response ASAP