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
83
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
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
220
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.1k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
4
1.4k
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
310
Seven New Principles of Software Engineering
yegor256
0
410
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
160
Crash Auto Pipelines
veronikapj
1
310
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.5k
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
14
8.1k
最近”作らせてる” ローカルAIアプリの話
akit37
0
530
Getting Started with Vibe Coding
miccheng
0
150
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Claude Code のすすめ
schroneko
67
230k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
2
990
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
290
A better future with KSS
kneath
240
18k
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