Forums

The requested resource was not found on this server.

Fairly new to Django so Any help in this would be much appreciated.

Received this error message after launching App

"The requested resource was not found on this server."

Having Problems with configuring Django for Production so made a Django App with default boiler plate success screen running with productions settings to trouble shoot. It Works OK on localhost with Apache2.

Error occurred after doing the following;
I deleted the previous web app project
I cleared down all my previous project files on pythonanywhere, (including the .virtualenvs).
Inside .virtualenvs there was a folder called 'venv' which I assumed was the previous project virtual environment This was the only thing I deleted inside .virtualenvs

Cloned the djangoTest app from github and setup a new virtual environment for it
Created a New Web App with Manual Configuration

Source code: /home/artillery/djangoTest # Root folder with manage.py directory:/home/artillery/ # Pythonanywhere Account root file:/var/www/artillery_pythonanywhere_com_wsgi.py # pythonanywhere wsgi.py virtualenv: /home/artillery/.virtualenvs/djangoTest-virtualenv

/var/www/artillery_pythonanywhere_com_wsgi.py is as follows

# +++++++++++ DJANGO +++++++++++
# To use your own django app use code like this: import os import sys
#
## assuming your django settings file is at '/home/artillery/mysite/mysite/settings.py'
## and your manage.py is is at '/home/artillery/mysite/manage.py' 
path = '/home/artillery/djangoTest' if path not in sys.path:
    sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'boiler_proj.settings'
#
## then: 
from django.core.wsgi import get_wsgi_application 
application = get_wsgi_application()

Error Log

2024-10-15 02:25:32,297: Not Found: /robots.txt 2024-10-17
11:04:21,132: Not Found: /robots.txt 2024-10-20 03:37:26,571: Not
Found: /robots.txt 2024-10-20 03:37:34,952: Not Found: /sitemap.xml
2024-10-22 10:31:46,568: Not Found: /robots.txt 2024-10-22
16:02:02,088: Not Found: /robots.txt 2024-10-25 04:36:59,878: Not
Found: /robots.txt 2024-10-25 09:05:00,094: Not Found: /robots.txt
2024-10-25 12:00:27,242: Not Found: /robots.txt 2024-10-27
12:13:01,661: Not Found: /robots.txt 2024-10-27 12:13:09,684: Not
Found: /favicon.ico 2024-10-28 14:20:19,036: Not Found: /robots.txt
2024-10-30 22:53:08,235: Not Found: /robots.txt 2024-11-01
13:02:48,074: Not Found: / 2024-11-01 13:02:52,253: Not Found: /
2024-11-01 13:02:52,460: Not Found: /favicon.ico 2024-11-01
13:03:14,587: Not Found: / 2024-11-01 13:03:17,890: Not Found: /
2024-11-01 13:04:26,929: Not Found: / 2024-11-01 13:04:34,868: Not
Found: / 2024-11-01 13:11:54,474: Not Found: / 2024-11-01
13:24:16,827: Not Found: / 2024-11-01 13:24:17,047: Not Found:
/favicon.ico

[formatted by admin]

It loos like the app is looking for resources that are not found -- you could serve them as static files, see this help page.