Re: issue in hosting https://www.pythonanywhere.com

2018-12-25 Thread Atul Anand
Hi Ireoluwa, Have a beautiful Christmas Nice observation, I made the below change: ALLOWED_HOSTS = ['localhost', 'www.pythonanywhere.com/simplesocial'] But its still throwing the same error :( Regards, Atul On Wed, Dec 26, 2018 at 12:09 AM ireoluwa fakeye wrote: > Hii atul , > The problem

Re: issue in hosting https://www.pythonanywhere.com

2018-12-25 Thread ireoluwa fakeye
Hii atul , The problem you are facing is because you haven't added python anywhere to your allowed host in your settings.py .normally ,the only allowed host by default is your localhost. In order to solve this problem create a variable to hold the string 'www.pythonanywhere.com/yourappname' and

Re: issue in hosting https://www.pythonanywhere.com

2018-12-25 Thread Gear Crew
Did you edit WSGI.py in pythonanywhere? On Tuesday, 25 December 2018 20:02:12 UTC+2, Brad Pitcher wrote: > > Atul, > Have you looked over the troubleshooting in > https://help.pythonanywhere.com/pages/DebuggingImportError ? It looks > like your web app is using a separate django installed to the

Re: issue in hosting https://www.pythonanywhere.com

2018-12-25 Thread Brad Pitcher
Atul, Have you looked over the troubleshooting in https://help.pythonanywhere.com/pages/DebuggingImportError ? It looks like your web app is using a separate django installed to the system python based on the paths in the error log. You should be able to fix that in the *_wsgi.py file. On Tue, Dec

Re: issue in hosting https://www.pythonanywhere.com

2018-12-25 Thread Brad Pitcher
Can you share your wsgi file created on pythonanywhere? On Tue, Dec 25, 2018, 1:01 AM Atul Anand Hi > I have activated the venv by below cmd: > 07:57 ~/simplesocial (master)$ workon djangoVenv > Please let me know do I need to do something else ? Note: I have tried > doing the same with cmd: 07:

Re: issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Joel Mathew
Did you activate it? Sincerely yours, Joel G Mathew On Tue, 25 Dec 2018 at 12:27, Atul Anand wrote: > Hi Brad, > > Thanks for helping, but I am using a venv. > please find the below snapshot of the venv detail. > > Please guide me if I am doing something wrong. > > Virtualenv: > > Use a virt

Re: issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Atul Anand
Hi Brad, Thanks for helping, but I am using a venv. please find the below snapshot of the venv detail. Please guide me if I am doing something wrong. Virtualenv: Use a virtualenv to get different versions of flask, django etc from our default system ones. More info here

Re: issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Brad Pitcher
The paths in your logs indicate you aren't using a virtualenv. Find the virtualenv section in the web tab and make sure you specify the path to your virtualenv there. Should be something like /home/[username]/.virtualenvs/djangoVenv On Mon, Dec 24, 2018 at 8:09 AM Atul Anand wrote: > I am using

Re: issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Atul Anand
I am using virtual env: * djangoVenv* On Mon, Dec 24, 2018 at 7:45 PM Joel Mathew wrote: > Use virtualenv > Sincerely yours, > > Joel G Mathew > > > > On Mon, 24 Dec 2018 at 19:34, Atul Anand > wrote: > >> y code is working in local. But the same code when I am uploading into >> https://www.p

Re: issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Joel Mathew
Use virtualenv Sincerely yours, Joel G Mathew On Mon, 24 Dec 2018 at 19:34, Atul Anand wrote: > y code is working in local. But the same code when I am uploading into > https://www.pythonanywhere.com. Its throwing error. > > Note: I have updated few things to make it compatible for django2,w

issue in hosting https://www.pythonanywhere.com

2018-12-24 Thread Atul Anand
y code is working in local. But the same code when I am uploading into https://www.pythonanywhere.com. Its throwing error. Note: I have updated few things to make it compatible for django2,which is working for me in my local windows box. https://www.pythonanywhere.com/user/crackjeeonline/webap