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
190
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
68
Working with Children
mjtamlyn
1
80
Wallingford Castle Archers Incorporation
mjtamlyn
0
190
Observation and Evaluation
mjtamlyn
0
110
Weird and Wonderful things to do with the ORM
mjtamlyn
3
1.4k
An Introduction to Graphene and Relay
mjtamlyn
6
1.2k
Tech Interviews that don't suck
mjtamlyn
4
1.1k
Data driven rendering
mjtamlyn
1
170
Django Development Milestones
mjtamlyn
1
170
Other Decks in Technology
See All in Technology
FinOps について (ちょっと) 本気出して考えてみた
skmkzyk
0
210
Implementing and Evaluating a High-Level Language with WasmGC and the Wasm Component Model: Scala’s Case
tanishiking
0
180
Kubernetes self-healing of your workload
hwchiu
0
460
OpenTelemetry が拡げる Gemini CLI の可観測性
phaya72
2
2.2k
AWS UG Grantでグローバル20名に選出されてre:Inventに行く話と、マルチクラウドセキュリティの教科書を執筆した話 / The Story of Being Selected for the AWS UG Grant to Attending re:Invent, and Writing a Multi-Cloud Security Textbook
yuj1osm
1
130
Dify on AWS 環境構築手順
yosse95ai
0
120
アウトプットから始めるOSSコントリビューション 〜eslint-plugin-vueの場合〜 #vuefes
bengo4com
3
1.7k
知覚とデザイン
rinchoku
1
530
AIエージェントによる業務効率化への飽くなき挑戦-AWS上の実開発事例から学んだ効果、現実そしてギャップ-
nasuvitz
2
580
20251027_マルチエージェントとは
almondo_event
0
210
まだ間に合う! 2025年のhono/ssg事情
watany
3
640
様々なファイルシステム
sat
PRO
0
240
Featured
See All Featured
Building an army of robots
kneath
305
46k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
A Tale of Four Properties
chriscoyier
161
23k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Docker and Python
trallard
46
3.6k
Thoughts on Productivity
jonyablonski
70
4.9k
Mobile First: as difficult as doing things right
swwweet
225
10k
It's Worth the Effort
3n
187
28k
Statistics for Hackers
jakevdp
799
220k
Gamification - CAS2011
davidbonilla
81
5.5k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Designing Experiences People Love
moore
142
24k
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