This course will become read-only in the near future. Tell us at if that is a problem.

Getting to know Django (Optional)

Learning about the Django web development framework

Lernanta is written using the Django framework. In order to understand the Lernanta code and locate specific parts of interest, you will need to know about Django.

The first stop for anyone learning Django should be their website. You can read their overview, follow the installation guide and do the tutorial.

Please post comments about any resources that you found useful while learning Django?

Once again, deciding when you completed this task is totally up to you!

Task Discussion

  • v4lent1na said:

    I'll take a little break from the following tasks to better my knowledge on Python and learn how to use Django.

    on Aug. 7, 2013, 3:11 p.m.
  • richardba said:

    I first issued with Djangon while in my undergraduated program, I was getting used to Plone and Zope framework when I came accross Django. The best thing I like in it is its "componentability" which makes almost everything a software component. I recommend people to see the Djagon Book which is free to use and to share under the GNU licensing.

    on Feb. 16, 2013, 12:51 a.m.
  • Corbin Tarrant said:

    I've been trying to learn django better by writing a simple app. I'm stuck trying to learn how to create a custom admin widget though. Does lernanta use any that someone could point me to for reference? Or does  anyone know of any resources to help learn how to create custom django widgets (tutorials or examples) anywhere else?

    on April 26, 2012, 5:23 p.m.

    Dirk said:

    Hi Corbin

    I haven't done this myself, but it would seem that you need to create a custom widget the same way you would for a normal Form.

    You will have to write a class that inherits from the Widget base class. The documentation is a little sparse, but have a look at this.

    You will need to write a custom render function, but other that that I'm not sure what you need to do in you class? Also see this question on Stack Overflow.

    on May 1, 2012, 2:18 a.m. in reply to Corbin Tarrant

    Corbin Tarrant said:

    Thanks for the reply Dirk, I've been super busy (just moved to a new city) and just getting back to looking at this now. 

    I'm getting a better idea of what I need to do now, but I'm still confused on where to define my custom widget. Doing it in doesn't seem right, is there a standard place to define custom components? (Perhaps an example of something like this in lernanta?)

    on May 19, 2012, 10:11 p.m. in reply to Dirk

    Dirk said:

    You can define your widget in a separate python file in your django app. Then you need to import the widget where you want to use it in

    I haven't come across anything like this in lernanta yet. Sorry I cannot help more

    on May 31, 2012, 5:53 a.m. in reply to Corbin Tarrant