- Django Project Blueprints
- Asad Jibran Ahmed
- 195字
- 2021-07-16 10:37:44
Chapter 1. Blueblog – a Blogging Platform
We are going to start with a simple blogging platform in Django. In recent years, Django has emerged as one of the clear leaders in web frameworks. When most people decide to start using a web framework, their searches lead them to either Ruby on Rails (RoR) or Django. Both are mature, stable, and extensively used. It appears that the decision to use one or the other depends mostly on which programming language you're familiar with. Rubyists go with RoR, Pythonistas go with Django. In terms of features, both can be used to achieve the same results, although they have different approaches to how things are done.
One of the most popular blogging platforms these days is Medium, widely used by a number of high profile bloggers. Its popularity stems from its elegant theme, and simple-to-use interface. I'll walk you through creating a similar application in Django, with a few surprise features that most blogging platforms don't have. This will give you a taste of things to come, and show you just how versatile Django can be.
Before starting any software development project, it's a good idea to have a rough roadmap of what we would like to achieve. Here's a list of features that our blogging platform will have:
- User should be able to register an account and create their blogs
- Users should be able to tweak the settings of their blogs
- There should be simple interface for users to create and edit blog posts
- Users should be able to share their blog posts on other blogs on the platform
I know this seems like a lot of work, but Django comes with a couple of contrib
packages that speed up our work considerably.
The contrib packages
The contrib
packages are a part of Django that contain some very useful applications that the Django developers decided should be shipped with Django. The included applications provide an impressive set of features, including some that we'll be using in this application:
- Admin is a full featured CMS that can be used to manage the content of a Django site. The Admin application is an important reason for the popularity of Django. We'll use this to provide an interface for site administrators to moderate and manage the data in our application
- Auth provides user registration and authentication without requiring us to do any work. We'll be using this module to allow users to sign up, sign in, and manage their profiles in our application
- Learning OpenDaylight
- 精通Linux內(nèi)核開發(fā)
- 嵌入式應(yīng)用程序設(shè)計(jì)綜合教程(微課版)
- Windows Vista融會(huì)貫通
- Linux操作系統(tǒng)應(yīng)用編程
- Windows 7使用詳解(修訂版)
- Hands-On GPU Programming with Python and CUDA
- Linux網(wǎng)絡(luò)操作系統(tǒng)項(xiàng)目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- 嵌入式微系統(tǒng)
- 鴻蒙HarmonyOS應(yīng)用開發(fā)入門
- iOS Programming Cookbook
- 計(jì)算機(jī)操作系統(tǒng)(第3版)(微課版)
- Administering ArcGIS for Server
- 微信小程序項(xiàng)目開發(fā)實(shí)戰(zhàn):用WePY、mpvue、Taro打造高效的小程序
- Modern Python Cookbook