django specific settings app
问题 I am working on a django app that needs a directory to download and store files. I want to keep my app reusable so I do not want to hard code the path of this directory. So I want to make this path a setting/a global variable that can be set up. Where could I put this setting/global variable? Is this kind of approach good ? http://blog.muhuk.com/2010/01/26/developing-reusable-django-apps-app-settings.html Thanks for your advice! 回答1: I use the following methodology: # some file in your app: