2008-4-14
| 16:46 | SimonW | jacobkm: I"m not entirely clear about the difference between "topics" and "howtos" |
| 16:46 | SimonW | should the custom template tags stuff be a topic rather than a howto, for example? |
| 17:04 | bastih | good evening |
| 17:11 | jacobkm | SimonW: I'm trying to have a difference between cross-topical "howto" guides -- things that cover a specific *task*, as opposed to coverage of a specific *topic*. |
| 17:11 | jacobkm | SimonW: There's a number of things which overlap; custom template tags are one. |
| 17:11 | SimonW | OK |
| 17:11 | jacobkm | I like having it in howto/, though |
| 17:12 | SimonW | I think I get it - "How do I ... ?" is a howto, whereas detailed introduction to e.g. the template system or the request/response cycle is a topic |
| 17:12 | SimonW | topics = theory, howto = practical advice to achieve a goal? |
| 17:12 | jacobkm | Look at, say, howto/initial-data -- that covers models, SQL, django-admin, and fixtures; that's what I have in mind for howto/ |
| 17:12 | jacobkm | exactly |
| 17:12 | SimonW | I've been wanting to do a "How to use jQuery with Django" / "How to use YUI with Django" / "How to use Prototype with Django" series for a while |
| 17:12 | jacobkm | I also picture filling out howto/ with some of the great stuff folks are putting on their blogs these days. |
| 17:12 | SimonW | almost as a joke |
| 17:13 | SimonW | but mainly because I'm fed up of "Django doesn't support Ajax" comparisons |
| 17:13 | jacobkm | That would be awesome -- I'd love something like that. |
| 17:13 | jacobkm | We could have an FAQ: |
| 17:13 | jacobkm | Does Django work with jQuery? Yes. |
| 17:13 | jacobkm | Does Django work with YUI? Yes. |
| 17:13 | jacobkm | Does Django work with Prototype? Yes. |
| 17:13 | jacobkm | All linking to the same document :) |
| 17:14 | SimonW | that said, I think it would be nice to get http://www.djangosnippets.org/snippets/154/ in to core |
| 17:14 | bastih | Maybe an "ajax and django"-faq should over those :D |
| 17:14 | SimonW | since I use it (or a variant of it) on any project that uses Ajax |
| 17:15 | jacobkm | SimonW: How's Nat? |
| 17:15 | SimonW | fine but bossy |
| 17:16 | SimonW | she's not allowed to move for 48 hours |
| 17:16 | jacobkm | Ugh |
| 17:16 | jacobkm | Glad she's OK, though. |
| 17:18 | SimonW | know if anyone's working on the forms documentation? I'm tempted to give it a go, maybe merge in a few bits from the newforms chapter in the Django Book at the same time |
| 17:42 | SimonW | rats, "make html" is throwing an error |
| 17:42 | SimonW | from jinja.utils import CacheDict, raise_syntax_error |
| 17:42 | SimonW | ImportError: cannot import name raise_syntax_error |
| 17:42 | SimonW | I've updated sphinx to most recent svn version, looks like jinja didn't quite make it along for the ride though |
| 17:45 | SimonW | yuck... looks like easy_install has its various versions and dependencies mixed up |
| 17:46 | jezdez | eek |
| 17:46 | SimonW | I think the current svn version of sphinx may be broken |
| 17:48 | jezdez | hm :/ |
| 17:48 | jezdez | I've got 0.1.61950 here |
| 17:49 | SimonW | that's the version I'm fighting |
| 17:49 | jezdez | hm, this works for me |
| 17:49 | jezdez | I just did "sudo easy_install svn.python.org/projects/doctools/trunk/" |
| 17:50 | jezdez | ..on a mac |
| 17:51 | SimonW | I'll try that |
| 17:51 | SimonW | never done easy_install against a svn url before |
| 17:51 | SimonW | it worked! thanks |
| 17:51 | jezdez | :) |
| 17:52 | SimonW | I was checking out and running sudo python setup.py install manually |
| 17:52 | jezdez | it checks it out to a tempdir |
| 17:52 | jezdez | ah |
| 17:52 | jezdez | ok |
| 17:55 | cramm | another less approach is to have SVN WC and doing sudo setup.py develop from inside it. This crates some way all the svn up changes are automatically available without having to re-' setup.py install' over and over |
| 17:56 | cramm | *creates |
| 17:57 | SimonW | sudo setup.py develop ? sound shandy |
| 17:57 | SimonW | sounds handy |
| 17:57 | SimonW | presumably works with a .pth file or similar |
| 17:57 | cramm kooks shandy on a dictionary :-) | |
| 17:57 | cramm | yes, it uses .pth magic |
| 19:02 | jacobkm | SimonW: if you wanna take on forms *be my guest*! |
| 19:03 | jacobkm | I'd planned on it since it's a pretty big task, but of course I'd happily let you do it :) |
| 19:21 | SimonW | I've done a bit of shuffling, but wow it's a bigun |
| 19:21 | jacobkm | Yup |
| 19:21 | SimonW | I'll hack on it for another hour and see if I'm making much progress |
| 19:21 | jacobkm | Nothing compared to models :) |
| 19:22 | SimonW | I dunno... models are at least documented |
| 19:22 | jacobkm | feel free to crap out part-way through -- some work is better than none! |
| 19:22 | SimonW | newforms is still missing a fair amount of stuff |
| 19:22 | jacobkm | Don't worry too much about adding missing content -- that's fairly easy to do once the structure's done. |
| 19:23 | SimonW | I want to de-emphasize the bit about bound v.s. unbound forms |
| 19:23 | SimonW | since I find I don't actually need that bit of theory much when I'm working with newforms |
| 19:23 | jacobkm | if you feel like it, be my guest... but don't shave too many yaks there! |
| 19:23 | jacobkm | I'd move the bound/unbound stuff to ref/, and have topics/forms just really cover usage. |
| 19:24 | jacobkm | SimonW_: dunno if you got that last bit: "I'd move the bound/unbound stuff to ref/, and have topics/forms just really cover usage." |
| 19:24 | SimonW_ | my current yak to shave is csrf |
| 19:25 | SimonW_ | I want csrf protection in my forms rather than in middleware |
| 19:25 | jacobkm | Yeah, a CSRF'd form would be sweet. |
| 19:25 | jacobkm | No, I'm working on documentation! Focus! |
| 19:25 | SimonW_ | haha |
| 19:26 | SimonW_ | do you have the code for making the docs look like the rest of djangoproject.com yet? |
| 19:26 | jacobkm | Um, sorta -- I've got part of what I'm going to use on the actual website, but I'd also like a standalone template that looks "right" when you run a local build. |
| 19:27 | jacobkm | That'll need to be Jinja templates since I don't want to fuck with making Sphinx use a different template engine -- Django and Jinja are close enough that I should just deal. |
| 21:25 | jezdez | jacobkm: any hint how to link to a subsection of another doc file? e.g. don't know how to refer to the old ".. _RequestSite section of the sites framework documentation: ../sites/#requestsite-objects" |
| 22:22 | cramm | jezdez: maybe with this kind of markup?: http://sphinx.pocoo.org/markup/inline.html#cros... |
| 22:47 | jacobkm | jezdez: sorry, was a way for a bit. yeah the idea is to just create an aribitrary target wherever you'd like to link |