$arr_19 ), array( 3, false, $arr_20, $arr_24 ), array( 2, false, "\" />", $arr_25 ) ) ); ?> $arr_27 ), array( 3, false, $arr_28, $arr_30 ), array( 2, false, "\" />\n\n", $arr_31 ) ) ); ?> array( 2, false, false, $arr_9 ), array( 4, $arr_10, "if", $arr_245, $arr_248 ), array( 2, false, "\n", $arr_249 ) ) ); ?> rr_466 ), array( 4, $arr_467, "if", $arr_482, $arr_484 ), array( 2, false, "\n", $arr_485 ) ) ); ?> Fret Free » Linux Magazine
 

Django and the Django Software Foundation

Fret Free

© Alexey Klementiev, Fotolia

Author(s):

We talk to one of the creators of the Django project about the formation of the Django Software Foundation, and we show you how to get started with this user-friendly web framework.

In the summer of 2005, yet another web framework was released into the open source world [1]. Only three short years since Django's release, it has gained enough traction to inspire the formation of the Django Software Foundation [2]. With the formation of the DSF, Django joins an impressive list of other projects with their own foundations, including Apache, Perl, and Python.

What Is Django?

Django is a Python web development "framework," or set of libraries, that allows developers to work on the unique/interesting parts of an application without worrying much about the boring infrastructure under the hood. Django uses the MVC pattern like many other frameworks, such as Ruby on Rails and the various Perl and PHP frameworks.

One of Django's killer features is its incredibly slick admin interface that is automatically built for you. In this article, I will walk through the steps required to build a small Twitter-like application so you can see the admin in action.

[...]

Read full article as PDF »

Django_Web_Framework.pdf (394.91 kB)

Comments

  • Thanks!

    We appreciate all the feedback and updates!
  • Django 0.96, vs. django 1.0, vs. SVN

    The problems you are running into are due to your use of the SVN version of django.

    In the past month many backwards incompatible changes have been made to the django svn and Django 1.0 was released just a few days ago. Due to the lead time on stories and the production schedule of this magazine, the examples and recent screen casts are for the earlier stable release of Django, 0.96.

    With that said, as you have found out it is relatively easy to upgrade the code examples to django 1.0.
    An exhaustive listing of all changes with instructions can be found here:
    http://code.djangoproject.c...i/BackwardsIncompatibleChanges
  • max-length vs maxlength present in code.djangoproject.com

    Just one more. Seems to be something that people know about.
    http://code.djangoproject.com/ticket/7523

    Sorry for the noise.

    PS. I'll install from svn. DS.
  • Versionproblem maby?

    Must have to do with version. I did some grep in the installdir for django and found that max_length should be maxlength. When I changed that it came out with 0 errors.

    versions:
    opensuse 11.0
    python 2.5.2
    django 0.96.2-5.5
  • Validateproblem

    I've just tried to go through the steps in this article. There seems to be some problem when I validate the code in listing 1.

    I get:
    mytwit.Twit: __init__() got an unexpected keyword argument 'max_length'
comments powered by Disqus

Direct Download

Read full article as PDF »

Django_Web_Framework.pdf (394.91 kB)

News