When typing the url name of my website (www.example.com), it does not take me to the index page, instead it will be redirected to www.example.com/defaultsite. And as far as I know I didn't create a page with the name "defaultsite"
This is what I am getting for an Error message :
Using the URLconf defined in electro.urls, Django tried these URL patterns, in this order:
admin/
[name='index']
about/ [name='about']
whyus/ [name='whyus']
request_manpower/ [name='request_manpower']
login/ [name='login']
employment/ [name='employment']
policies/ [name='policies']
The current path, defaultsite, didn't match any of these.
And this is how my urls.py looks like:
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('whyus/', views.whyus, name='whyus'),
path('request_manpower/', views.request_manpower, name='request_manpower'),
path('employment/', views.employment, name='employment'),
path('policies/', views.policies, name='policies'),
]
On my local machine works great, but not on pythonanywhere.com's server So, what am I doing wrong ?
Thank you in advance for any help !!!
[edit by admin: formatting]