On Dec 14, 2007 8:06 AM, Julien <[EMAIL PROTECTED]> wrote:
> Thanks James for the tips. However I think that my app is not generic
> enough to be on the Python path.
Generic has nothing to do with it; unless you have extremely
compelling reasons for tying the app to the project, simply don't do
i
Thanks James for the tips. However I think that my app is not generic
enough to be on the Python path.
I agree that one shouldn't do "myproject.myapp.models", and in fact, I
don't.
My problem is that the custom tags are in the templatetags directory.
The structure is like this:
myapp
|tem
On Dec 13, 2007 10:46 PM, Julien <[EMAIL PROTECTED]> wrote:
> But it still doesn't work. To make it work I have to do the whole:
> from myproject.myapp.models import Bla
>
> Not very reusable approach...
While it works well for the tutorial, where keeping all the code in
one place reduces the num
Hi,
I ran my code on another server and the error message was more
explicit.
The problem was in fact that in a templatetags file I was referring to
the parent's models package, and it didn't work...
Is it possible to import a model from a parent package?
Apparently in Python 2.5 you can do:
fro
Can you give us "class RegistrationProfile" from C:\Python25\Lib\site-
packages\registration\models.py ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
This is in the application from http://code.google.com/p/django-registration/
The code is:
class RegistrationProfile(models.Model):
"""
A simple profile which stores an activation key for use during
user account registration.
Generally, you will not want to interact directly wit
Hi,
There's no template variable, at least for the frontpage.
Here's the traceback:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 0.97-pre-SVN-6917
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'djang
Traceback? Template variables?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EM
8 matches
Mail list logo