I'm currently working on a new project which will have multiple applications built within it, and which will all be using the same database. I'd like to setup a global name for each application so I can use them to format audit fields for each application whenever database updates are taking place as well as whenever exceptions or errors are raised. could I then just import the name fields only like this:
from django.conf import settings.APP_NAME1 or something like that? Thanks for the help. On Mar 18, 8:39 am, Jim Thaxton <im.a.machobea...@gmail.com> wrote: > Can you set it in the settings.py file for your project? You can then import > the Django settings in your views with: > > from django.conf import settings > > and call the variable with settings.my_var_name when needed. -- 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.