Re: Search Functionality

2005-12-31 Thread Kevin
That would be great. I think it would a strong benefit to many django users as search is such a common problem.

Re: Web host for Django, what to ask for?

2005-12-31 Thread James Bennett
On 12/31/05, Michael Hipp <[EMAIL PROTECTED]> wrote: > I'm hoping to convince my current hosting provider (zipa.com) to support > Django. (Switching providers would be a pain right now.) What would I tell > them I need? Depends. If you're on shared hosting, you'll probably want to run Django via

iMpressive compactness

2005-12-31 Thread Dody Suria Wijaya
Had just rewritten a basic portion of my voucher-processing accounting model and logics to django ORM over the new year's week end. So far, it shows up as 15% of the original lines of code, and more readable as well (SQLs are now gone). And with the admin page immediately available for me

Re: Registered and unregistered users

2005-12-31 Thread quentinsf
Well, I've now done part of this. When a user invites someone to the site (by specifying their email address), a new user is immediately created with the email address as username. I wanted a way for one of these users to login. So I've written a function which, given a URL path and a User,

Re: Using Change Manipulators to Update Only a Subset of Model Data

2005-12-31 Thread cpburmester
Luke Plant wrote: > I think the purpose of manipulators is to take the donkey work out > of updating multiple fields. If it's only one field, then why bother > with the manipulator? Just grab the object, read the request.POST data > for the one field, update the object and save it. >

Re: Multiple apps on one page, how?

2005-12-31 Thread James Bennett
On 12/31/05, Michael Hipp <[EMAIL PROTECTED]> wrote: > I'm thinking of the example where I have things that I want to appear around > the perimeter of every page on my site representing the output of numerous > independent apps. This would seem to leave me with two choices: Try writing template

OR lookups

2005-12-31 Thread PythonistL
I found out that for OR lookups I can use complex lookup type e.g. complex=(Q(Subject__contains=SubjectS) | Q(OfferType__contains=OfferTypeS)) But how can I rewrite this complex=(Q(Subject__contains=SubjectS) | Q(OfferType__contains=OfferTypeS)) into a dictionary like syntax so that I can

Re: Multiple apps on one page, how?

2005-12-31 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 31, 2005, at 11:02 AM, Michael Hipp wrote: How do I put multiple apps on one page/template? Just use both apps in the same view:: from django.models.polls import polls from django.models.blogs import entries def my_view(request): return

Re: A very simple application

2005-12-31 Thread Michael Hipp
Jacob Kaplan-Moss wrote: On Dec 31, 2005, at 11:14 AM, Michael Hipp wrote: How do I make this work? In mysite/apps/simple/views.py I have: from django.core.extensions import render_to_response def saysomething(request): assert False, "Test assert" return

Method call in template, how?

2005-12-31 Thread Michael Hipp
In http://www.djangoproject.com/documentation/templates/#variables it says: - Behind the scenes Technically, when the template system encounters a dot, it tries the following lookups, in this order: * Dictionary lookup * Attribute lookup * Method call

Re: A very simple application

2005-12-31 Thread Jacob Kaplan-Moss
On Dec 31, 2005, at 11:14 AM, Michael Hipp wrote: How do I make this work? In mysite/apps/simple/views.py I have: from django.core.extensions import render_to_response def saysomething(request): assert False, "Test assert" return render_to_response('base', {'message': "My

Multiple apps on one page, how?

2005-12-31 Thread Michael Hipp
Still trying to get my brain around how Django works... How do I put multiple apps on one page/template? Explanation: I have my base.html template, different parts of the page need to be fed data from different apps (app1, app2, etc.) The apps are independent and don't (shouldn't) know

Re: MONTHLY NEW JOBS POSTED R AS FOLLOWS :

2005-12-31 Thread Kenneth Gonsalves
On Saturday 31 Dec 2005 7:44 pm, SUNAYANA wrote: > FIRST OF ALL I WISH U A VERY HAPPY & PROSPEROUS NEW YEAR 2006 > Greeting Card From Us are as follows: first spam i have seen on this list -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

MONTHLY NEW JOBS POSTED R AS FOLLOWS :

2005-12-31 Thread SUNAYANA
Hi Dear Members FIRST OF ALL I WISH U A VERY HAPPY & PROSPEROUS NEW YEAR 2006 Greeting Card From Us are as follows: http://www.net4professionals.com/greetings/HNY/HNY2006GREETINGS.html (Created IN Java Applet) Download FREE SCREENSAVER FROM

Re: registration/login or admin/login?

2005-12-31 Thread limodou
2005/12/31, Vladimir Labath <[EMAIL PROTECTED]>: > here is my solutions > > create folder 'registration' in 'templates' > copy > django_src/django/contrib/admin/templates/admin/login.html > to templates/registartion > change {% extends "admin/base_site" %} > > for example into views.py: > from

Re: Images. Stylesheets. Javascripts. Where do I put 'em.

2005-12-31 Thread wiz
On Птн, 2005-12-30 at 20:42 +, scum wrote: > I cannot figure out the `official` place to put images, stylesheets, > and javascripts and the process to access them. Can someone explain > their method of doing this. I'm just root-linking all that stuff to '/media/css/base.css'(js, img, etc.)

Additional User Data?

2005-12-31 Thread Andreas Neumeier
Hello Django Users, I try to have some additional data per user, like DOB, a picture, gender, stuff... My thought was to have a OneToOneField in one of my selfdefined models like that: --- cut --- from django.core import meta from django.models.auth import User class Member(meta.Model): uid

Re: Maybe the easiest tutorial

2005-12-31 Thread Jarek Zgoda
Kenneth Gonsalves napisał(a): >> - the whole ORM-thingy should be split into separate section, as >>it defines the crucial part of application (you can change views >>and controllers in your application, but not the model); the data >>is your customer's treasure. > > there is slideshow on the