Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
What's new in Django 1.9
Marc Tamlyn
October 20, 2015
Technology
1
150
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
24
Working with Children
mjtamlyn
1
21
Wallingford Castle Archers Incorporation
mjtamlyn
0
130
Observation and Evaluation
mjtamlyn
0
67
Weird and Wonderful things to do with the ORM
mjtamlyn
3
880
An Introduction to Graphene and Relay
mjtamlyn
6
1k
Tech Interviews that don't suck
mjtamlyn
4
770
Data driven rendering
mjtamlyn
1
130
Django Development Milestones
mjtamlyn
1
130
Other Decks in Technology
See All in Technology
OpenShiftのサポートを始めるぞ!高頻度で更新されるOSSを効果的にキャッチアップする仕組みを考えました!
loftkun
0
330
ロボットの実行すらメンドクサイ!?
kou12092
0
120
ふりかえりの技術 / retrospectives
soudai
3
140
DevelopersIO 2022 俺のTerraform Pipeline
takakuni
0
420
JAWS-UG 朝会 #36 登壇資料
takakuni
1
530
Trusted Web プロトタイプ
finengine
0
320
Simplify Cloud Native Security with Trivy
knqyf263
0
530
SPAとWebアプリケーションでCognitoの使い方はどう変わるのか? / How do we use cognito with SPA and web applications?
kitano_yuichi
0
370
Settlement simulation testing to ensure correct settlement processing
applepine1125
2
940
psql, my favorite tool!
nuko_yokohama
1
180
ログ集約基盤をCloudWatchからOpenSearchに変えてみた
yuhta28
0
130
AWSを始める人に向けた7つの大切なこと / 7 tips for AWS beginners
hiranofumio
1
640
Featured
See All Featured
Building Applications with DynamoDB
mza
84
4.8k
Robots, Beer and Maslow
schacon
152
7.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
6
560
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
37
3.3k
Principles of Awesome APIs and How to Build Them.
keavy
113
15k
Building Adaptive Systems
keathley
25
1.1k
From Idea to $5000 a Month in 5 Months
shpigford
373
44k
How to name files
jennybc
40
63k
Code Reviewing Like a Champion
maltzj
506
37k
Happy Clients
brianwarren
89
5.6k
Ruby is Unlike a Banana
tanoku
91
9.3k
What's new in Ruby 2.0
geeforr
336
30k
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