Hallöchen!
Torsten Bronger writes:
> [...]
>
> I did some research on this two weeks ago and my impression was
> that there are no guidelines at all to create portable apps. On
> the contrary, the template path in the official Django tutorial is
... not a good example.
Tschö,
Torsten.
--
To
Hallöchen!
Johan writes:
> Thanks for all the feedback. By nature I prefer NOT to use a to
> deep framework stack. So although django-harness could work I
> would prefer to keep my dependencies simple. I would probably go
> with managing the python path. It seems to be the simplest way and
> mos
Thanks for all the feedback. By nature I prefer NOT to use a to deep
framework stack. So although django-harness could work I would prefer
to keep my dependencies simple. I would probably go with managing the
python path. It seems to be the simplest way and most transparent way
of handling the sit
Another way is to use a settings wrapper such as django-harness[1],
which:
* helps organize apps (by name, without the notion of project) and
eliminates the need to write absolute paths for templates, sqlite
database and such stuff stored in the project directory;
* simplifies version control of p
On Oct 5, 6:45 am, Johan wrote:
> Actually the TEMPLATE_DIRS does nothing. In order to get my apps to
> work outside of the project directory I edited the manage.py file and
> added :
>
> import sys
> sys.path.append('..\\..\\..\\django-apps\\trunk')
>
> This allows me to reference my applicati
You can move your apps outside your project to somewhere on your
python path. So for instance, move the directory from some-path/
mysite/myapp to some-path/myapp . Then install it as "myapp" instead
of "mysite.myapp" and change your imports to "from myapp.models" (etc)
instead of "from mysite.my
Actually the TEMPLATE_DIRS does nothing. In order to get my apps to
work outside of the project directory I edited the manage.py file and
added :
import sys
sys.path.append('..\\..\\..\\django-apps\\trunk')
This allows me to reference my applications from a central site
(django-apps\\trunk) ...
7 matches
Mail list logo