t, which isn't populated when "StationRel.objects.get" is
used. The solution for me is to just pass in 'station_id'' to the
constructor like:
>> badrel_nowgood = StationProviderRel(station_id=1846)
>> badrel_nowgood.__dict__
{'id': None, 'stati
I am moving an application (finally) from 0.96 to 1.1.1 and I'm
running into an issue I haven't been able to resolve.
To make things simple, here are the two relevant models:
class Station(models.Model):
station_index = models.AutoField(primary_key=True)
name = models.CharField()
...
I like that template too! Thanks!
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email
Thanks Ivan, that's exactly it! My eyes must have glossed over before
getting to that point, as I don't remember reading it before...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post t
Hi,
I have a big, fancy table that I've implemented in a template. It
takes it's data from a context variable called 'table'. So the main
part of the table is something like:
{% for row in table.rows %}
{{ row.data }}
<% endfor %>
The table is bigger, and much more complicated but that's
Thanks James, that did the trick. For others that may be looking, here
is my solution:
In my settings file I added below the middleware setting:
if DEBUG:
MIDDLEWARE_CLASSES += ('web.middleware.Logging',)
and in a file called "middleware.py" in my project directory (/web):
from django.db
Thanks James, that makes sense!
I think I still have a problem though...I was trying a simple example
of a problem I am having. I wanted to create a page that would show
all the queries and their times, for performance checking. So I would
do various things on the website, which would get actua
Hi!
I am trying to benchmark query times, and I can't seem to get
connection.queries to have anything except when I run
cursor().execute() myself. Here is an example to better illustrate my
question:
>>> DEBUG=True
>>> from myapp.models.references import Stuff
>>> from django.db import connecti
I should mention that the back-end processes and web-apps have been
organically grown. The back-end processes and one web-app are python
and are fairly tightly coupled (they use the same home-grown model
classes), while the second web-app is currently Ruby on Rails. I'd
like to get everything in
Hi!
I have an existing system that is somewhat unique and I am trying to
figure out the best organizational structure for it within Django. I
was wondering if anyone had any best practices or thoughts on how best
to structure this.
This is a system that currently does a lot of back-end processi
10 matches
Mail list logo