Python Forum
Django Runserver - Printable Version

+- Python Forum (
+-- Forum: Python Coding (
+--- Forum: Web Scraping & Web Development (
+--- Thread: Django Runserver (/Thread-Django-Runserver)

Django Runserver - ayaz786amd - Nov-16-2018


I am learning django but python environment setting is complicated. Here is the error when i run server and open

Page not found (404)
Request Method: GET
Request URL:
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

1 ^admin/
2 ^webapp/
The current path, admin, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

RE: Django Runserver - ayaz786amd - Nov-17-2018

I think the issue is with these codes
In Website/Webapp/
from django.conf.urls import patterns, url
from . import views

urlpatterns = [
    url(r'$', views.index, name='index'),
In website\website\
from django.conf.urls import patterns, include, url
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', include (,
    url(r'^webapp/', include('webapp.urls')),