Thanks Michael, that sounds like exactly what I was looking for!
--~--~-~--~~~---~--~~
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
Hi,
I read in the docs that if I cannot provide permissions at object instance
level using the Meta Permissions.
What is the best way to set permissions rights for indvidual objects, says
articles, where on indvidual article I can set
based on choices -- can be edited by all, cannot be
Hi Everyone,
after a reboot of my server i am getting this error on my homepage:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File
Honza, you're right again. The problem was with my function, which was
being decorated, not how I was using the C{login_required} decorator.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users"
I think you're looking for the save-and-delete hooks:
http://www.djangoproject.com/documentation/models/save_delete_hooks/
They will allow you to make the changes before the object is
saved without overriding django's own internal save
functionality.
If I understand this correctly, it's for
That solved the problem completely. Thank you, Honza!
Honza Král wrote:
How does your ENTIRE urls.py look?
it looks like you supplied a prefix (mysite.www) to the patterns
function, so that it is prepended to every view name you put there...
remove it and it should be OK
On 1/14/07,
By default django does not serve those files for you. MEDIA_ROOT is a value
for where uploaded media is stored (and other media too) and MEDIA_URL is
its peer, telling it where to link (over HTTP) for the files in MEDIA_ROOT.
If you want the internal development server to serve the media files
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
What's the easiest way to write an add manipulator that automatically
provides the current authenticated user for that field?
What I usually do is write the manipulator so its __init__ takes an
extra argument -- a user -- and have its save()
I think you're looking for the save-and-delete hooks:
http://www.djangoproject.com/documentation/models/save_delete_hooks/
They will allow you to make the changes before the object is saved without
overriding django's own internal save functionality.
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
On 14/01/2007, at 10:29 AM, Honza Kr l wrote:
> On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
>>
>> I have a model with a required field of ForeignKey(User)
>>
>> What's the easiest way to write an add manipulator that automatically
>>
I have not yet used Tramline with Django I am expecting to do so in
case I need to rewrite a Zope application. I have had good experience
using JUpload (again with Zope not Django).
It might be that one needs to deploy the Tramline on a separate mod
python handler not the one Django is running
Hi all,
I'm looking for a way to store and use floating point values with the
Django models. models.FloatField won't do, since that's (generally)
implemented as numeric in the db, I believe, and I'm having to deal
with values ranging from eg 5.5e5 to 5.5e55; that is, they would have
Hi,
I added it to the wiki, in a page linked to:
http://code.djangoproject.com/wiki/ServerArrangements
in a new index called "FastCGI init scripts" as you proposed.
Thanks,
G
On 1/12/07, Michael Radziej <[EMAIL PROTECTED]> wrote:
Hi,
could you put this into the wiki? This type of stuff is
Hello,
I'm trying to debug some model functions by setting up a script to use
an environment similar to "manage.py shell". I can get a single item
from the model from the command line, but when I use the script I get a
StopIteration exception.
More generally, I'm very new to django and pretty
Hello All!
I guess, I must try to be more specific.
What I am trying to achive is, to add mate names 'description' and
'keywords' to my flat page template and to admin.
Thanks for any help and idea.
On Jan 14, 10:01 am, "zehi" <[EMAIL PROTECTED]> wrote:
Hello,
Regarding
On 14/01/2007, at 10:29 AM, Honza Král wrote:
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
I have a model with a required field of ForeignKey(User)
What's the easiest way to write an add manipulator that automatically
provides the current authenticated user for that field?
do not
Howdy Folks,
In case it may help someone else who is interested in using Django with
FastCGI on DreamHost, I have posted my setup notes here:
http://www.gordontillman.info/Development/DjangoDreamhost
--gordy
--~--~-~--~~~---~--~~
You received this message
Howdy Gang,
I noticed something interesting with newforms and I'm wondering if I'm
doing the right thing or not.
Let's say I have the following in one of my forms:
customer_type = forms.MultipleChoiceField(
required=False,
choices=[(c.id,c.description) for c in
I'm having a bit of trouble with stockphoto
http://www.carcosa.net/jason/software/django/stockphoto/
Basically, I've followed the install /exactly/ as it says in the readme
file, and everything seems to go fine until I go to the admin and try
to view one of the photos which has been uploaded.
I am curious about the best way to join a single table.
I currently want to select some users:
users = User.objects.order_by('username')[:30]
And also at the same time, select their "profile" information from the
module 'user_profile'.
If I use select_related, I would get a massive
On 1/14/07, Mark Striebeck <[EMAIL PROTECTED]> wrote:
Hey, that's exactly what I needed too. But when I tried it, I got a
OperationalError: (1140, 'Mixing of GROUP columns (MIN(),MAX(),COUNT()...)
with no GROUP columns is illegal if there is no GROUP BY clause')
my bad... sorry
try
Try something around
{{ for field in form }}
{{ field }}
{{ endfor }}
Works for me.
-Original Message-
From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of gkelly
Sent: Tuesday, January 09, 2007 9:21 PM
To: Django users
Subject: Re: dynamic newforms in a
Hey, that's exactly what I needed too. But when I tried it, I got a
OperationalError: (1140, 'Mixing of GROUP columns (MIN(),MAX(),COUNT()...)
with no GROUP columns is illegal if there is no GROUP BY clause')
I'm using MySQL - maybe I need a different syntax there. But I can easily
use SUM
Here's an opportunity I posted recently on craigslist. Given my
particular interest in finding a Django guru, I wanted to call it to
the attention of this group...
-
Reply to: [EMAIL PROTECTED]
Date: 2007-01-09, 12:04PM
I am a veteran early stage technology company executive who is
I just read Honza Král's post where he describes handling this in
__init__:
http://tinyurl.com/ync6y9
--
Jeff Bauer
Rubicon, Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to
I've been using newforms for a few days now and just
ran across something in ChoiceField that might be worth
sharing.
The most common use case for a choice field is to
pass a static list of choices. In the example
below, it's a list of flavor choices:
model.py:
class Flavor(models.Model):
Hi,
I'm having a little trouble with edit_inline: I've created a basic
model in which I want an Address to be displayed as inline to an Event
as can be seen:
http://dpaste.com/4666/
however, nothing is displayed inline, all I get is an empty select box
next to address, with not even a '+'
On 1/14/07, James Tauber <[EMAIL PROTECTED]> wrote:
I have a model with a required field of ForeignKey(User)
What's the easiest way to write an add manipulator that automatically
provides the current authenticated user for that field?
do not write it at all, use generic views and wrap it in
using ical would probably be interesting too...
http://www.devoesquared.com/Software/iCal_Module
On Jan 14, 3:48 am, "mediumgrade" <[EMAIL PROTECTED]> wrote:
I have written an application that keeps track of appointments for my
technicians. My partners would like to be able to view the
Hi,
I've done something very similar myself and I've found the python
module 'calendar' very useful, specially the monthcalendar function.
If you're using the 2.5 version, they have the HTMLCalendar class,
that looks also very promising :-)
If you are interested in the specific code, send me
When i started working on this app 0.95 was just released, so i thought
it would still be somewhat up to date. I will check the connection from
the db backend and if indeed there are multiple connection open at the
same time i will be updating to the newest version.
thanks for your help,
Condredge,
Excellent work on this!
Thanks!
Do I need to get the new version if I'm only use AS 2?
You don't need to get the new version, but
I recommend you to use the new one bacuase
some minor bugs were fixed.
Do you know if it works with the Development version
of Django (which
The ulipad editor's author limodou had started a project 'SharePlat',
Though the descriptions are written in simplified chinese, you could
still browse the svn to get figure out of it.
http://wiki.woodpecker.org.cn/moin/SharePlat
--~--~-~--~~~---~--~~
You
I have a model with a required field of ForeignKey(User)
What's the easiest way to write an add manipulator that automatically
provides the current authenticated user for that field?
James
--
James Tauber http://jtauber.com/
journeyman of some http://jtauber.com/blog/
Hello,
Regarding the http://www.djangoproject.com/documentation/flatpages/ I
try to:
1 based on django/contrib/flatpages/models.py my app named b - O.K.
2 I'm trying to add to class FlatPage:
keywords = models.CommaSeparatedIntegerField(_('keywords'),
maxlength=200)
35 matches
Mail list logo