Hi all, in my projects I use a set of settings conventions that are the same from project to project. I want to separate them because I don't want to repeat myself.
I am also reusing a big deal of my applications throughout the projects/sites, so it makes sense to give it a clear order and generalize the project_folder dependent settings. E.g. My database is always called the same as the project folder, Initial SITE_NAME is always the same as project folder until I set one in the sites application model. CACHE_PREFIX I use is always the same as the project folder name for consistency DATABASE_NAME = folder SITE_NAME = folder CACHE_PREFIX = folder TEMPLATE_DIRS = ("/webs/" + folder + "/templates", "/django_apps/ templates") MEDIA_ROOT = "/webs/" + folder + "/static" MEDIA_URL = "http://" + folder + ".vizualbod.com/static/" ADMIN_MEDIA_PREFIX = "http://" + folder + ".localhost/media/" It would make sense to put this boilerplate stuff in my generic_settings.py instead of repeating it in every setting.py, but *how do I pass it the project folder name*? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---