I'm running into trouble using the admin interface's search feature,
probably due to the default way that tables are being joined. I have
an Actor and a Group, and a many-to-many relationship between them.
(So Actors can be in multiple Groups, and Groups can have multiple
Actors). For the Group ob
: is it
possible to run Django with CGI yet? If so, is there any documentation
?
Failing all that, and this host cannot be used, has anyone any
experience with Australian hosts that provide mod_python and SSH?
thanks for any help,
Alice
"Well mod python does require unique configuration just as
mod perl does. Which is probably his argument."
ah - I was a bit leery of his argument, but I come from a jsp/php type
background, not mod_python, CGI and am thus pretty clueless atm.
unfortunately it does have to be Australia - but I ch
Is there any documentation to be found for running Django under
FastCGI?
Alice
hello,
Is there a way to return an attribute of a related class?
ie: return self.choice.someattr
class Answer(meta.Model):
user = meta.ForeignKey(User)
question = meta.ForeignKey(Question)
choice = meta.ForeignKey(Choice)
def __repr__(self):
retu
def __repr__(self):
return self.get_choice()
that gives me a bunch of these errors
TypeError: __str__ returned non-string (type Choice)
even though the __repr__ of choice returns a string (CharField).
however:
def __repr__(self):
return self.get_choice().choice
works a treat.
;driver", "restaurant"),)
... and I don't think this is a db-level solution ..
Any help would be appreciated
Alice
angements
They both seem to deal with similar issues ... perhaps if the wiki got
some more coverage, those with war stories could help flesh it out
some.
Alice
7; appears more
than once"
apart from infinite recusion scenarios (which can be protected
against), how possible would it be to have repeated blocks? Is it
practical?
Alice
this?
Alice
ename'
or is this better suited to mod_rewrite? (something else I've put off
learning about)
thanks in advance
Alice
l
A decent introductory guide:
http://www.sitepoint.com/article/guide-url-rewriting
Alice
nt in the code, etc, would they be willing to write
something and stick it in the wiki?
I'd rather not have to re-invent user management especially if it
already exists. Any help here?
Alice
ould be in the context object if anywhere - but being relatively new
to python I have no clue how to see the insides.
If there isn't, is it be feasible to write a template extension that
does this automatically for each template?
Alice
ile?
I get hung up on these things - currently I'm just including a page
desciption in the 'content' box (because it won't actually appear in a
template without extending a block).
Alice
I'm trying to get my project working under mod_python but I'm getting
the error:
OperationalError: FATAL: IDENT authentication failed for user "alice"
when attempting to access http://localhost/mysite/
This is a postgresql error when trying to access the database as
someon
however, postgres is still behaving the same ... I
think this is all because of something else.
I'll post here again If I get it working.
Alice
umbles upon this problem:
http://www.postgresql.org/docs/7.3/static/client-authentication.html
The Postgres docs are pretty damn thorough
Alice
her and then be queried?
Thanks,
Alice
ture is
below
dirs:
# project root
/home/alice/.../pass1/
# template root
/home/alice/.../django_templates/pass1/
# contains symlink to admin media and project templates
/home/alice/.../media/
admin_media
->/home/alice/.../django/django_src/django/contrib/admin/media/
/home/alic
a mixture of permissions. poll_base was 600 - didnt even
have user execute.
it's always the most mundane problems...
thanks for the help.
Alice
ese views and templates into my own project and
modify them there? That goes against DRY though and feels ... icky.
Solutions/suggestions anyone?
I intend to write some glue tutorials that bring together the relevant
bits of the authentication and session docs, so if anyone has anything
they think needs addressing - post it!
Alice
yes, and that doesn't contain anything on using the existing templates
and views - if they should be used at all.
Alice
subject = meta.CharField(maxlength=30)
entry = meta.TextField(blank=True)
...
Is anything the problem or have I missed a caveat somewhere?
Alice
works like a charm, thanks.
Alice
teps, but it seems really unwieldy. Has the situation improved
since then?
Alice
Is there a way of retrieving a database field's metadata? For example,
the maxlength or choices parameters? It would be nice to automatically
display the number of allowed characters for a given textfield.
Alice
uld check all
specialized tables, which is clunky.
Is this a common problem with a solution?
Any help would be appreciated ..
Alice
ly or
performing a search across the multiple models ...
... or a model method like item_get_extras() that searches known
specialization models for foreign keys ...
hrm ~ no nice way of doing this it seems.
Alice
/documentation/authentication/#id5
The documentation is still thin and patchy in a lot of places, but it
should be treated as more of a reference to the code.
Hope this helps some,
Alice
oo': 'bar',
}, [ip_address_processor])
shouldn't it be
return DjangoContext(request, {
'foo': 'bar',
}, [ip_address_processor])
? This would make more sense.
Alice
I found this (http://www.jobserve.com/W2EAE51AB3A3157A6.job) a few days
ago while job hunting, it's probably taken already (it was posted a
week ago) - but it's interesting to see jobs appearing in Australia -
if only Adelaide!
alas,
Alice
) problem would be welcome.
Alice
excellent - thanks. (it is very easy) ...
Alice
Where would I put extra processors? in /myproject/processors.py ?
Processors are global and not an app specific one ... so where are
others putting theirs? Just after a bit of django etiquette...
Alice
I opted to writing a small bit of middleware in the end and adding the
data I wanted into the request object itself to make it available all
the time regardless of Context or DjangoContext. Less fiddly but
probably not good practice.
Luke Skibinski Holt
r those of you who combined Django and React, what state
management approach did you use (or are thinking of using) and why?
Thanks :)
Alice
[*] I know, MTV. Also I know that MVC is considered a bad word in js
frontend world.
--
You received this message because you are subscribed to the Google Grou
37 matches
Mail list logo