Hi! I want to access variables in my code like in the doc<https://docs.djangoproject.com/en/1.4/topics/settings/#using-settings-in-python-code>s. I have a code like the following in settings.py:
> codec_baseString = "...XYZ:::" > In a other file (common.py): > from django.conf import settings > def num2short(num, baseString = settings.codec_baseString): > .... > .... I get the error "'Settings' object has no attribute 'codec_baseString' ". In the docs stand: > Note that django.conf.settings isn't a module -- it's an object. So > importing individual settings is not possible: > Refer this sentence to the example after the sentence or to my plan with my own variable? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Iy_oQkdb8PcJ. To post to this group, send email to [email protected]. 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.

