A Test Framework for Django |
Oct. 31, 2005, 12:59 p.m. |
DjangoTesting is part of my DjangoStuff project and is the start of a testing framework for Django, modeled after the testing framework that Ruby on Rails provides. Currently only model tests are implemented, request/response tests are planned. The testing framework is built solely on unittest and ... |
Django, Programmierung, Python |
Case/When/Otherwise for Django |
Oct. 30, 2005, 1:04 p.m. |
If you have any evil plans for a switch statement for Django (hia rjwittams! ;-)), you might want to look into my TagLib. There is a case/when/otherwise statement in there. It's quite easy to use: {% case variable %} {% when "value1" %} {% endwhen %} {% when "value2" %} {% endwhen %} {% otherwise %} ... |
Django, Programmierung, Python |
Adhoc-Organization in CM-Systems |
Oct. 28, 2005, 10:21 p.m. |
Adhoc organization is what I named the basic design decisions for my new content management system (blog system, personal wiki, digital image shoebox - whatever). It's coming along nicely, even though up to now I only used it as a sample application to make use of my little tools from the ... |
Django, Programmierung, Python |
Markdown for Django |
Oct. 26, 2005, 8:02 p.m. |
Django already includes a markdown filter (in contrib.markup), but I nonetheless rolled my own Markdown for Django mini-app. The main benefits are link integration with django models (by using generic model queries and getabsoluteurl), a documentation generic view that handles language switching and ... |
Django, Programmierung, Python |
"Fitting on" some framework |
Oct. 26, 2005, 2:05 a.m. |
How do you know wether a framework fits your style of thinking? It's not as if you could just look into a mirror wether it suits you nicely, you need other ways to decide that. One way to decide it is productivity - how fast you get your project up and running. But does that really tell you the ... |
Django, Programmierung, Python |
generic search service for Django |
Oct. 23, 2005, 11:11 p.m. |
If your Django application needs searching capabilities, you can roll your own. Or you can use my generic search view. This provides a parser for queries and a search machinery that is suiteable for moderate database sizes. It provides an extensible google-like syntax. The main problem is that ... |
Django, Programmierung, Python |
very simple view functions |
Oct. 22, 2005, 1:11 a.m. |
Sometimes you have a bunch of really simple view functions in your django project (yes, this is for your, bitprophet! ;-)). View functions that are actually not more than just a rendertoresponse call - take a template, take some data from the request, stuff them in and render a response. It's rather ... |
Django, Programmierung, Python |
Module Hacking for Django |
Oct. 21, 2005, 9:31 p.m. |
Django itself constructs model modules dynamically from your model classes. That's what I used in my first take at the abstract tagging application. Now I found a better way in the current version - I can modify the dynamic module myself quite easily, generate a dynamic model class and push that ... |
Django, Programmierung, Python |
Tagging with Django |
Oct. 19, 2005, 4:47 p.m. |
Since the question about how to do tagging with Django shows up quite often, I have written a small solution to this problem: AbstractTagging. This is a generic application and generic views that give you a very simple solution to add tagging to any model you have in your django apps. It's currently ... |
Django, Programmierung, Python |
Using Django as a CMS |
Oct. 16, 2005, 3:44 p.m. |
I am currently reworking one of my sites - Content-type: matter-transport/sentient-life-form. It was a Apache::MiniWiki based site before and is now in the transition to being a Django based site. The idea of the code for that site is to build a CMS based on Django that fully uses the Django admin. ... |
Django, Programmierung, Python |
Django i18n status |
Oct. 11, 2005, 4:29 p.m. |
I worked a bit more on the i18n stuff in django today and finally switched my gallery to the i18n branch. You can now see the strings on that site with either english or german settings. Other languages get english output (so if you are in Germany and still see english strings - check the language ... |
Django, Programmierung, Python |
IRC Logger update |
Oct. 4, 2005, 9:45 p.m. |
The IRC logger is working fine, but I wasn't happy with the dependence on muh - so I wrote my own little logger bot in python, based on irclib. Does work fine and does only what I want it to do - logging. I allways feel a bit queasy when IRC bots have command structures and stuff like that and I ... |
Django, Programmierung, Python |
IRC logger for #django |
Oct. 2, 2005, 2:59 p.m. |
There now is a IRC logger for #django on freenode.net. Ever since the loglibrary broke down, I thought about rolling my own. So I started to build the stuff needed for an IRC logger. The interface itself is written with django, of course :-) As allways, the source is available in my trac instance. ... |
Django, Programmierung, Python |