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
Django - Framework do Tworzenia Aplikacjii Webo...
Search
Marcin Mierzejewski
February 22, 2008
Programming
81
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Django - Framework do Tworzenia Aplikacjii Webowych
Prezentacja była zaprezentowana na PyCon Kraków (PyKonik)
Marcin Mierzejewski
February 22, 2008
More Decks by Marcin Mierzejewski
See All by Marcin Mierzejewski
Kup pan cegłe... Kup Pan cegłę, czyli wstęp do algorytmów rekomendacyjnych
mrmierzejewski
1
160
Python i Orange - wstep do eksploracji danych (data mining)
mrmierzejewski
1
670
Python i Django - szybkie i łatwe tworzenie aplikacji webowych
mrmierzejewski
0
580
Introduction to Django 1.0
mrmierzejewski
1
150
Other Decks in Programming
See All in Programming
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
160
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
960
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
mrbgem 三角測量 開発
ogom
0
230
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
200
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
Workers Cache を知る
syumai
0
350
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
540
wkhtmltopdfの次どうするか問題2026
willnet
2
1.9k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
220
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
プロダクトコードからライブラリの境界を見つける
elmetal
PRO
0
110
Featured
See All Featured
BBQ
matthewcrist
90
10k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
How STYLIGHT went responsive
nonsquared
100
6.3k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
30 Presentation Tips
portentint
PRO
1
430
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
470
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Practical Orchestrator
shlominoach
192
12k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Transcript
Marcin Mierzejewski www.mierzejewski.net
Django Framework do tworzenia aplikacji webowych
Historia 2003 - Kansas, USA 2005 - licencja BSD 2005
- wersja 0.90 2006 - wersja 0.95 2007 - wersja 0.96.1
Cechy Użytkownicy Uwierzytelnianie Formularze Admin Panel Middleware
MTV Model Template View Model - dane Template - prezentacja
View - logika
Model SQL Free ORM API
Template restrykcyjne i dziedziczenie {{ zmienne }}, {% tagi %},
filtry HTML, CSS, CSV, XML, ...
URL /news.php?id=5756 /2008/02/12/drugie-spotkanie-pykonika
Blog Lista Szczegóły Panel administracyjny Użytkownicy
Projekt # django-admin.py startproject strona strona/ __init__.py manage.py settings.py urls.py
Panel # ./manage.py syncdb # ./manage.py runserver
Aplikacja # ./manage.py startapp blog blog/ __init__.py models.py views.py
Model class Blog(models.Model): tytul = models.CharField(maxlength=250) slug = models.SlugField() tresc
= models.TextField() data = models.DateTimeField() class Admin: pass
Panel # ./manage.py syncdb # ./magage.py runserver
URL urlpatterns = patterns('', (r'^$', 'strona.blog.views.lista'), (r'^(?P<s>[A-Za-z-]+)/$', 'strona.blog.views.detale'), )
View def lista(request): blogi = Blog.objects.all() return render_to_response('lista.html', { 'blogi':
blogi }) def detale(request, s): blog = get_object_or_404(Blog, slug = s ) return render_to_response('detale.html', { 'blog': blog })
Template lista.html <h1>Blog</h1> {% for blog in blogi %} <h2>{{
blog.tytul }}</h2> <h3>{{ blog.data }}</h3> <a href='/blog/{{ blog.slug }}'>Więcej</a><br> {% endfor %}
Template detale.html <h1>{{ blog.tytul }}</h1> <h2>{{ blog.data }}</h2> {{ blog.tresc
}}
Rachunek http://127.0.0.1:8000/ /drugie-spotkanie-pykonika/
Społeczność DjangoProject.com DjangoPeople.net DjangoSnipplets.com DjangoGigs.com