On Wed, Feb 17, 2016 at 12:28 PM, Горобец Дмитрий <dmitr...@gmail.com> wrote:
> Hello! > > How do you declare different REST clients in settings of django project? > > Is it a right way to declare clients directly in settings.py? > MAILCHIMP_CLIENT = mailchimp.Mailchimp(MAILCHIMP_API_KEY) > TWILIO_CLIENT = TwilioRestClient(TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN) > > Are you doing this as a requirement for a library that you are trying to implement? Are you simply using these settings as part of a local app that you are developing? Are these accounts going to be shared by all users in your environment? If you are only using them for your own apps, it may be more appropriate to create your own settings.py file in your app directory and import it from there. -James -- 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+unsubscr...@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/CA%2Be%2BciWJvyv4SB0_t-hDmBLDE2S_Ac0K9moi4Q92E83Q8xQm2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.