Typically, you import settings (even those that you define yourself) using "from django.conf import settings".
https://docs.djangoproject.com/en/stable/topics/settings/#using-settings-in-python-code
On Monday, October 3, 2016 at 3:06:01 PM UTC-4, Victor Porton wrote:
-- https://docs.djangoproject.com/en/stable/topics/settings/#using-settings-in-python-code
On Monday, October 3, 2016 at 3:06:01 PM UTC-4, Victor Porton wrote:
I've created an app which is "almost" reusable: it depends on a variable in <PROJ>/setting.py of our project <PROJ>.
from <PROJ>.settings import TRANSACTION_ATTEMPT_COUNT
Can it be made into an reusable app?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/148af4e6-b5ea-48c5-8edb-f19c21a917e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment