is an issue with
Django's development server that limits it to serving a single view at
a time. Can anyone verify this?
Thanks for any clues.
Puff
<<<<< code >>>>>
import urllib
from django.http import HttpResponse
from django.utils import simplejson
#
Thanks Diego. I'd looked at the tutorial as I got started but that
didn't register. It is, of course, the case as when I ran a second
development server on a different port and modified the URI
appropriately things worked.
On May 20, 9:45 pm, Diego Ucha <[EMAIL PROTECTED]> wrot
We are considering using Django as part of a HA cluster web services
application that has some near real time elements. While much of our
application seems well suited to Django some of the near real time
elements are concerns and we were hoping that this list might provide
some perspective on t
Thanks Graham and Ben for the prompt feedback. It was most helpful.
> Depending on the hosting mechanism has been configured, any Django
> startup may only happen the first time a request comes in. This would
> potentially delay requests if the initialisation takes a while.
Our current hosting
Thanks Ben for responding so promptly.
> I'm probably not qualified to comment on the deeper technical issues
> mentioned here. However that said I've just taken over quite a large
> codebase that does some of this stuff, and it can be quite painful! I'd
> suggest keeping your django code as simp
I'm new to Django and noticed that a timefield set to 00:00:00
(midnight in the default choice list) displays as (none) in the admin
interface. Is this expected behavior? Is there some way to cause it
to display as midnight? I also noticed that a timefield of 00:00:01
DOES display as midnight i
Graham,
Thanks very much. That was extremely helpful.
Regards,
Richard
--~--~-~--~~~---~--~~
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 u
I'm relatively new to Django and struggleing a bit trying to extend
Django's native User model.
What I'd like to achieve is the following:
- Add a few fields to the existing User model
- Have these fields editable on Django's Admin screen
- When a new User is saved, execute a bit of code to tell
RAW sql statement SELECT COUNT(*) FROM `xx_xxraid` shows table has 12
records.
In application statement
print '---xxx raids have', ESRaid.objects.count()
prints 0! Why?
I've imported connections and
print connection.queries[-1]
just after the count prints
{'time': '0.000', 'sql':
method of xx_xxraid is NOT being invoked. It seems
likely that add and delete are overrides associated with the admin
interface NOT, sadly, with the DB API.
No joy, but at least I know what is going on.
On Jun 3, 5:36 pm, puff <[EMAIL PROTECTED]> wrote:
> RAW sql statement SELECT COUNT
The original code used a loop as you illustrated for the delete.
Although I no longer have the original code, the annotated traces (see
below) show the delete code in xx_xxraid was NOT invoked. This
strikes me as at least a deficiency if not a bug.
initializexxNode
todo: tell SS delete xxno
I'm having some difficulty with the admin interface that has me
stumped and could use a clue or two.
I've a table that looks like this:
class Destination(models.Model):
name = models.CharField( 'Name', max_length = LENGTH_NAMES_LONG,
primary_key = True,
help_text = 'Destinati
It turns out that Django doesn't like '/' or ':' in the primary key.
Not sure why but that's just the way it is.
On Jun 4, 6:55 pm, puff <[EMAIL PROTECTED]> wrote:
> I'm having some difficulty with the admin interface that has me
> stumped and could
I needed to create a dynamically initialized MultipleChoiceField.
Unfortunately, the Django docs when talking about initialize didn't go
into how to deal with MultipleChoiceField. A bit of scratching around
didn't show a real solution although Getting dynamic model choices in
newforms (http://www
t; on form
> Then in the method, assign
> self.fields['items'].choices = choices
>
> and when you instantiate a form, you can specify the choices
> choices = [('1', '1'), ('2', '2')]
> form=RecoverForm(choices)
>
> -Adi
>
I'm relatively new to Django and used unique_together in 1.5 per the
development documentation:
unique_together = ("driver", "restaurant")
This appears to cause run time errors leading to a transaction abort.
However,
unique_together = ("driver", "restaurant",)
seems to work.
Is this a do
16 matches
Mail list logo