0
votes
0
comments
956
views

Passing variable urlname to url tag in django template

0 votes, 0.00 avg. rating (0% score)
What I’d like to do (for a recent changes ‘widget’ – not a django widget in this case) is pass a urlname into my template as a variable, then use it like so: {% url sitechangeobject.urlname %} Where urlname is a string containing a valid name for a url. Is this possible? The template keeps […]
0
votes
0
comments
4,162
views

Writing a tokenizer in Python

0 votes, 0.00 avg. rating (0% score)
I want to design a custom tokenizer module in Python that lets users specify what tokenizer(s) to use for the input. For instance, consider the following input: Q: What is a good way to achieve this? A: I am not so sure. I think I will use Python. I want to be able to provide […]
0
votes
0
comments
4,099
views

Maintaining Logging and/or stdout/stderr in Python Daemon

0 votes, 0.00 avg. rating (0% score)
Every recipe that I’ve found for creating a daemon process in Python involves forking twice (for Unix) and then closing all open file descriptors. (See http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ for an example). This is all simple enough but I seem to have an issue. On the production machine that I am setting up, my daemon is aborting – […]