Django makes python aware of your app folder when you install the app so you can just do:
from appname.resources.filename import function That should work whenever your app is propperly installed. On 3 Mar., 21:41, Jack Orenstein <j...@geophile.com> wrote: > I have a small number of files that need to be accessible to my > Django application. These are part of the application, and so should > be treated as source code. The question is where to put them? Putting > them under MEDIA_ROOT doesn't seem right. They go with the > application so they should be somewhere under the application > directory. Suppose I put them in APPLICATION_NAME/resources -- how > would I then refer to these files? I obviously don't want to code an > absolute path into my application. > > Jack --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---