Coding the same project twice at the same time with Django and Wagtail to compare | Tutorial

preview_player
Показать описание
In this live coding adventure we code two blog websites at the same time. We use Django for one and Wagtail for the other. Wagtail is a content management system (CMS) built on top of Django so essentially we use the Django for both 😅. Nonetheless, we discover how much easier and more convenient it can be to use Wagtail when a content management system is required.

Chapters:
00:00 - I think you will want to give Wagtail CMS try!
00:20 - What we'll do.
00:44 - Create project directories
01:32 - Create Venv ( virtual environments for both projects )
02:07 - Install Django then Install Wagtail
02:50 - generate site ( wagtail start command and Django admin start project )
03:20 - comparing Django and Wagtail project scaffolding
05:20 - create blog apps ( start app command )
07:14 - make migrations
07:42 - run servers on different ports
09:36 - create models in Django Project
11:55 - define models in wagtail project ( extend wagtails page model )
12:56 - Wagtail's Richtext Field
13:52 - access wagtail CMS ( create superuser )
15:13 - Wagtail CMS Login Page
15:53 - Add Category through Wagtail CMS admin
16:55 - Wagtail Child Page
17:50 - Wagtail's Content Panels | fieldpanel - to make fields appear in backend
19:40 - Create Wagtail template for blog post
25:40 - Create Category Template in Wagtail Project
32:15 - verbose name plural ( category model )
34:30 - create views
37:12 - create templates in Django project
40:00 - configure urls in Django project
46:43 - Comparing the projects we made with Django and Wagtail
48:00 - count lines of code and compare

-----

If you're considering hosting your app on DigitalOcean, it’d be awesome if you used my referral link! You'll get $200 in free credits, and I'll get $25.

#django #wagtail #backend #python #coding #webdev
Рекомендации по теме
Комментарии
Автор

Piko fantastici :)
23:55 :) Can we use id instead of class here, cause <body> is pretty unique tag and hash css selectors are faster than dot selectors?
Would also be great to know your VSCode setup. I like some completion features you have there for rich text.
Your videos are really great.

do_not_put_login_in_alias
Автор

This so helpful !!! continue shining like you are 💫💫💫👌👌👌

tazi-ali
Автор

Я подумал что ты начнешь сравнивать минимальный функционал wagtail и django со всеми установленными приложениями taggit, mptt, skeditor или tinyMCE, filebrowser, imagegalery. С твоей энергией это осуществимо))). И в Сибири холодно только зимой, летом там жарко и сухо. Привет с озера Байкал. Улан-Удэ. Приезжай обязательно. Приглашаю.

mineevburyat
Автор

OMG. I'm thrilled with the energy.

jitvimol
Автор

thank you very much, it's very hard to find wagtail tutorial.

jpongthep
Автор

Thanks a lot! Greetings from Paraguay

moisesvillalba
Автор

We live in the Urals, which is very close to Siberia. So welcome.
Of course this is a joke))))

mandozor
welcome to shbcf.ru