Re: How to get HTTP method given HttpRequest?

2006-04-09 Thread Malcolm Tredinnick
On Mon, 2006-04-10 at 03:45 +, Alexis Smirnov wrote: > Hello, > > A part of my django app is a REST-type web service API. In the views > that implement this API I and would like to have a quick way to find > the method (aka "verb") of an HTTP request - at least GET or POST. > Some POSTs may h

Re: startapp creating urls.py?

2006-04-09 Thread SmileyChris
+1 to creating urls.py -1 to changing project-wide URLConf +1 to comment to copy in urls.py :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django

How to get HTTP method given HttpRequest?

2006-04-09 Thread Alexis Smirnov
Hello, A part of my django app is a REST-type web service API. In the views that implement this API I and would like to have a quick way to find the method (aka "verb") of an HTTP request - at least GET or POST. Some POSTs may have an empty body. I found that WSGIRequest has "environ" map, with

Re: startapp creating urls.py?

2006-04-09 Thread Seth Falcon
"James Bennett" <[EMAIL PROTECTED]> writes: > How would people feel about changing that so that 'manage.py startapp' > creates a urls.py in the app directory, I think that's a nice idea, especially since a per app urls.py seems to be recommended. +1 > and maybe generates the appropriate includ

startapp creating urls.py?

2006-04-09 Thread James Bennett
A good question was just raised by a friend of mine who's trying out Django: we encourage the use of a URLConf for each application to ensure pluggability, but manage.py doesn't create one when you start a new app. How would people feel about changing that so that 'manage.py startapp' creates a u

Re: More specific CSS rules for the admin

2006-04-09 Thread oggie rob
> Take zyons.com for example, a open source forum app I'm developing. I grabbed > the admin template modified it slightly and pushed it out. zyons.com is about the level of admin L&F customization that I was thinking about - tweaking CSS & templates just a little. Even just colors. -rob --~-

Re: Connections not being closed in m-r

2006-04-09 Thread Adrian Holovaty
On 4/6/06, Seth Falcon <[EMAIL PROTECTED]> wrote: > So it looks like the Python Dispatcher project has some updates > related to this. On their website_ they have: > > # Version 1.0.3 > > * Patch bug in SafeRef deletion where traceback module has already > been deleted by interpreter

installperms and/or sqlinitialdata

2006-04-09 Thread Rudolph
Hello, I'm trying to generate the SQL code to insert permissions for a specific app in Magic Removal. The installperms option has been removed in Magic Removal (this is not yet mentioned on the M-R wiki page!). And sqlinitialdata just gives me an empty 'begin; commit;'. My model does have an 'Adm

Re: More specific CSS rules for the admin

2006-04-09 Thread Ian Holsman
On 4/10/06, oggie rob <[EMAIL PROTECTED]> wrote: > > > My point is not that you should or shouldn't have to write your own form > > code. My point is that (in my mind anyway) needing to write your own styles > > is not a barrier to reusing the admin form code. > > Yes, I agree. Like I mentioned,

Re: More specific CSS rules for the admin

2006-04-09 Thread oggie rob
> My point is not that you should or shouldn't have to write your own form > code. My point is that (in my mind anyway) needing to write your own styles > is not a barrier to reusing the admin form code. Yes, I agree. Like I mentioned, the only limitation I've faced with the styles that come wi

Re: More specific CSS rules for the admin

2006-04-09 Thread Wilson Miner
My point is not that you should or shouldn't have to write your own form code. My point is that (in my mind anyway) needing to write your own styles is not a barrier to reusing the admin form code. Styling forms (once) is a lot less tedious than writing them (over and over). And style is somethin

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Jeroen Ruigrok van der Werven
On 4/8/06, Petar Marić <[EMAIL PROTECTED]> wrote: > 2. What about languages that have way too many symbols in them, ie > Chinese, Japanese, Thai? AFAIK, in them one symbol represents a > whole word. > Should we include them also or leave them out? Or does someone out > there have a better solution?

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Arthur
> @Arthur: You know what? Why don't we just do whatever feels more > natural to our language? Then again, I can sense some transliteration > collisions on the way. Absolutely, this should be language specific. If you look at the proposed list, you see that there are different transliteration patt

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Petar Marić
> If we decide to go the sound-alike route, a good resource to start > from might be the Textpattern CMS (which is in the process of > transitioning to a BSD license, so we could eventually base something > on their work once that happens), which includes a file used for > transliterating URL slugs

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Arthur
> > I suggest we change urlify.js in a way that will not block out > > non-English chars. Instead it should translate them into their English > > feel-a-like, as suggested in #1602. > > If we decide to go the sound-alike route, a good resource to start > from might be the Textpattern CMS [...]> > h