django.contrib.databrowse
Upcoming SlideShare
Loading in...5
×
 

django.contrib.databrowse

on

  • 4,093 views

Slides for my django.contrib.databrowse presentation given at BayPIGgies on 2009-Oct-22.

Slides for my django.contrib.databrowse presentation given at BayPIGgies on 2009-Oct-22.

Statistics

Views

Total Views
4,093
Views on SlideShare
4,070
Embed Views
23

Actions

Likes
1
Downloads
20
Comments
0

2 Embeds 23

http://www.slideshare.net 22
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

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

    django.contrib.databrowse django.contrib.databrowse Presentation Transcript

    • django.contrib.databrowse
    • whoami: Eddy Mulyono
      • lazy
      • magic-removal
      • MS in CS thesis
        • need quick UI
    • who: Survey
      • Use databrowse
      • Hack databrowse
    • Outline
      • Intro
      • Docs
      • Demo
      • Dive
    • django.contrib.admin
      • RW
      • RO?
    • django.contrib.databrowse
    • INSTALL
      • admin
      • databrowse
    • INSTALLED_APPS
      • django.contrib.admin
      • django.contrib. databrowse
    • urls.py
      • from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # … (r'^admin/', include(admin.site.urls)),
      • from django.contrib import databrowse urlpatterns = patterns('', # … (r'^databrowse/(.*)', databrowse.site.root) ,
    • register
      • from mysite.polls.models import Poll from django.contrib import admin admin.site.register(Poll)
      • from myapp.models import SomeModel, SomeOtherModel from django.contrib import databrowse databrowse.site. register(SomeModel) databrowse.site. register(SomeOtherModel)
    • (teaser)
    • Multi-site
      • admin.site
        • admin/__init__.py:
          • from django.contrib.admin.sites import AdminSite, site
        • admin/sites.py:
          • site = AdminSite()
      • site2 = admin.sites. AdminSite()
      • databrowse.site
        • databrowse/__init__.py:
          • from django.contrib.databrowse.sites import DatabrowsePlugin, ModelDatabrowse, DatabrowseSite, site
        • databrowse/sites.py:
          • site = DatabrowseSite()
      • site2 = databrowse.sites. DatabrowseSite()
    • Customize
      • ModelAdmin
        • admin.site.register(Poll, PollAdmin)
      • ModelDatabrowse
        • databrowse.site. register(SomeModel, SomeModelDatabrowse)
    • databrowse.ModelDatabrowse
      • plugins
        • class DefaultModelDatabrowse(ModelDatabrowse): plugins = {'objects': ObjectDetailPlugin(), 'calendars': CalendarPlugin(), 'fields': FieldChoicePlugin()}
    • databrowse.plugins
      • ObjectDetailPlugin
      • CalendarPlugin
      • FieldChoicePlugin
    • databrowse.DatabrowsePlugin
      • model_index_html
      • model_view
    • absolute_url
      • get_absolute_url
        • return ('databrowse', ('polls/poll/objects/%i/' % self.pk,), {})
    • Q&A
    • references
      • http://docs.djangoproject.com/en/1.1/ref/contrib/databrowse/
      • Pictures
        • http://www.flickr.com/photos/stinajonsson/3932774410/
        • http://www.flickr.com/photos/daveknapik/3280194084/
        • http://www.flickr.com/photos/endlessstudio/3861211128/
        • http://press.absolut.com/
        • http://www.flickr.com/photos/oberazzi/318947873/