• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
gumiStudy#3 Django – 次の一歩
 

gumiStudy#3 Django – 次の一歩

on

  • 1,291 views

Djangoの出自からDjangoの仕組みについて理解を深めます。

Djangoの出自からDjangoの仕組みについて理解を深めます。
アプリケーション設計のための第一歩です。

Statistics

Views

Total Views
1,291
Views on SlideShare
1,291
Embed Views
0

Actions

Likes
1
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    gumiStudy#3 Django – 次の一歩 gumiStudy#3 Django – 次の一歩 Presentation Transcript

    • Django AUTHORS Python Google 3
    • 7 10 Django 5
    • Django
    • PHP Python
    • 2003
    • Ruby on Rails
    • 2005
    • World Online often has only a matter of hours to take a complicated Web application from concept to public launch.
    • DB URL
    • DB URL
    • DB URL
    • DB URL
    • DB URL
    • DB URL
    • 85%
    • http://www2.ljworld.com/ LJWorld …
    • http://www2.ljworld.com/ 2005 Django Adrian
    • http://www2.ljworld.com/ 2005 Django Adrian
    • http://www2.ljworld.com/ 2005 Django Adrian
    • http://www2.ljworld.com/ 2005 Django Adrian
    • http://www2.ljworld.com/ 2005 Django Adrian
    • … …
    • 27.6 django-admin.py startproject startapp manage.py
    • 4 settings.py 4
    • 4 settings.py 4
    • 4 settings.py 4
    • settings.py INSTALLED_APPS 5 Web blog blog
    • settings.py INSTALLED_APPS 5 Web blog blog
    • 10 manage.py shell blog startapp gumistudy.blog blog manage.py ./manage.py PYTHONPATH Python Shell gumistudy.blog manage.py PYTHONPATH blog
    • Django
    • Django
    • admindoc Django view Django BIDI
    • RegexValidator ■ URLValidator ■ validate_email ■ validate_slug ■ validate_ipv4_address ■ validate_comma_separated_integer_list ■ MaxValueValidator ■ MinValueValidator ■ MaxLengthValidator ■ MinLengthValidator Model validators validator …
    • ValidationError raise DRY
    • CharField Integer validators RegexValidator validator CharField SlugField Slug URL DB
    • models models.py
    • models models.py
    • … models import models meta app_label
    • … models import models meta app_label
    • … Entry django.contrib.auth User Entry auhtor User Entry User entry_set User
    • … Entry django.contrib.auth User Entry auhtor User Entry User entry_set User
    • django.contrib.auth django.contrib.contenttypes ContentType django.contrib.auth
    • django.contrib.auth django.contrib.contenttypes ContentType django.contrib.auth
    • memcached
    • Signal Signal send
    • Signal Signal send
    • Signal Signal send
    • send sender args connect sender args connect sender
    • send sender args connect sender args connect sender
    • send sender args connect sender args connect sender
    • Python
    • Python
    • Python
    • Abstract syncdb
    • … Proxy
    • … Proxy
    • O/R Mapper SQL O/R Mapper SQL SQL
    • objects filter exclude all … … all filter …
    • objects filter exclude all … … all filter …
    • objects filter exclude all … … all filter …
    • objects filter exclude all … … all filter …
    • F Aggregation F Aggregation aggregate annotate aggregate annotate Aggregate Annotate Queryset
    • F Aggregation F Aggregation aggregate annotate aggregate annotate Aggregate Annotate Queryset
    • F Aggregation F Aggregation aggregate annotate aggregate annotate Aggregate Annotate Queryset
    • DRY Queryset get_query_set Entry public_objects pub_date Queryset objects Manager Django Django
    • DRY Queryset get_query_set Entry public_objects pub_date Queryset objects Manager Django Django
    • Django Django
    • Django Django
    • using using default
    • using using default
    • Django DatabaseRouters DatabaseRouters syncdb None None Django DatabaseRouter default
    • Django Django django.contrib
    • 1:30 ) bitbucket
    • 1:30 ) bitbucket
    • ModelAdmin Queryset Queryset bulk update save
    • ModelAdmin Queryset Queryset bulk update save
    • Django Django Ellington CMS admin
    • settings.py TEMPLATE_LOADERS TEMPLATE_DIRS TEMPLATE_LOADERS filesystem.Loader app_directories.Loader TEMPLATE_DIRS TEMPLATE_DIRS app_directories.Loader
    • settings.py TEMPLATE_LOADERS TEMPLATE_DIRS TEMPLATE_LOADERS filesystem.Loader app_directories.Loader TEMPLATE_DIRS TEMPLATE_DIRS app_directories.Loader
    • app_directories.Loader Django templates app_directories.Loader templates
    • app_directories.Loader Django templates app_directories.Loader templates
    • app_directories.Loader Django templates app_directories.Loader templates
    • filesystem.Loader TEMPLATE_DIRS templates TEMPLATE_DIRS
    • filesystem.Loader TEMPLATE_DIRS templates TEMPLATE_DIRS
    • Django Django 2
    • admin/site_base.html … app_directory.Loader filesystem.Loader
    • admin/site_base.html … app_directory.Loader filesystem.Loader
    • ! <html> !!! <head>{% block title %} {% endblock title %}</head> <script type="text/javascript" src="common.js"></script> {% block custom_js %}{% endblock custom_js %} !!! <body> !!! <div id="menu">{% block menu %}{% endblock menu %}</div> !!! <div id="content">{% block content %}{% endblock content %}</div> <div id=”copyright”>{% block copyright %}everes{% endblock %}</div> !!! </body> ! </html> ! {% extends 'base.html% %} ! {% block title %}{{ block.super }} {% endblock title %} ! {% block menu %} {% endblock menu %} ! {% extends 'app/base.html' %} ! {% block content %} {% endblock content %}
    • ! <html> !!! <head>{% block title %} {% endblock title %}</head> <script type="text/javascript" src="common.js"></script> {% block custom_js %}{% endblock custom_js %} !!! <body> !!! <div id="menu">{% block menu %}{% endblock menu %}</div> !!! <div id="content">{% block content %}{% endblock content %}</div> <div id=”copyright”>{% block copyright %}everes{% endblock %}</div> !!! </body> ! </html> ! {% extends 'base.html% %} ! {% block title %}{{ block.super }} {% endblock title %} ! {% block menu %} {% endblock menu %} ! {% extends 'app/base.html' %} ! {% block content %} {% endblock content %}
    • ! <html> !!! <head>{% block title %} {% endblock title %}</head> <script type="text/javascript" src="common.js"></script> {% block custom_js %}{% endblock custom_js %} !!! <body> !!! <div id="menu">{% block menu %}{% endblock menu %}</div> !!! <div id="content">{% block content %}{% endblock content %}</div> <div id=”copyright”>{% block copyright %}everes{% endblock %}</div> !!! </body> ! </html> ! {% extends 'base.html% %} ! {% block title %}{{ block.super }} {% endblock title %} ! {% block menu %} {% endblock menu %} ! {% extends 'app/base.html' %} ! {% block content %} {% endblock content %}
    • ! <html> !!! <head>{% block title %} {% endblock title %}</head> <script type="text/javascript" src="common.js"></script> {% block custom_js %}{% endblock custom_js %} !!! <body> !!! <div id="menu">{% block menu %}{% endblock menu %}</div> !!! <div id="content">{% block content %}{% endblock content %}</div> <div id=”copyright”>{% block copyright %}everes{% endblock %}</div> !!! </body> ! </html> ! {% extends 'base.html% %} ! {% block title %}{{ block.super }} {% endblock title %} ! {% block menu %} {% endblock menu %} ! {% extends 'app/base.html' %} ! {% block content %} {% endblock content %}