Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Module your Django Project
Search
Sergio
November 10, 2015
Programming
30
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Module your Django Project
Some best practices to design your Django project.
Sergio
November 10, 2015
Other Decks in Programming
See All in Programming
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
すこし踏み込む CancellationToken
htkym
2
1.7k
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
AmebaブログはKMPから卒業します
kmars0605
0
180
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
300
Next.js: The final boss of Web Performance
guaca
0
250
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
The Limits of Empathy - UXLibs8
cassininazir
2
720
How to build a perfect <img>
jonoalderson
1
6.1k
Designing Experiences People Love
moore
143
24k
Code Review Best Practice
trishagee
74
20k
Done Done
chrislema
187
17k
Skip the Path - Find Your Career Trail
mkilby
1
260
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
A Tale of Four Properties
chriscoyier
163
24k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
A better future with KSS
kneath
240
18k
Transcript
Module your Django project
Always remember
Reusability matters
Django Packages https:/ /www.djangopackages.com/ PyPi https:/ /pypi.python.org/pypi
APP? https:/ /www.djangopackages.com/ Packages? https:/ /pypi.python.org/pypi
my project mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py users/
__init__.py admin.py migrations/ models.py static/ templates/ test.py urls.py views.py/
settings.py Development Staging Production
settings files settings/ __init__.py dependencies/ base.py development.py stagging.py production.py
for example development.py : from my_site.settings.base import * INSTALLEDAPPS +=
( 'debugtoolbar', ) MIDDLEWARECLASSES += ( 'debugtoolbar.middleware.DebugToolbarMiddleware', )
configure virtualenv https:/ /gist.github.com/5525c6e1795360416bd0.git
i.e. views views/ __init__.py service.py recommendations.py payments.py
__init__.py from myapp.views.services import ServiceFormView from myapp.views.recommendations import RecommendationsList from
myapp.views.payments import Payment
i.e. tools mysite/ tools/ emails.py validators.py urls.py settings/ ...
Eat Sleep Program Repeat