A little more time with Django (All in all I like it...)
Written by
on
in
Snaking.
Have just finished reading through the tutorial. Unfortunately, after finding the solution to the admin interface not showing up (you have to specify the "admin" settings file, despite the tutorial's assertion that the two settings files are the same), ran into a failure with a many-to-many relationship (can't delete). No big deal, still able to read the tutorial.
Haven't yet seen anything that explains how to deploy the application (i.e. not running it with the "don't use this in a real-world situation" devel servers), but I can't imagine it's too involved.
The approach is close enough to my own web framework for BasicProperties that I'd imagine I can adapt to it fairly easily. Still that means I'll have two web frameworks to keep up with (Nevow and Django), but that's markedly better than raw CGI :) .
I guess the next step is to build a real-world application with it. I'm thinking the first candidate would be py3d.py (my collection of links to Python 3D projects, currently coded as a straight CGI and edited directly to produce new items).
One thing I'm missing from Nevow is the LivePage technology :( . I rather enjoyed playing with that. I wonder how hard it would be to make Django Twisted-compatible (i.e. non-blocking)... or maybe it would be easier to add the XMLRPC mechanisms to Django. Also wondering how complex it would be to make the models, validators, URL handlers etceteras work within Zope.
Which brings us back to the "we really need to unify the web frameworks" topic...
Comments
Comments are closed.
Pingbacks
Pingbacks are closed.
Justin on 08/07/2005 10:47 a.m. #
two things to note:<br />
<br />
http://www.djangoproject.com/documentation/tutorial2/<br />
clearly tells you to use myproject.settings.admin for the admin site.<br />
<br />
http://www.djangoproject.com/documentation/modpython/<br />
tells you how to setup mod_python...<br />
<br />
JanC on 08/07/2005 12:10 p.m. #
Django-on-Twisted:<br />
http://code.djangoproject.com/ticket/172<br />
<br />
This might become something like LivePage:<br />
http://opensvn.csie.org/django_ajax/trunk/
Mike Fletcher on 08/07/2005 3:39 p.m. #
Justin: yes, the page does tell you to use admin, but every point up to then has been suggesting that you just set the environmental variable and forget about passing in the parameter. It's not a bug, just something that could use a note.<br />
<br />
Thanks for the pointer to the mod_python setup.<br />
<br />
JanC, thanks for the pointer, will look at it when I get back to playing with Django.
Julian on 08/08/2005 6:39 p.m. #
You know, I logged this a long time ago in a ticket and it was just blown off.<br />
Many others have had this problem too from the IRC logs. It should really be clarified.<br />
<br />
http://code.djangoproject.com/ticket/79
amit upadhyay on 09/28/2005 7:33 a.m. #
<a href="http://nerdierthanthou.nfshost.com/2005/09/soaped-django.html">soap</a>/<a href="http://nerdierthanthou.nfshost.com/2005/09/xmlrpc-support-for-django.html">xmlrpc</a> with django are easy! :-)