Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What's new in Django 1.9
Search
Marc Tamlyn
October 20, 2015
Technology
1
160
What's new in Django 1.9
Marc Tamlyn
October 20, 2015
Tweet
Share
More Decks by Marc Tamlyn
See All by Marc Tamlyn
Arousal and Anxiety
mjtamlyn
1
36
Working with Children
mjtamlyn
1
66
Wallingford Castle Archers Incorporation
mjtamlyn
0
160
Observation and Evaluation
mjtamlyn
0
80
Weird and Wonderful things to do with the ORM
mjtamlyn
3
1.2k
An Introduction to Graphene and Relay
mjtamlyn
6
1.2k
Tech Interviews that don't suck
mjtamlyn
4
980
Data driven rendering
mjtamlyn
1
140
Django Development Milestones
mjtamlyn
1
140
Other Decks in Technology
See All in Technology
AIを活用した柔軟かつ効率的な社内リソース検索への取り組み
cygames
0
200
開発生産性を始める前に開発チームができること / optim-improve-development-productivity.pdf
optim
0
150
Developer Experienceを向上させる基盤づくりの取り組み事例集
coconala_engineer
0
160
20240912 JJUGナイトセミナー
mii1004
0
140
watsonx.ai Dojo 環境準備について
oniak3ibm
PRO
0
350
どこよりも遅めなWinActor Ver.7.5.0 新機能紹介
tamai_63
0
210
公共交通データとアプリ制作 - Mini Tokyo 3D の初期制作過程を振り返る
nagix
1
110
Road to Single Activity
yurihondo
2
240
DroidKaigi 2024 たすけて!ViewModel
mhidaka
5
1k
eBPFのこれまでとこれから
yutarohayakawa
10
3.3k
OSTという文化を組織に根付かせてみた
sansantech
PRO
2
410
内製化を目指す事業会社が、システム開発会社と共に進める「開発生産性改善」の取り組み事例 #devsumi
yuwji
1
140
Featured
See All Featured
Bash Introduction
62gerente
608
210k
How GitHub (no longer) Works
holman
310
140k
Building Adaptive Systems
keathley
36
2.1k
Writing Fast Ruby
sferik
623
60k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
The Pragmatic Product Professional
lauravandoore
31
6.2k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
A Tale of Four Properties
chriscoyier
155
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
1
55
Infographics Made Easy
chrislema
239
18k
Ruby is Unlike a Banana
tanoku
96
11k
Atom: Resistance is Futile
akmur
261
25k
Transcript
What's new in Django 1.9 Parallel permission passwords?
Django 1.9 • Beta 20th October • RC mid Nov
• Final early December • PLEASE TEST
Password validation • Opt-in AUTH_PASSWORD_VALIDATORS • Min length, common passwords,
user similarity, non-numeric • Framework for your own password validation logic
Password validation class PasswordValidator(object): def __init__(self, **kwargs): pass def validate(self,
password, user=None): if condition(password): raise ValidationError(…) def get_help_text(self): return "Your password must be…" def password_changed(password, user=None): # check not the previous password
Permission Mixins • Similar django-braces and decorators • AccessMixin, LoginRequiredMixin,
PermissionRequiredMixin, and UserPassesTestMixin
Parallel tests • ./manage.py test --parallel • Separate process and
database for each core • Requires tblib • Does not work with Windows or Oracle
On commit hook • transaction.on_commit(func) • Executes func when the
current transaction commits • Good for queueing tasks or email notifications
New admin theme
ORM • JSONField • GDALRasters • Expressions in save() •
Greatest, Least, Now • Transform and Func unified
Forms • CharField now strips whitespace by default • Unicode
slug support • Field ordering
CLI • python -m django • --noinput has --no-input alias
Testing • response.json() • client.force_login(user)
Deprecations and backwards incompatible changes • Python 3.2 and 3.3
dropped • ForeignKey(model, on_delete) • Global timezone adaption • Relative Location header • Implicit __in removed
Final removals • SortedDict • utils.unittest • syncdb • initial_data
• old model loading • manage.py validate • .util modules • request.REQUEST • IPAddressField • import_by_path • FastCGI support • {% url %} in future
Django 1.10 ideas • Improved MSSQL support • Full text
search • Custom indexes • Even more improved expressions • Async worker/communication layer • August 2016
Marc Tamlyn @mjtamlyn photocrowd.com