Re: Multiple URLs, Common View

2010-07-20 Thread joconnell
Hi, If you use something like r'^(?P.+)/$' then a variable called page will get passed to your view. It will contain the string that has been matched against the specified pattern (in this case any character 1 or more times (.+)) I think django uses standard python regular expressions in its ur

Re: PIL failed in virtualenv?

2010-08-04 Thread joconnell
Hi, A quick search on google turned up the following: http://trac-hacks.org/ticket/6321 It looks like it might be a similar issue. Was due to missing dependencies - python-dev (among others) Maybe if you use pip to install, it might take care of these dependencies for you? John On Aug 4, 7:4

Re: Best practice for maintaining the "Django stack"

2010-08-13 Thread joconnell
Hi, I'd second that. PIP and virtual env have worked well for me too. You could also combine it with fabric in order to automate the building of different environments, so once you get a stable working environment you can use pip's 'freeze' command to create a requirements file with the exact vers

Re: How to create navigation urls in an intelligent manner

2010-08-26 Thread joconnell
Hi Uwe, You might be able to leverage the 'url' template tag which comes with django? e.g. For the 'add observation' example above, if you pass in the country code as part of the context you return in your view(s), or leverage middleware to automatically add it to every response based on the requ

Re: Advice needed on bundling applications

2010-09-07 Thread joconnell
Hi Benedict, >From what I have observed, if you are using django.contrib.auth for your login/logout feature then you should be able to login once from whichever app and then all subsequent requests from that browser (unless you clear the cache/delete cookies) will be considered to have been made f

Re: django tinyMCE is normal text field instead of rich text formatting? a fix please.

2010-09-13 Thread joconnell
Hi, What does your admin.py look like? You might need to add a media class to your admin classes e.g. class Media: js = ('/js/tiny_mce/tiny_mce.js', '/js/textareas.js') I never tried to get tinymce working with the admin mind, I just spotted it in the below tutorial: ht