I ve been trying to get Django working completely but I m having issues with my admin page. It is only a blank view; no login, no title, no error... After setting up, I have run:
python manage.py makemigrations
python manage.py migrate
这里是环境。 py:
INSTALLED_APPS = [
django.contrib.admin ,
django.contrib.auth ,
django.contrib.contenttypes ,
django.contrib.sessions ,
django.contrib.messages ,
django.contrib.staticfiles ,
books.apps.BooksConfig ,
]
Here is urls.py:
from django.conf.urls import url, include
from django.contrib import admin
admin.autodiscover()
from books.views import hello, my_homepage_view, current_datetime, hours_ahead
urlpatterns = [
url(r ^admin/ , admin.site.urls),
url(r ^hello/$ , hello),
# url(r ^$ , my_homepage_view),
url(r ^time/$ , current_datetime),
url(r ^time/plus/(d{1,2})/$ , hours_ahead)
]
Like I said, there is not a 404 or any type of error page when localhost:8000/admin/ is accessed, it is just a blank, white page.
Any help would be appreciated!