del.icio.us tags are you tagging other people's content for your own
use. Technorati tags are you tagging your own content for other
people's use. Flickr tags are you tagging your own content for your own
use. So, depending on what you're strapping together, it might not make
complete sense for yo
It's not Django, it's me.
Between the caffeine and lack of sleep and looming deadline, skimming
the Django documentation led me to believe that you attach foreign keys
like so:
a = aClass()
b = add_aClass(a)
where is I should have been saying:
a = aClass(b_id=b.id)
Unless there is another way
On 8/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> By the way, do you have an estimated release date for 1.0?
We don't have an official date set, but we have a roadmap here:
http://code.djangoproject.com/milestone/Version%201.0
We'll consider it ready for 1.0 release when we've closed t
Great, thanks! I realized just after I posted that it wasn't a
dictionary list, so that's why it wasn't working, but I still didn't
know the tips above.
By the way, do you have an estimated release date for 1.0?
Tom
On 8/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm trying to sort a generic list from the
> django.views.generic.list_detail.object_list generic view
>
> It seems that all of the items below are returning the same results:
>
> {% for log in object_list|dictsortreversed:"timestamp" %}
Hi folks,
I'm trying to sort a generic list from the
django.views.generic.list_detail.object_list generic view
It seems that all of the items below are returning the same results:
{% for log in object_list|dictsortreversed:"timestamp" %}
{% for log in object_list|dictsort:"timestamp" %}
{% fo
On 8/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I've built up a couple of simple applications inside a single project.
> Currently, both have defined a 'Tag' model to allow various things to
> be tagged in a del.icio.us style. What I'd like to do is to have the
> same Tags used in both
On 8/20/05, jtm <[EMAIL PROTECTED]> wrote:
> I have a mySession class with three DateTimeFields along these lines:
>
> meta.DateTimeField('session_start', 'Session Start Time',
> auto_now_add=True)
> [...]
> File "D:\python24\lib\site-packages\django\core\meta\fields.py", line
> 308, in get_db_
On 8/20/05, jtm <[EMAIL PROTECTED]> wrote:
> Do exceptions like "PollDoesNotExist" get generated in a similar manner
> that the lookups do?
>
> I find that when processing a request, Django is throwing me exceptions
> like "RespondentDoesNotExist", but if I try and catch that exception,
> rather
Hi all,
I've built up a couple of simple applications inside a single project.
Currently, both have defined a 'Tag' model to allow various things to
be tagged in a del.icio.us style. What I'd like to do is to have the
same Tags used in both applications. Can anyone give me some
advice/suggestion
Well I'm not exactly sure what's causing your problem, I have a hunch
it has something to do with that to_field option. But regardless,
look at your model: Since your Recipie contains the ForeignKey to
Intermediary, each of your Recipies can only have one Intermediary,
and therefore one Ingredie
This one has me stumped.
I have a mySession class with three DateTimeFields along these lines:
meta.DateTimeField('session_start', 'Session Start Time',
auto_now_add=True)
when I create a new mySession instance and try to .save() it, I get the
following Traceback:
Traceback (most recent call l
This is my solution to add to a recipe an arbitrary number of
ingredients, each of them with a quantity specified.
from django.core import meta
class Ingredient(meta.Model):
fields = (
meta.CharField('name', 'Name', maxlength=128),
meta.TextField('description', 'Description',
Problem solved.
The reason was that
DJANGO_SETTINGS_MODULE variable had to be set up globally.
In other words if I set up DJANGO_SETTINGS_MODULE in one command
console and try following command:
from django.models.shop import *
from Python shell opened in a new command console (without setting
Hiya.
Do exceptions like "PollDoesNotExist" get generated in a similar manner
that the lookups do?
I find that when processing a request, Django is throwing me exceptions
like "RespondentDoesNotExist", but if I try and catch that exception,
rather than using a bare "except:" statement, I get thi
15 matches
Mail list logo