Tuesday, May 19, 2020

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

I'm not sure why you're getting an exception.  I know the import mechanism in Python 2 was a bit different, so I'm not sure if that's the issue or if Django's import mechanism isn't finding your settings file.

I don't know if you have tried this, but I saw a blog post on using multiple settings files.  Maybe it will help:  https://simpleisbetterthancomplex.com/tips/2017/07/03/django-tip-20-working-with-multiple-settings-modules.html

I hope this helps!

-Jorge

On Mon, May 18, 2020 at 6:51 PM chaitanya orakala <chaitu.orakala@gmail.com> wrote:
I tried that way, sir. but it's of no use. I don't know how to resolve this issue. its been troubling me for 3 days now

On Mon, May 18, 2020 at 9:29 PM Mike Dewhirst <miked@dewhirst.com.au> wrote:
On 19/05/2020 11:10 am, chaitanya orakala wrote:
> I am using Python 2.7

It is possible you need a top line in the file like this ...

from __future__ import absolute_import

I haven't been following this thread so someone may have mentioned that
already.


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/95afb956-98f8-6664-9107-d0935b75cf6c%40dewhirst.com.au.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcTzRZHgBG1Q90Rk8VmNS%2ByzmQLd1bdq8ZPgA6A%2Bumsx4CGvw%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfN%3DK9MAMn3WezyhMU5Rrv5DWWFNxQ0jc9RnfyK-qyCOiV%2BeA%40mail.gmail.com.

No comments:

Post a Comment