#django
Aug. 20th, 2008
| 23:55 | kojiro | <-- behind the times |
| 23:55 | jinzo | ^^ damonj |
| 23:55 | damonj | ah, is there anything that displays all the variables that something has? |
| 23:56 | mattmcc | jinzo: That's... not where dir() comes from. |
| 23:56 | jinzo | damonj, scrach that url, I clicked it too quick, |
| 23:56 | jinzo | mattmcc, I was too quick, sorry for that |
| 23:56 | jinzo | http://www.network-theory.co.uk/docs/pytut/dirF... <-- that'll be right |
| 23:57 | jinzo | again, I stay corrected ( & note to myself, that I need to sleep as I'm talking/coding nonsense lately ) |
| 23:57 | kojiro | |
| 23:57 | kojiro | more general talk about introspection |
| 23:58 | kojiro | but dir() is there as well |
| 23:58 | jb0t | if i add request to the context processors, and i am allowing users to create emails by providing a template that uses the {{variable}} style replacement, will that be subject to them having the ability to do something like {{request.user}} ? |
Aug. 21st, 2008
| 00:00 | damonj | is there a way to see what's inside *args and **kwargs? |
| 00:00 | mattmcc | They're just a list and dict. |
| 00:01 | kojiro | damonj: ', '.join(), for example |
| 00:04 | damonj | let me ask, is there any easy way in a generic/default admin page to display a field that's editable = false? |
| 00:04 | kojiro | ok, one step at a time: first I'll set up apache to auth against AD, then I'll tell django to auth against apache :/ |
| 00:05 | mattmcc | There are several LDAP auth backend snippets floating around. |
| 00:05 | kojiro | mattmcc: Most of the google results I've found have been piecemeal |
| 00:05 | codejunky | Hello, is there a possibility like the modelForms to just display the data of a model? |
| 00:05 | codejunky | Without writing all the field names? |
| 00:06 | mattmcc | codejunky: Well, that's not really what forms are for. You can of course write your own simple function to render a model in some format. |
| 00:06 | codejunky | ah okay, without knowing the field names? So I want something generic to show the data of a model, with fieldname and content |
| 00:07 | mattmcc | You can get the field names from the model's metadata. |
| 00:07 | mattmcc | kojiro: http://www.djangosnippets.org/tags/ldap/ ? |
| 00:07 | codejunky | Is this mentioned in the documentation, or can you give me a hint how? |
| 00:08 | kojiro | mattmcc: I guess I've been googling the wrong things. I just found that -- thanks |
| 00:08 | jb0t | ive made a custom context processor, but my import is failing. "alerts.context_processors.alerts" the file is one up from my root, in dir called alerts, file called context_processors.py and def called alerts. what did i miss? |