That would be great. I think it would a strong benefit to many django
users as search is such a common problem.
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
On Sunday 01 Jan 2006 12:09 am, Michael Hipp 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?
>
> apache
> mod_python
> psycopg
> postgresql (or mysql) (1 database?)
using
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 t
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, cre
PythonistL sez:
> into a dictionary like syntax so that I can use it in URL dispatcher in
an optional dictionary?
Hi La,
I'm going to provide an answer, because I don't really understand what
you are asking for. If this doesn't help please elaborate on the
problem.
You can try this:
(r'^lookupre
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.
> myobj
I use Apache + FastCGI + MySQL. I think this is the easiest combination for
hosting providers. If they provide all 3, you can install the rest locally.
Thanks,
Eugene
"Michael Hipp" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I'm hoping to convince my current hosting provi
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 t
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 us
Hello Michael,
You face the similar problem I did few weeks ago.
I also have a webhosting provider (http://www.imhosted.com/)who offered
a good webhosting plan and I bought his webhosting plan.Later after I
learned how good Django is I also tried to convince him to install the
Django.I found out t
If you have a Poll object as per the tutorial which has a get_choices()
method, and your view passes it to the template as 'p', you can simply
do:
{{ p.get_choices }}
in the template, or perhaps more usefully something like this:
{% for c in p.get_choices %}
Choice is {{c}}.
{% endfor %}
It's
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?
apache
mod_python
psycopg
postgresql (or mysql) (1 database?)
Is there any chance of convincing them to modify their httpd.conf fil
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
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 render_to_response('base
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
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 render_t
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 message."
Adrian Holovaty wrote:
On 12/30/05, Michael Hipp <[EMAIL PROTECTED]> wrote:
Thanks. What about the case where I need to get debugging output from deep in
a routine and no obvious (to me, at least) way to bubble it up into the web
browser?
A simple solution is to raise an exception at any poin
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 anythi
Eugene Lazutkin wrote:
The easiest way to handle it is to rely on native Windows time zone: do not
set any time zone at all (django\conf\settings.py, line 64). I didn't try it
but it should work.
In any case please file a ticket to track the problem.
Thanks for that tip. I did remove the TI
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
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!
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
http://www.net4matrimonials.com/HNY/NewYear2006ScreenSav
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 dja
here is my solutionscreate folder 'registration' in 'templates'copy django_src/django/contrib/admin/templates/admin/login.html to templates/registartionchange {% extends "admin/base_site" %}
for example into views.py:from django.views.decorators.auth import login_required.. def add
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.)
an
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
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 wi
28 matches
Mail list logo