My apologies for a clerical error on my part...
I had incorrectly checked out the entire SVN "django/trunk" files
instead of just the "django/trunk/django" files to my "site-packages/
django" dir. I've fixed that problem, and now all is quiet on the
tutorial front :)
-Cheers,
-Basilisk96
--~--~
Hello.
Does anyone have an idea how to create a specific sort order for a
select box that represents a foreign key field in a django admin
change form.
For example, when adding a new "book" object via the django admin
change form, one may see "Name", "Author", and "Category" inputs. The
"Categor
If you put /print "hello"/, the server should print it with given
delay (on the server side).
I think that you should use JS/AJAX to update the page after it is
sent to the user (script on the user side).
--~--~-~--~~~---~--~~
You received this message because you a
Just wanted to reply to myself that I fixed my problem. I needed to store all
the values from my get into the dictionary
Thanks,
Jeff
-- Original message --
From: jeffhg58 <[EMAIL PROTECTED]>
>
> Hi,
>
> I currently have an update form which contains a dictionary of
Hi,
I currently have an update form which contains a dictionary of the
field names and values.
I was wondering how you perform the update using a dictionary.
Here is a snippet of my code
def save(self, new_data, event_id):
eventdetrec = Events.objects.get(pk=event_id)
event_dict = {}
Hi,
I'm trying to use Time.sleep function on printing, here is the code:
def sleep(request):
res = HttpResponse()
res.write("hello")
time.sleep(3)
res.write("hello");
return res
But it doesn't work (Page waits 3 seconds and prints "hellohello"),
how can i
Greetings to all http://oritonja.tripod.com/free-hentai-porn-galleries.html
free hentai porn galleries
http://oritonja.tripod.com/inuyasha-and-kagome-hentai-porn.html
inuyasha and kagome hentai porn
http://oritonja.tripod.com/inuyasha-and-kagome-hentai-porn.html
inuyasha and kagome hentai porn
I've given up waiting and trying. I have a hack in the form of a
template tag:
{% if request.session.good_message_box %}
{% for m in request.session.good_message_box %}
{{ m }}
{% endfor %}
{% empty_messages "good_message_box" %} <<
{% endif
Thank you Luis!
I hope that internationalization will replace English months :)
--~--~-~--~~~---~--~~
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
I've have a VIEW, which can return either a JSON file or an html template.
Does anybody know how I can use javascript, so the browser can determine
whether the response is either JSON or html text?
I presume that there is something in javascript that can determine the
content-type of the respo
from django.views.generic.simple import direct_to_template
view:
return direct_to_template(request, 'template.htm', extra_context)
On top of that, use a context_processor (follow alex's link)
--~--~-~--~~~---~--~~
You received this message because you are subsc
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
On 16 дек, 20:41, shabda <[EMAIL PROTECTED]> wrote:
> Since I need my logged in user to be available to each template, I
> need to go and add context_instance=RequestContext(request) to each
> view. I
Go TO
http://www.AWSurveys.com/HomeMain.cfm?RefID=only1salah
click
Creat A free Account
Sign Up and enjoy your time
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
Shabda,
I added the following code to my view:
for s in s2:
s.price.name *= s.price.name * .9
s.price.save()
However, I now get the error:
TypeError at /plush/chandra/antara/108/multi/
unsupported operand type(s) for *: 'Decimal' and 'float'
On Dec 16, 1
How about
for s in s2:
s.price.name *= s.price.name * .9
s.price.save()
You are getting a type error coz you can not mutlipy a Model object by
float, and that is what s.price is. BTW s2[0].price * .9 would not
have worked as well, because of the same reasons!
On Dec 16, 11:08 pm,
Hi,
On Sun, Dec 16, 2007 at 10:08:14AM -0800, Greg wrote:
>
> Forest,
> Here are my models
>
> class Style(models.Model):
> name = models.CharField(maxlength=200, core=True)
> image = models.ForeignKey(Photo)
> collection = models.ForeignKey(Collection,
> edit_inline=models.TABULAR,
Forest,
Here are my models
class Style(models.Model):
name = models.CharField(maxlength=200, core=True)
image = models.ForeignKey(Photo)
collection = models.ForeignKey(Collection,
edit_inline=models.TABULAR, num_in_admin=1, num_extra_on_change=3)
sandp = models.ManyToManyField(Cho
Hi,
On Sun, Dec 16, 2007 at 08:37:08AM -0800, Greg wrote:
> I've tried the following:
>
> for s in s2:
> s.price *= s.price * .9
>
> However, I still get the following error:
>
> TypeError at /plush/chandra/antara/108/multi/
> unsupported operand type(s) for *: 'Price' and 'float'
Can
Since I need my logged in user to be available to each template, I
need to go and add context_instance=RequestContext(request) to each
view. Is there any setting which can make RequestContext available to
each view?
A related question is, I have some objects I need to make available to
each page,
Hello,
This exact situation happens to me sometimes ago and the root cause is
that either you have an error in your urls.py or you are using the
decorator "user_passes_test".
In order to solve the first one you should comments all the lines in
urls.py and uncomment line after line. This is the the
Just for reference I found a better way to do this, used
SelectDateWidget from here:
http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/forms/extra.py
Thanks django community for this great project.
Regards,
Luis
On Dec 15, 4:04 pm, l5x <[EMAIL PROTECTED]> wrote:
> Look h
Forest,
I've tried the following:
for s in s2:
s.price *= s.price * .9
However, I still get the following error:
TypeError at /plush/chandra/antara/108/multi/
unsupported operand type(s) for *: 'Price' and 'float'
How can I tell what type my s.price is? In order to s
Yes, Ubuntu 6.06.
Other services do work (ssh, munin-node).
An apache restart appears to do nothing.
On Dec 14, 4:27 pm, John M <[EMAIL PROTECTED]> wrote:
> Im assuming Linux?
>
> Do other services work? Could be network.
>
> What is you just restart apache, what happens?
>
> J
>
> On Dec 14,
I've completed Tutorial 1 without problems.
I am running the following:
WinXP SP2
Python 2.5
Django current SVN version, rev 6917
MySQL 5.0
Apache 2.2.6
Instead of the example "mysite" I used "amvsite", and everything in
Tutorial 1 worked well.
Moving on to Tutorial 2, I followed the instructions
Hi,
On Sun, Dec 16, 2007 at 07:59:52AM -0800, Greg wrote:
> I've added that code into my view. However, now I'm getting the
> following error:
>
> TypeError at /manu/coll/style/
> unsupported operand type(s) for *=: 'Price' and 'float'
>
>
>
> I can't do a int(s.price), becaus
Ned,
I've added that code into my view. However, now I'm getting the
following error:
TypeError at /manu/coll/style/
unsupported operand type(s) for *=: 'Price' and 'float'
I can't do a int(s.price), because then I get a 'Can't assign to
function call' error.
On Dec 15, 9:1
Is there a way that the admins can limit the amount of spam coming
from this mailing list? I am subscribed to many mailing lists and I
haven't received even a fraction of the spam that I am getting from
this group.
--~--~-~--~~~---~--~~
You received this message be
ok. i made a change which includes your modified-true suggestion and
a possibly relevant solution found here:
http://code.djangoproject.com/wiki/NewbieMistakes#Appendingtoalistinsessiondoesntwork
if 'good_message_box' not in request.session:
request.session['good_message_box'] = Me
Your objects aren't ids, so you must get ids explicitly.
On 16 дек, 16:34, Michal Ludvig <[EMAIL PROTECTED]> wrote:
> Tim Chase wrote:
> >> How can I retrieve all objects that are *not* in that list?
>
> >> Something like "Model.objects.filter(id__not_in = processed_ids)".
> >> Unlike filter(id__
Tim Chase wrote:
>> How can I retrieve all objects that are *not* in that list?
>>
>> Something like "Model.objects.filter(id__not_in = processed_ids)".
>> Unlike filter(id__in=...) which works just fine the __not_in modifier
>> apparently isn't understood by django.
>
>
> As commented recently
> How can I retrieve all objects that are *not* in that list?
>
> Something like "Model.objects.filter(id__not_in = processed_ids)".
> Unlike filter(id__in=...) which works just fine the __not_in modifier
> apparently isn't understood by django.
As commented recently on the list, you want "filt
Hi all,
I have a simple model with 'id' as a primary key and I have a list of
IDs that were already processed in variable 'processed_ids'.
How can I retrieve all objects that are *not* in that list?
Something like "Model.objects.filter(id__not_in = processed_ids)".
Unlike filter(id__in=...) whi
Fixed, to get the code see http://www.djangosnippets.org/snippets/513/
Enjoy!
On Dec 13, 9:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> OK, you're spot on there. That'll teach me to evan glance at my own
> code before posting my cries for help! (And thanks for the tip about
> get_inte
I fixed this -- not Django's fault at all. For the full field code, go
to http://www.djangosnippets.org/snippets/513/
On Dec 13, 8:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hey All,
>
> I've just written a custom model field for storing anything which is
> pickle-able (generally thi
Following up on my previous post:
http://groups.google.com/group/django-users/browse_thread/thread/20ff5190a4b46d05/68b5fe2d6770fd26?lnk=gst&q=class+definitions#68b5fe2d6770fd26
I can more precisely articulate what it is I'm trying to do now, and
would like to once again ask for advice on the bes
Andrew schrieb:
> That's a good thought, but unfortunately that's not the way multiple
> inheritance works... only the first method in the chain gets called.
Ah, your right. Although you can still call models.Model.save() in your
ChangeImplementor.save() yourself, or even do something like:
c
Im make a static site with flatpages and a custom templatetag to
generate a menu for the list of flatpages :)
its all!!
MrJogo escribió:
> I'd like to migrate a currently static website to Django to add some
> dynamic features to it and I have some questions about how best to do
> that.
>
> Th
37 matches
Mail list logo