I'll take a little break from the following tasks to better my knowledge on Python and learn how to use Django.
This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.
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!
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.
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 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.
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?)