#68 – This week in Django

Scale Continuous Delivery for Your Enterprise?

GoCD is a Continuous Delivery tool allowing you to model, orchestrate, and visualize complex workflows. Our enterprise offering provides plugins and professional support to help your scale CD in your organization. Check out GOCD’s enterprise features and performance upgrades now!

advert

10 tips for making the Django Admin more secure

Don’t take chances with app security. Here’s how to protect your users.

admin

From Symfony to Django – Joey Masip Romeu

Lately I’ve been playing with Django (in a real project, not tutorials) and all I have to say is… Oh My God!! I’m so impressed with Django’s clarity, speed of development and “cleanliness”, that I’m even planning for it to become my main ‘go-to’ framework! Don’t get me wrong, I’ve been working with Symfony for a few years and it’s still going to be the main framework I use for PHP projects, and probably the most comfortable I’ll feel working with for a while, but right now Django is like a new toy and I’m really excited to share this with you!

php

Implemementing Manual Schema with Django REST Framework

This is what will hopefully be the first in a series of reference articles for using Core API libraries with Django REST Framework (DRF). This is an extraction from an existing production view running Django 1.11/2.0 on Python 3.6. The original code did something else, but for contract reasons I’m demonstrating this code with sending email. Please note that this article is very terse, with almost no description, no tests, and no URL routing. Just enough code so that if you have a decent understand of DRF, you can make custom views work with Core API.

DRF

How to Implement Dependent/Chained Dropdown List with Django

Dependent or chained dropdown list is a special field that relies on a previously selected field so to display a list of filtered options. A common use case is on the selection of state/province and cities, where you first pick the state, and then based on the state, the application displays a list of cities located in the state.

filter

Compare your DevOps progress to your peers ?

How Do You Compare? Compare yourself to over 1,000 DevOps peers to see how they manage their processes.

advert

Django security releases issued: 2.0.2 and 1.11.10

In accordance with our security release policy, the Django team is issuing Django 1.11.10 and Django 2.0.2. These release addresses the security issue detailed below. We encourage all users of Django to upgrade as soon as possible.

security

9 Django Tips for Working with Databases – Haki Benita – Medium

ORMs offer great utility for developers but abstracting access to the database has its costs. Developers who are willing to poke around the database and change some defaults often find that great improvements can be made. In this article I am going to share 9 tips for working with databases in Django.

tips

Creating a Django migration for a GiST / GIN index with a special index operator.

In order to add a GiST index on a Postgres database that could be used to accelerate trigram matches using the pg_trgm module and the special gist_trgm_ops operator, I had to code up a special Django Index. Django will hopefully soon support custom index operators, but if you need the functionality right now, this example will do the trick.

postgres

Your Django Story: Cristina Motinha Martins

djangogirls

DRF with Marshmallow Serializers for Fun and Profit

Django Rest Framework (DRF) is a fantastic tool for API development in Django. However, it does have some downsides. Serializers are an especially heavy part of the framework. Rightfully so, they do quite a bit of magic to make API development lightning quick by automatically pulling fields from your Django Models and applying all the database validation. Another downside is that you are forced to declare what fields you want to serializer in the class definition. This typically means you include everything if you want to reuse the same endpoint, or you have to create separate serializers for different views.

DRF

Django Migrations: A Primer

Migrations in Django are a way of propagating changes made in the model into the database schema.

migrations

Projects

docker-elk-tutorial8 Stars, 1 Fork

docker-elk-tutorial + django + logging

django_social_pill7 Stars, 3 Fork

Django Social Pill offers convenience tools for routine tasks concerning social authentication. It builds on top of Python Social Auth application for Django package.

django_binance_trader6 Stars, 0 Fork

Automated trading bot for Binance

dependent-dropdown-example3 Stars, 1 Fork

Code example used in the post “How to Implement Dependent/Chained Dropdown List with Django”.

稿源:DjangoWeekly Blog (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合编程 » #68 – This week in Django

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录