Thanks for the replies! I ended up creating a python package in the
site's directory.

Abhik

On Nov 5, 8:35 am, bruno desthuilliers <bruno.desthuilli...@gmail.com>
wrote:
> On 5 nov, 16:52, apramanik <abh...@gmail.com> wrote:
>
> > Hey all,
>
> > If I have some utility functions I want to share amongst my apps,
> > where should they go? Thanks!
>
> First point is : "where _could_ they go ?" - and the answer is:  in
> any module(s) or package(s) that happens to be in your pythonpath.
>
> Second point is : are these "utility" functions closely related or
> not ?
>
> Third point : are these "utility" functions django-specific or not ?
>
> If answer to #2 is "yes", then you want to regroup them in a same
> module or package. Else try to see if it would make sense to split
> them in two or more modules without ending up with one module per
> function !-)
>
> If answer to #3 is "yes", you'll probably want to make the
> aforementionned "modules or packages" django app(s). Else, better keep
> them as pure Python modules.
>
> Sorry, this doesn't really answer your question in a simple way, but,
> hey, that's how it is - sometimes there's nothing like a simple one-
> size-fits-all answer.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to