I'm trying to import a simple utils.py from the toplevel of my
application, i.e.
from ttime.utils import *
All I get from djangoadmin.py runserver is: "ImportError: No module
named utils".
The utils.py is there, but the django server can't seem to find it, I
suspect this is a true newbie
On 10/20/05, Laurent RAHUEL <[EMAIL PROTECTED]> wrote:
> THX, it was the problem. I guess this should be added to the documentation.
I've updated the docs at
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges .
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com |
Hi Laurent,
> Error: The database couldn't be initialized.
> 'module' object has no attribute 'INSTALLED_APPS'
Deleting your project/settings directory might help. At least it helped
when I got this error :).
Andreas
Hi,
I'm trying to move my code after those changes and I can't get
python django-admin.py init working. I get this error and I can't figure out
why :
Error: The database couldn't be initialized.
'module' object has no attribute 'INSTALLED_APPS'
I got a good PYTHONPATH and a good
On 10/20/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> I had this same question: What's a mnemosyne? We should change it to "myapp".
Mnemosyne is the greek goddess of memory, I pulled it out of
the hat, because I think myapp is so boring and impersonal.
But, feel free to change it.
/s
Hello Adrian Holovaty!
On Thu, 20 Oct 2005 08:46:47 -0500 you wrote:
> Fixed as of revision 976.
>
> Adrian
Thanks, very much!
--
Всего наилучшего!
greg [at] anastasia [dot] ru Григорий.
On 10/20/05, Grigory Fateyev <[EMAIL PROTECTED]> wrote:
> Install blogs app from django_website, and when whant to see comment of
> blog entrie see this error:
>
> File "/home/greg/www/django_src/django/utils/dateformat.py", line 26,
> in formatpieces.append(str(getattr(self, piece)()))
>
>
kmh wrote:
>>On 10/20/05, kmh <[EMAIL PROTECTED]> wrote:
>>
>>>Shouldn't we encourage a model where site templates are able to
>>>explicitly "include" application templates, rather than the other way
>>>around?
>
>
>>On 10/20/05, Sune Kirkeby <[EMAIL PROTECTED]> wrote:
>>That's not how
On Thursday 20 Oct 2005 4:56 pm, Andy Shaw wrote:
> > {{ site_url }}/css/layout.css.
> > how do i do this?
>
> Um... I don't know the actual answer to your question off the bat,
> but you can use an absolute URI that doesn't contain the site name:
thing is that i have one copy of the app on my
On 10/20/05, kmh <[EMAIL PROTECTED]> wrote:
> >On 10/20/05, kmh <[EMAIL PROTECTED]> wrote:
> >> Shouldn't we encourage a model where site templates are able to
> >> explicitly "include" application templates, rather than the other way
> >> around?
>
> >On 10/20/05, Sune Kirkeby <[EMAIL
>On 10/20/05, kmh <[EMAIL PROTECTED]> wrote:
>> Shouldn't we encourage a model where site templates are able to
>> explicitly "include" application templates, rather than the other way
>> around?
>On 10/20/05, Sune Kirkeby <[EMAIL PROTECTED]> wrote:
>That's not how applications and templates
Kenneth Gonsalves wrote:
hi,
i know it must be somewhere, but cant find it. How do you refer to the
site url in a template? Say my css file is in
http://mysite.com/css/layout.css, to make this portable i would have to
make the template as:
{{ site_url }}/css/layout.css.
how do i do this?
On 10/20/05, kmh <[EMAIL PROTECTED]> wrote:
> Shouldn't we encourage a model where site templates are able to
> explicitly "include" application templates, rather than the other way
> around?
That's not how applications and templates work. You can't just
include a template from another
Works a treat, thanks!
Wonder if you've had a chance to take a look at this:
http://code.djangoproject.com/ticket/480#preview
Still seems to be bothering me...
Thanks, Tom
Hi Sune,
Thanks for getting this thread going. Your outline is pretty close to
the way I've been doing things too.
Seeing it in writing got me wondering though if the whole idea of
application templates "extending" the base site is wrong-headed.
Because the application knows nothing about the
hi,
i know it must be somewhere, but cant find it. How do you refer to the
site url in a template? Say my css file is in
http://mysite.com/css/layout.css, to make this portable i would have to
make the template as:
{{ site_url }}/css/layout.css.
how do i do this?
--
regards
kg
Hullo.
Here is a rough draft of "Do's and Dont's for Application Writers":
http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters
I'd be much interested in comments, suggestions and
anything people disagree with, but can we keep feedback
on the list? Wikis have horrible threading
stava wrote:
> I'm having a bit of a problem with dynamic choices. I'm working on a
> simple timesheet system where I've extended the auth.users with a
> couple of fields including something I call "primary group":
>
> def getUsers(group = None):
> users = []
> if group is None:
> for u
18 matches
Mail list logo