On 1/14/06, The Boss <[EMAIL PROTECTED]> wrote:
>
> but when I try to put a check into add_related that says to create a
> new group if the person doesn't yet have one
> (by using
> g=group.Group(name='x')
> g.save()
>
> it tells me that global name groups is not defined, despite having
> defined
Thanks for the advice guys. Amit, yeah I should have mentioned that I
totally agree that django shouldn't serve static files in a production
environment. And keeping a /static/ directory sounds like a pretty good
way to do that.
I started writing something more like Andy's #2 suggestion... a way
I am trying to do something really simple and I am sure there are 10
ways to do it but I can't seem to find one. I just want to include a
method in one class to create a new object in another class. So I have
a people class with a foreign key field to a group class.
I made some methods to
excellent - thanks. (it is very easy) ...
Alice
On Saturday 14 Jan 2006 7:01 pm, ChaosKCW wrote:
> reporter = article.get_reporter()
>
> Is there some reason this isnt dont automactically for you on as
> follows on attr access:
>
> reporter = article.reporter
that is the id which is stored - take a look at the table structure
created in
Hi - after reading the php vs .net vs rails wars I'd like some advice
on finding shops that primarily do django dvlpmt for start up ecommerce
sites that can grow comfortably. I've been on google search and the
freelance sites but I am not getting anyone but php , .net responders.
Any suggestions
On 1/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> While following the docs at
> http://code.djangoproject.com/wiki/RemovingTheMagic , I was able to get
> the admin site running, but using the polls examples there are no
> date/time-pickers available.
Yeah, that's a known issue. It has
Hello,
I'm not sure if it's the right place to ask questions about the
magic-removal branch or if it's too early to try, but since there is an
impressive feature list I decided to try it -> it looks great so far. I
was even able to get auto-completition working with eclipse and pydev.
While
On Sat, 14 Jan 2006 16:12:50 - Alice wrote:
> I just finished writing the tag and realized that it won't work unless
> I can access the data passed to the template. Any help in getting
> around this (probably simple) problem would be welcome.
The 'render' method of custom tag gets passed
That smells too much of premature optimisation ;-) If you know your
model slightly, you know when a database hit happens (and it might be
unavoidable anyway, so why worry?).
El sáb, 14-01-2006 a las 13:51 +, Luke Plant escribió:
> One reason for the way it is at the moment is it's easy to
I guess the title says it all - I want to use authentication methods
that I'm used to from my Zope applications. This is mainly MySQL
authentication, using a table consisting of; username, password, roles
and domain. The authentication database is external and used by many
other applications.
Kenneth Gonsalves wrote:
On Saturday 14 Jan 2006 1:11 am, Jacob Kaplan-Moss wrote:
Have I overlooked something?
Nope - *we've* overlooked something; this totally should be
possible. I've opened a ticket so we can keep track of this
(http:// code.djangoproject.com/ticket/1219).
and, while
Alice wrote:
Is there a means to pass a template variable {{ user_id }} to a custom
template tag,
{% build_menu "user_id" %} ?
In fact you can treat anything after your tag name as you like, it's
just a string. But for such natural thing as treating it as a variable
Django will help. For
Is there a means to pass a template variable {{ user_id }} to a custom
template tag,
{% build_menu "user_id" %} ?
I just finished writing the tag and realized that it won't work unless
I can access the data passed to the template. Any help in getting
around this (probably simple) problem would
Thanks,
Luke Plant wrote:
> On Sat, 14 Jan 2006 13:31:52 - ChaosKCW wrote:
>
> > In the Reporter/Article example on the Django site, to get the
> > reporter of an article requires you to call the a method:
> >
> > reporter = article.get_reporter()
> >
> > Is there some reason this isnt
Hi
In the Reporter/Article example on the Django site, to get the reporter
of an article requires you to call the a method:
reporter = article.get_reporter()
Is there some reason this isnt dont automactically for you on as
follows on attr access:
reporter = article.reporter
?
This would
Amit Upadhyay wrote:
> Static files are best served by basic http servers and not django.
> Django tries to support serving static files, but that is only for
> convenience in development. Just now I finished deploying a django
> project under mod_pythong/apache, and my approach was to setup a
On 1/13/06, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
> I'm used to writing SQL statements like:
>
>delete from app_things where type = 'foo';
>
> to delete a number of objects at once. I don't see a way to do this
> type of delete in Django. I was hoping for something like:
>
>
On 1/14/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
As of having check boxes to select multiple item in admin views, I would much rather prefer "edit selected", where you can bulk edit items, delete being just one of the operations. Its like iTunes edit multiple song screenshot attached, for each
On 1/14/06, Greg <[EMAIL PROTECTED]> wrote:
your folder structure. This issue seems especially pertinent for Djangobecause although the mechanism for assembling several apps together onone server is a sweet way to make it easy to combine and reconfigure
applications, having to specify a single
20 matches
Mail list logo