enter image description here这是我的第一个django应用程序的代码。我运行服务器后无法看到应用程序。服务器无法找到我创建的应用程序。
<URLS.PY/admin>
from django.contrib import admin
from django.urls import path , include
urlpatterns = [
path('^admin/', admin.site.urls)``,
path('^casio/', include('casio.urls')),
]
<URLS.PY/app>
from django.urls import path
from . import views
urlpatterns=[
path(r'^$' , views.index, name='index')
]
<views.py/app>
from django.shotcuts import render
from django.hhtp import HttpResponse
def index(request):
return HttpResponse("<h2>HEY!</h2>")
答案 0 :(得分:0)
disableOptionCentering
应该是
<mat-select disableOptionCentering>
<mat-option *ngFor="let movie of movies" [value]="movie.value">
{{ movie.viewValue }}
</mat-option>
</mat-select>
请勿将path('^admin/'
与path('admin/'
答案 1 :(得分:0)
from django.http import HttpResponse
您有from django.hhtp import HttpResponse