Re: Site testing How-To

2006-06-06 Thread Joseph Kocherhans
On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Does anyone know of a way to get all attributes of a module into > another module while overriding just a few? I think you want tocreate something like testsettings.py, and in that file do something like: from myproject.settings import

Re: Log file analyze

2006-06-06 Thread Adrian Holovaty
On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am using django directly with python manage.py runserver. I do not > need any apache between. Hi Kim, There's no way to alter the log output of Django's runserver. It's not intended to be used for production sites, so adding that

Re: Log file analyze

2006-06-06 Thread [EMAIL PROTECTED]
I am using django directly with python manage.py runserver. I do not need any apache between. Kim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Site testing How-To

2006-06-06 Thread Don Arbow
On Jun 6, 2006, at 6:42 PM, Todd O'Bryan wrote:Does anybody have a best practice (or not-too-annoying practice) for  testing?I think I'll use Selenium to test my site, but how should I change to  a test database, populate the test database, etc.?If you want to test your model relationships, I find

Re: I think I'm doing something wrong...

2006-06-06 Thread Elver Loho
Darn, well, that fixed it :P And to think I had the same problem with TurboGears a while bak. Sheesh. Thanks, everyone! :) Elver On 6/7/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > Elver Loho wrote: > > > > Sadly it seems you, along with so many, many others, have fallen into > the

Re: I think I'm doing something wrong...

2006-06-06 Thread Max Battcher
Elver Loho wrote: > Sadly it seems you, along with so many, many others, have fallen into the easiest problem in the book. Your action address should have a following /. http://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOSTdata -- --Max Battcher--

Re: I think I'm doing something wrong...

2006-06-06 Thread Zanchey
Haha, three replies within two minutes. Sorry for the spam. David Adam [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: I think I'm doing something wrong...

2006-06-06 Thread Zanchey
Elver, I haven't had much of a play with it, but I get much better results from your little test program if I add a trailing slash to the action field of your form. i.e. - + This avoids the redirect that Django sends when it receives a URL without a trailing slash, trashing your form

Re: I think I'm doing something wrong...

2006-06-06 Thread Malcolm Tredinnick
On Wed, 2006-06-07 at 05:00 +0300, Elver Loho wrote: [...] > URL: > (r'^make/$', 'latestbooks.latest.views.make_sidebar'), > > HTML: > > > Ainult samal > paeval ilmunud raamatud > Täna ja eile ilmunud >

Re: Django Article on Developerworks

2006-06-06 Thread Don Arbow
On Jun 6, 2006, at 10:25 AM, Ian Maurer wrote: > > IBM has just posted an article on mine on the IBM website (hasn't made > it to the front page, yet): > > http://www-128.ibm.com/developerworks/linux/library/l-django/ Good job. > > If you notice any errors, kindly send them to me via email

DateField and DateTimefield do not really validate

2006-06-06 Thread Rudolph
Hi, When providing an invalid date like 2006-2-31 to a DateField or DateTimeField, the validation doesn't catch that and an unhandled exception is raised. It shouldn't be too hard to validate for valid dates since you can rely on the Python datetime module. I think this is a bug, or at least a

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread James Bennett
On 6/6/06, Mike <[EMAIL PROTECTED]> wrote: > Rudolph and James Bennett, did you create your own custom templatetags? > If so, how did you go about doing it? I've been working on building and > adding menus to django templates that are populated with other content > as well, and I'd be interested

Re: Backing HTML 'Compnents'

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I have page components that are common across many of my pages. Here > are a few of them: > > == A user specific menu, cached in the session. > == A shopping cart, cached in the session. > == A list of recently visited items, cached in

Re: Backing HTML 'Compnents'

2006-06-06 Thread Brett Parker
On Tue, Jun 06, 2006 at 12:46:00PM -0700, Doug Van Horn wrote: > My current approach to making these objects available to a template is > to have a 'base_dict(request)' function that returns a dictionary > containing the common things under well known names (e.g., { 'menu': > menu, 'cart': cart,

Backing HTML 'Compnents'

2006-06-06 Thread Doug Van Horn
I'm not sure if this has been discussed. My searches yielded no fruit. I have page components that are common across many of my pages. Here are a few of them: == A user specific menu, cached in the session. == A shopping cart, cached in the session. == A list of recently visited items,

Re: Harness our collective opinions -- Digg Django

2006-06-06 Thread John Melesky
Adrian Holovaty wrote: > The IBM Developer Works article about Django is a good opportunity to > get us some more exposure. If you have a Digg account (digg.com), Digg > it! Also on reddit (reddit.com): http://programming.reddit.com/info/7bzf/comments -johnn

Harness our collective opinions -- Digg Django

2006-06-06 Thread Adrian Holovaty
Hey everybody, The IBM Developer Works article about Django is a good opportunity to get us some more exposure. If you have a Digg account (digg.com), Digg it! http://digg.com/programming/Develop_for_the_Web_with_Python_Django_Web_Framework Adrian -- Adrian Holovaty holovaty.com |

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread David Robinson
Douglas, James, Wilson, Rudolph: Thanks - that clears things up. It's quite encouraging to see that we were pretty much headed in a viable direction. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > 1) Create two separate media directories: /media/public and > /media/restricted > 2) Configure Apache to serve /media/public directory directly > 3) Configure Apache to serve the /media/restricted directory using > mod_python > 4) Set a url entry

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Jeremy Dunck
On 6/6/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > Wouldn't that be a use case for djangos built in (but hardly documented) > AUTH_PROFILE_MODULE setting? This was just written up over here: http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model :)

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Steven Armstrong
On 06/06/06 17:11, Todd O'Bryan wrote: > On Jun 6, 2006, at 11:03 AM, Adrian Holovaty wrote: > >> >> On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: >>> Here's the problem: How do I get to those in a template? I know >>> there's only one UserInfo object per User object, and ideally I'd >>>

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Rudolph
Just like James Bennett, I would use templatetags for suchs "blocks" with little bits of information. I even generate a menu by using a templatetag. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Additional controls in admin interface?

2006-06-06 Thread James Mulholland
Wilson, thanks -- that answers both issues. Really appreciate your website, btw: it was one of the reasons I started learning to use Django. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django Article on Developerworks

2006-06-06 Thread James Bennett
On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: > If you notice any errors, kindly send them to me via email and I will > see if I can get them fixed. Couple things I noticed: * The "most recent Python" is 2.3.5? ;) * Right below Listing 9, tt mentions using __repr__ on a model, but the admin

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Wilson Miner
Or specify the dimensions in ems if you want a closer equivalent to rows and columns. On 6/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > > Wondering if there's a way to specify how many rows and columns the > > generic update page uses for a

Re: Django Article on Developerworks

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Ian Maurer <[EMAIL PROTECTED]> wrote: > IBM has just posted an article on mine on the IBM website (hasn't made > it to the front page, yet): > > http://www-128.ibm.com/developerworks/linux/library/l-django/ > > If you notice any errors, kindly send them to me via email and I will > see

Re: Additional controls in admin interface?

2006-06-06 Thread Wilson Miner
You're looking for the "filter_interface" option for the ManyToManyField. You can find out more here: http://www.djangoproject.com/documentation/model_api/#many-to-many-relationships Also, if you specify an ordering meta option on your model, your ManyToManyField will be sorted by the field you

Additional controls in admin interface?

2006-06-06 Thread James Mulholland
Excuse me if this is a daft question -- I'm new to both Python and Django, but I guess it's a credit to both of them that I'm doing some fairly nifty stuff building a new corporate intranet. One feature I'd like to add is a meeting scheduler, where someone can set up a meeting and invite various

Django Article on Developerworks

2006-06-06 Thread Ian Maurer
IBM has just posted an article on mine on the IBM website (hasn't made it to the front page, yet): http://www-128.ibm.com/developerworks/linux/library/l-django/ If you notice any errors, kindly send them to me via email and I will see if I can get them fixed. Thanks to all of the contributors

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread [EMAIL PROTECTED]
> I've got an unusual situation with an app, and I'm wondering if anyone > could make a suggestion. The app will have a number of file upload > fields for uploading files that are _not_ supposed to be made > available to the webserver (as they are private). I'd like for > particular FileFields

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Wilson Miner
Another option is to create it as a flat page with the url "/" and pull in all your content using template tags. On 6/6/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 6/6/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > > 1) create a homepage app to aggregate it all (don't be worried, it can

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
"Adrian Holovaty" <[EMAIL PROTECTED]> writes: > Are you using the Django admin for the file uploads? If not, you can > just write your own views that upload the data to a place of your > choosing. You'd be dealing with request.FILES for this. Unfortunately (?), I am using the Django admin for

Re: Easy way to access extra User stuff in templates?

2006-06-06 Thread Adrian Holovaty
On 6/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Why is it that you can't find stuff until after you send an email > asking about it? > > I actually implemented a context processor, added a > TEMPLATE_CONTEXT_PROCESSORS to my settings.py and then noticed the > line I had missed about list

Easy way to access extra User stuff in templates?

2006-06-06 Thread Todd O'Bryan
I've extended User by providing extra fields (a middle name, preferred nickname, etc.) in a UserInfo model with a User foreign key. I've also written methods for UserInfo for things like formalName () and informalName(). Here's the problem: How do I get to those in a template? I know

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Adrian Holovaty
On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > Wondering if there's a way to specify how many rows and columns the > generic update page uses for a textarea? > > It seems to default to 10 and 40, and I'd like to make this much > larger. Hi Tom, Each form element gets an ID in its HTML, which

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread Jan Claeys
Op ma, 05-06-2006 te 21:44 -0500, schreef Jeremy Dunck: > Kodos is a nice utility for fiddling with regexs: 'Kiki' is another one, written in wxPython. -- Jan Claeys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Nose about future

2006-06-06 Thread Joseph Kocherhans
On 6/6/06, Nagy Károly <[EMAIL PROTECTED]> wrote: > > 1. what are those areas of api or framework where we encounter major > rewrites interfacing with it > 2. arrival time of 1.0 This is the most up to date plan for 1.0 http://code.djangoproject.com/wiki/VersionOneFeatures When will it be

Re: Upgrading to Magic-Removal

2006-06-06 Thread keukaman
Thanks for your help. My hosting company was able to correct the issue and install the magic-removal version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Ajax support, there is no need for reinventing the wheel

2006-06-06 Thread wiz
What is 'lack of ajax support'? We couldn't make ajax fodder with templates? We couldn't just slap to one or another pretty ajax lib? Looks like this is the question of lazyness. I'm pretty happy now with my tiny jah.js + data from generic views and heard about some nice ajax packages. So what

Re: Help with multiple object added on a single form with addManipulator.

2006-06-06 Thread Frankie Robertson
Thanks but that's not what I was looking for. I wasn't interested in the admin. I was interested in manipulators (http://www.djangoproject.com/documentation/forms/), which allow you access to bits of the admin's framework. I was having trouble writing a form to submit both an object and several

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
But how do I show the value of the field in the textarea: is there such as thing as {{ form.emailbody.value }} or something? This is for an update form, so I need to display the current value Thanks, Tom --~--~-~--~~~---~--~~ You received this message because

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Honza Král
simply put there instead of the template tag {{ form.emailbody }} not very ellegant, but works.. On 6/6/06, tomass <[EMAIL PROTECTED]> wrote: > > This is for a generic view. I may have missed this in the doc, but how > do I specify my html? > > I'm currently doing: > > EmailBody: {{

Re: Change cols and row in generic update page textarea

2006-06-06 Thread tomass
This is for a generic view. I may have missed this in the doc, but how do I specify my html? I'm currently doing: EmailBody: {{ form.emailbody }} {% if form.emailbody.errors %}*** {{ form.emailbody.errors|join:", " }}{% endif %} And this is what punches out the: How can I control what

Re: Change cols and row in generic update page textarea

2006-06-06 Thread Honza Král
You mean in the admin page or using a generic view? with the generic view you can specify your HTML, so I don't see a problem there. If you want to add this information to the admin pages, that cannot be done at the moment (please someone correct me if I am wrong), but it would only be a small

order_with_respect_to and edit_inline in MR

2006-06-06 Thread Colleen Owens
Hi, I switched my code over to M-R this past weekend and was surprised that it went pretty smoothly. There are a couple things in my models that aren't working anymore though. The first is order_with_respect_to. I have an inline edited object that I want to order with respect to its related

Re: User Defined Fields in django

2006-06-06 Thread clkratz
Hello, I appreciate the suggestion, but I think that would give up all the usefullness of the framework for those fields. Also, for reporting purposes the data really needs to be in standard database tables, columns and rows. I think I'm going to hack around in the code a bit and see if I can

Internalization: Two DB tables for one Model?

2006-06-06 Thread Aidas Bendoraitis
Hello Django Professionals! I am making a Django-based website that has to be multilingual. Everything is clear about making the admin section and the templates translatable. The problem is multilingual objects. I could think of several approaches to implement internationalization for Django

Change cols and row in generic update page textarea

2006-06-06 Thread tomass
Hi Folks, Wondering if there's a way to specify how many rows and columns the generic update page uses for a textarea? It seems to default to 10 and 40, and I'd like to make this much larger. Thanks, Tom --~--~-~--~~~---~--~~ You received this message because

capistrano/switchtower python equivalent?

2006-06-06 Thread Gábor Farkas
hi, is there something similar to Capistrano (http://wiki.rubyonrails.com/rails/pages/Capistrano) in python? what i'm looking for is a tool which i can configure to do the release-process automatically.. mostly things like: - checkout the newest version of the source code on all the servers

Re: Not possible activate the admin site

2006-06-06 Thread GinTon
Fernando Gutierrez wrote: > Did you svn update from previous trunk to magic-removal? I experienced > this because svn update left a directory urls in > django/contrib/admin/urls/, so i think there was some type of conflict > with the urls.py that is now directly in the django/contrib/admin/ >

Re: Log file analyze

2006-06-06 Thread David Larlet
2006/6/6, Adrian Holovaty <[EMAIL PROTECTED]>: Are you using Apache? If so, this is something you configure inApache's httpd.conf configuration file, not in Django. See the ApacheLogFormat directive: http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#logformatAdrianWhat about a

Re: Django Quick Start with Schema Evolution Support

2006-06-06 Thread Michael Radziej
Ilias Lazaridis wrote: > http://lazaridis.com/core/eval/index.html Your phone contact is not working. I get the impression you're only a scam. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Serious Noobie question, what the $ for in urlpatterns.

2006-06-06 Thread Simon Willison
On 6 Jun 2006, at 03:26, John M wrote: > how does that differ from > > (r'^polls/'), > (r'^polls/(\d+)/$') > > Note the $ is missing from the first line of the second example. > > When you don't have a $ in the polls/ setup, it doesn't scan down to > the other entries. > > Since I'm so

Build your job

2006-06-06 Thread eleanna filippoglou
Dear friend I am glad for your email. From the thousands of e-mails I receive I chose yours too in order to create a group of one from each country. You will be the first from your country and you will have the chance to create successful carrier in your country. By joining this company, you

Nose about future

2006-06-06 Thread Nagy Károly
We are starting a new project soon (within a month, after closing a research phase). Django V1.0 means (as far as i can recall from wiki) "do not expect backward compatibility before 1.0". Obviously major design elements and data models are not affected later, but (watching django version number