×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Basic Crud In Django

by on Oct 21, 2007

  • 40,508 views

This presentation details how to do basic CRUD in Django.

This presentation details how to do basic CRUD in Django.

Statistics

Views

Total Views
40,508
Views on SlideShare
39,291
Embed Views
1,217

Actions

Likes
21
Downloads
806
Comments
4

25 Embeds 1,217

http://birtanyildiz.blogspot.com 345
http://cachina.wordpress.com 285
http://www.slideshare.net 155
http://helloworld.atihow.com 77
http://log.7thpark.com 66
http://py-arahat.blogspot.com 65
http://arah.at 47
http://blog.atmantree.com 46
http://blog.cachina.com.br 43
http://py.arahat.net 35
http://py-arahat.blogspot.com.es 13
http://cachina.com.br 9
http://py-arahat.blogspot.mx 5
http://py-arahat.blogspot.com.ar 5
http://www.python.rk.edu.pl 4
http://translate.googleusercontent.com 3
http://makethepitch.tigerlab.com 3
http://www.rkblog.rk.edu.pl 3
http://birtanyildiz.blogspot.co.uk 2
http://reader.youdao.com 1
http://mj.limewebs.com 1
http://py-arahat.blogspot.fr 1
http://birtanyildiz.blogspot.com.au 1
http://www.feedage.com 1
http://www.google.com.tr 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare 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

14 of 4 previous next Post a comment

  • JohanZander Johan Zander I've added a github repository with an implementation of this CRUD example. https://github.com/johanzander/linkdump 1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • tmountain tmountain More typos:

    1) in urls.py, you need a comma at the end of each line
    2) the delete line causes a runtime error:

    (r'^links/delete/(?P\d+)', 'diglic.links.views.delete'),

    This would be a nice tutorial, but it really needs some cleanup work.
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • tmountain tmountain A few typos in here:

    1) when creating the models, the key name should be max_length not maxlength.

    2) the edit method neglects to pass in the links variable, so it can't pre-populate the form. it should read as follows:

    def edit(request, id):
    link = Link.objects.get(id=id)
    return render_to_response(
    'links/form.html',
    {'link' : link,
    'action' : 'update/' + id,
    'button' : 'Update'}
    )

    3) the ObjectPaginator has been renamed to Paginator in the most recent Django. To use it, you'll have to make the appropriate changes.

    def list(request, page = 1, message = ''):
    page = int(page)
    link_list = Paginator(Link.objects.all(), 5)
    p = link_list.page(page)
    has_previous = p.has_previous()
    has_next = p.has_next()
    .....
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • guestdd41b2 guestdd41b2


    <b>[Comment posted from</b> http://log.7thpark.com/catalog.asp?tags=Django]
    4 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Basic Crud In Django Basic Crud In Django Presentation Transcript