Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Hella Nick
你帮我获得加拿大的工作移民签证,我就可以帮你解决问题。 在 2020年5月17日星期日 UTC+8上午4:51:45,chaitan写道: > > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings= settings_d

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Mike Dewhirst
I thought I'd go back and look at your original post. Your settings file looks a bit tricky. I learned to deal with multiple settings files a long time ago so I don't know what current best practice is. Essentially, the way I do it is to have a complete base.py with all settings in a default s

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread chaitanya orakala
Thank Jeorge. I went through that blog long back but I can't find a relation to my Error. I will try contacting my manager regarding this. will let you know if I find anything. Have a great day On Tue, May 19, 2020 at 2:44 PM Jorge Gimeno wrote: > I'm not sure why you're getting an exception.

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Jorge Gimeno
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 fi

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
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 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

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread Mike Dewhirst
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

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
hey could anyone help with this? On Mon, May 18, 2020 at 2:44 PM chaitanya orakala wrote: > Hi Jorge, > I tried placing a dot in front of settings_dev_sai, it didn't work. by the > way, I am using Python 2.7 and Django 1.10 versions. > [image: image.png] > this is my project structure. I am usi

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-18 Thread chaitanya orakala
Hi Jorge, I tried placing a dot in front of settings_dev_sai, it didn't work. by the way, I am using Python 2.7 and Django 1.10 versions. [image: image.png] this is my project structure. I am using a virtual environment. Please let me know what you think sir On Sat, May 16, 2020 at 7:54 PM Jorge

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
It's coming from your settings file. I would try this: In this line here: elif HOST == "Sai" : from settings_dev_sai import * I would try to make the second line: from .settings_dev_sai import * See if Python can find the module that way. If Python does, then all of the imports in that

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
Do you have any idea why i am getting this error? On Sat, May 16, 2020 at 6:40 PM chaitanya orakala wrote: > Yes Jorge, all the settings file are in the same folder > > > On Sat, May 16, 2020 at 5:20 PM Jorge Gimeno wrote: > >> >> >> On Sat, May 16, 2020 at 1:52 PM chaitan wrote: >> >>> Hi, I

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
Yes Jorge, all the settings file are in the same folder On Sat, May 16, 2020 at 5:20 PM Jorge Gimeno wrote: > > > On Sat, May 16, 2020 at 1:52 PM chaitan wrote: > >> Hi, I am facing ModuleNotFoundError in my Django application. It got >> configured with multiple settings files for production,

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 1:52 PM chaitan wrote: > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings= settings_dev_sai. > > This is My *Set

PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitan
Hi, I am facing ModuleNotFoundError in my Django application. It got configured with multiple settings files for production, Development & Testing. When I Try to run Python manage.py runserver --settings= settings_dev_sai. This is My *Settings* File: import socket #import settings depending