Here I am creating my first Django application that is basically a polls app. I have followed these steps:
Created a django app in pycharm.
Wrote two tables in models.py.
Done "python manage.py makemigrations".
It successfully created my migrations.
Done "python manage.py createsuperuser", set its username and
password.Now doing, "python manage.py runserver", Its opening great.
Issue: When hitting "http://127.0.0.1:8000/admin/", server just stops. No error and nothing happens. I don't understand that why I am not being able to hit the url.
urls.py
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
]
Server state while quitting:
C:\Users\Maha Waqar\PycharmProjects\DjangoSites>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
March 09, 2020 - 21:40:44
Django version 3.0.4, using settings 'DjangoSites.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[09/Mar/2020 21:41:20] "GET / HTTP/1.1" 200 16351
C:\Users\Maha Waqar\PycharmProjects\DjangoSites>
My folder hirearchy:
DjangoSites //root folder
->DjangoSites
->mysite //current app I am working in