>
> Is it syntactically correct to have a views.py which is empty but
> exists? I'm not really sure of the process Django will use to validate
> the view.
Django will look for all view functions that your project's various
urls point to. So those functions need to exist. From that point of
view,
Think I may have found the issue.
My .pth file was pointing to an old directory which didn't have the
relevant module.
For anyone wondering, its permissable not to have a views.py providing
you have the __init__.py and models.py
On Jul 14, 10:28 pm, MikeHowarth <[EMAIL PROTECTED]> wrote:
> Yeah
Yeah. I did think that.
As far as I'm aware there aren't any errors in any of the views,
however the views.py file for scripts it is an empty file. I'm
guessing this is the problem in itself.
Is it syntactically correct to have a views.py which is empty but
exists? I'm not really sure of the pro
Hi Mike,
>
> I'm running a standalone script outside of the web server to do some
> maintainence tasks.
>
> In particular I need to return the absolute url from one of my models,
> however when I call the get_absolute_url() method, I'm getting a
> ViewDoesNotExist exception raised. A view exists
I was wondering whether anyone can help me with a problem I'm having.
I'm running a standalone script outside of the web server to do some
maintainence tasks.
In particular I need to return the absolute url from one of my models,
however when I call the get_absolute_url() method, I'm getting a
V
5 matches
Mail list logo