Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Implementing Search functionality in your Django website
Most of the time, the reason for me to visit a particular website is to look up something and without a search option on the website, it will be a whole mess for me. I know you will say the same too. So to make our website more appealing and easy to ... -
URL designing and URL kwargs in Django
A clean URL is really important for a good quality web application. You can design your own URL style i.e url can contain / or - anything there is no restriction but these are the things i follow (some examples), /profile// instead of /pro... -
Django Setup, Architecture and Hello World
Installing python First of all, Python is required. Python is high level, interpreted general purpose programming language. Install Python on your system from Official Python Download We will not cover in depth about python in this series, but let ... -
Xử lý file trong Django
Đối tượng File Lớp File class File(file_object, name=None) Lớp File là lớp bao đối tượng file của Python với một số bổ sung được cung cấp bởi Django. Ở bên trong, Django sử dụng lớp này khi cần biểu diễn một file. Đối tượng File có thêm những thuộc ... -
Quản lý file đã upload trong Django
Theo mặc định, Django lưu trữ các file cục bộ bằng cách sử dụng các cài đặt MEDIA_ROOT và MEDIA_URL. Sử dụng các file trong model Khi bạn sử dụng một FileField hoặc ImageField, Django cung cấp một tập các API bạn có thể sử dụng để làm việc với file n... -
Đối tượng File trong Django Model
Lớp cơ sở File Lớp File là một lớp bao của một đối tượng file của Python với một vài bổ sung của Django. Ở đằng sau, Django sử dụng lớp này để biểu diễn một file. Tât cả các đối tượng File trong Django có những thuộc tính và phương thức sau: name Tên... -
Upload file trong Django
Khi Django xử lý tải lên tệp, dữ liệu tệp sẽ được đặt vào request.FILES. Bài viết này giải thích cách tệp được lưu trữ trên đĩa và trong bộ nhớ cũng như cách tùy chỉnh hành vi mặc định. Cơ bản Xét một form có chứa một trường FileField: # forms.py fr... -
SaaS Pegasus - Cory Zue
Cory Zue personal websiteDimagiCommCare: Open Source Django AppSaaS Pegasus: Django SaaS BoilerplateModern JavaScript for Django DevelopersAymeric Augustin: 3-Part Series on React and DjangoTop 5 3rd Party PackagesBtn.devSupport the ShowThis podcast does not have any ads or sponsors. To support the show, please consider visiting LearnDjango.com, Button, or Django News. -
How to config HMR with Webpack and Django
Learn to make webpack-dev-server work smoothly with Django and config Hot Module Replacement (HMR) -
How to config HMR with Webpack and Django
Learn to make webpack-dev-server work smoothly with Django and config Hot Module Replacement (HMR) -
Các trường của form
Khi bạn tạo một form trong Django, phần quan trọng nhất là định nghĩa các trường của form này. Mỗi trường có một lôgic xác thực tùy chỉnh cùng với một số hook khác. Mặc dù cách chính bạn sử dụng trường là trong ngữ cảnh một form, bạn cũng có thể khởi... -
Các thuộc tính cơ bản của form và field
Form ràng buộc và không ràng buộc Một thực thể Form có thể bị ràng buộc với tập dữ liệu hoặc không bị ràng buộc. Nếu nó bị ràng buộc với một tập dữ liệu, nó có khả năng xác thực dữ liệu này và render như một HTML form có hiển thị dữ liệu. Nếu không ... -
Làm việc với form trong Django
Trừ khi bạn dự định xây dựng các trang web và ứng dụng không làm gì khác ngoài xuất bản nội dung và không chấp nhận đầu vào từ khách truy cập của bạn, bạn sẽ cần phải hiểu và sử dụng các form. Django cung cấp một loạt các công cụ và thư viện giúp bạn... -
What's the best thing about working for Octopus Energy?
On November 16, 2020, I started my first day of employment at Octopus Energy. Here's why I love working there. The Tech Stack The entire tech stack is built on things I know. Python, Django, AWS, and modern JavaScript frameworks. It's been implemented in a very solid way, managing to be both conservative in approach yet innovative in design. While my previous experience has proven useful, I've had the chance to learn new and exciting things. Examples of things I've learned: Hashistack on AWS React & Next.js Yet when I think about it, the tech stack isn't the best thing about working for Octopus. I can find the same tech stack in a thousand other organizations. The People It's always a delight to work with bright, positive-minded people who share your excitement for a job or cause. I like being around people who know things I do not, for no other reason than I can learn by osmosis. I enjoy being around them, and can't wait to meet them as the pandemic fades away. I also am amazed by the same treatment across different groups within the organization. No group or division is looked down on, be they software engineering, … -
Quản lý file tĩnh trong Django
django.contrib.staticfiles thu thập các file tĩnh từ mỗi ứng dụng của bạn (và bất cứ nơi nào khác mà bạn chỉ định) vào một vị trí duy nhất có thể dễ dàng phục vụ khi triển khai dự án lên máy chủ. Các cài đặt STATIC_ROOT Mặc định: None Đường dẫn tuy... -
Class-Based Views(CBV) vs Function Based Views(FBV) in Django
When exploring the views file in a Django project, it might seem difficult for a beginner to decide whether to use the Class-Based Views or the Function Based Views. In this article, I will try to deliver the differences between these two. NOTE: Fo... -
Learning Backend WebDev, Log #3 - Cross Site Request Forgery
Wasn’t quite well today, so took it slow. Read more… (1 min remaining to read) -
Learning Backend WebDev, Log #3 - Cross Site Request Forgery
Wasn’t quite well today, so took it slow. Read more… (2 min remaining to read) -
Các hành động trong Django Admin
Quy trình làm việc cơ bản trong Django Admin là "chọn một đối tượng, sau đó thay đổi nó". Tuy nhiên nếu bạn cần thực hiện cùng một thay đổi cho nhiều đối tượng cùng lúc, quy trình làm việc này có vẻ khá tẻ nhạt. Trong những trường hợp này, Django Adm... -
Sử dụng AdminSite cơ bản
Toàn bộ trang quản trị của Django được biểu diễn bởi một thực thể của django.contrib.admin.sites.AdminSite; mặc định, một thực thể của lớp này đã được tạo là django.contrib.admin.site và bạn có thể sử dụng nó làm AdminSite mặc định để đăng ký các mod... -
Django: How to Set-Up Environmental Variable
What is an Environment variable? For Django projects or apps, An Environment variable is a value that can affect the running processes of a Django app. They are part of the dependencies that initiates enable the continuous running of a Django App. En... -
So you messed up. Now what?
You’ve made and committed to a timeline, but your estimate was wrong. The timeline’s going to slip. Now what? -
What's the best thing about working for Octopus Energy?
On November 16, 2020, I started my first day of employment at Octopus Energy. Here's why I love working there. The Tech Stack The entire tech stack is built on things I know. Python, Django, AWS, and modern JavaScript frameworks. It's been implemented in a very solid way, managing to be both conservative in approach yet innovative in design. While my previous experience has proven useful, I've had the chance to learn new and exciting things. Examples of things I've learned: Hashistack on AWS React & Next.js Yet when I think about it, the tech stack isn't the best thing about working for Octopus. I can find the same tech stack in a thousand other organizations. The People It's always a delight to work with bright, positive-minded people who share your excitement for a job or cause. I like being around people who know things I do not, for no other reason than I can learn by osmosis. I enjoy being around them, and can't wait to meet them as the pandemic fades away. I also am amazed by the same treatment across different groups within the organization. No group or division is looked down on, be they software engineering, … -
What's the best thing about working for Octopus Energy?
On November 16, 2020, I started my first day of employment at Octopus Energy. Here's why I love working there. The Tech Stack The entire tech stack is built on things I know. Python, Django, AWS, and modern JavaScript frameworks. It's been implemented in a very solid way, managing to be both conservative in approach yet innovative in design. While my previous experience has proven useful, I've had the chance to learn new and exciting things. Examples of things I've learned: Hashistack on AWS React & Next.js Yet when I think about it, the tech stack isn't the best thing about working for Octopus. I can find the same tech stack in a thousand other organizations. The People It's always a delight to work with bright, positive-minded people who share your excitement for a job or cause. I like being around people who know things I do not, for no other reason than I can learn by osmosis. I enjoy being around them, and can't wait to meet them as the pandemic fades away. I also am amazed by the same treatment across different groups within the organization. No group or division is looked down on, be they software engineering, … -
What's the best thing about working for Octopus Energy?
On November 16, 2020, I started my first day of employment at Octopus Energy. Here's why I love working there. The Tech Stack The entire tech stack is built on things I know. Python, Django, AWS, and modern JavaScript frameworks. It's been implemented in a very solid way, managing to be both conservative in approach yet innovative in design. While my previous experience has proven useful, I've had the chance to learn new and exciting things. Examples of things I've learned: Hashistack on AWS React & Next.js Yet when I think about it, the tech stack isn't the best thing about working for Octopus. I can find the same tech stack in a thousand other organizations. The People It's always a delight to work with bright, positive-minded people who share your excitement for a job or cause. I like being around people who know things I do not, for no other reason than I can learn by osmosis. I enjoy being around them, and can't wait to meet them as the pandemic fades away. I also am amazed by the same treatment across different groups within the organization. No group or division is looked down on, be they software engineering, …