Forums

Errors in manage.py and website not updating

I am attempting to follow the mysite tutorial in Pythonanywhere and djangoproject.com. I have deleted, created and re-created the site and app a few times. I saw this error in manage.py in the last website and app I was trying to learn.

I have this syntax error ) from exc in manage.py that I do not know how to fixed since I am very new to Django. My website is not updating and I don't know how to fix that either. I have added the source code path in the Web tab. I have changed the mysite/wsgi.py as instructed by Pythonanywhere django tutorial, but I have not changed the wsgi configuration file in the Web tab. I am following instruction in the tutorial as I understand it. So I do not know if I understand it correctly. I have google to attempt to solve my problems for days now without any success. I am frustrated. Could someone please help?

If you're finding that the web app isnt updating, are you reloading the web app after you update your code?

Yes, I am reloading in multiple spots. I do not believe it is a re-loading problem. Something must be missing.

What do you mean reloading in multiple spots? There's only one reload button on the webapp page

when i save a file, there's a reloading button there and reload button on webapp tab.

The website is showing "Hello, world. You're at the polls index" like it should after a day of pulling out all my hair. I have a question. Why is Pythonanywhere so temperamental? When I changed mysite/settings.py ALLOWED_HOSTS to tmk5931.pythonanywhere.com, initially it shows the rocket. But after a few times of messing with ALLOWED_HOSTS, it gave me error of Page Not Found or Disallowed.

It's not PythonAnywhere. Looking at tmk5931.pythonanywhere.com, the error is telling you that you don't have a route registered for the root path ("/")

Could you enlighten me and tell me what is the error that you are looking at? what should I do to correct the error? in which file is(was) the error?

I can't see your web app anymore

sorry. I can't wait.

It looks like it works now.

The web app has gone to multiple deletion and re-do since July 13th.

Glad to see that you made it work!