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!

Diskutera uppgift


  • v4lent1na sa:

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

    i 7 augusti 2013 15:11
  • richardba sa:

    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.

    http://djangobook.com/

    i 16 februari 2013 00:51
  • Corbin Tarrant sa:

    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?

    i 26 april 2012 17:23

    Dirk sa:

    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.

    i 1 maj 2012 02:18 som svar på Corbin Tarrant

    Corbin Tarrant sa:

    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 admin.py doesn't seem right, is there a standard place to define custom components? (Perhaps an example of something like this in lernanta?)

    i 19 maj 2012 22:11 som svar på Dirk

    Dirk sa:

    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 admin.py.

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

    i 31 maj 2012 05:53 som svar på Corbin Tarrant