Search code examples
djangopython-3.xdjango-modelsweb-frameworks

Django Page Not found error : Sudden in process of learning


I was in motion of learning Django, suddenly encountered Page not found Error in all pages. This is my URL pattern file code:

from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^analysis/', include('analysis.urls')),
    url(r'^music/', include('music.urls')),
]

but while accessing any of the pages page not found error is coming: I have run the server on port 8084,

python .\manage.py runserver 8084

Accessing urls:

http://127.0.0.1:8084/admin
http://127.0.0.1:8084/music
http://127.0.0.1:8084/analysis

All of the views are available and pages were previously displayed but now it is not working. I have tried re-starting the server also but no help.

Kindly suggest me what could be the possibility of error.


Solution

  • Try running the runserver like this:

    python manage.py runserver 8084