

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['first-vue/dist'],
'APP_DIRS': True,
'OPTIONS': {
'context_ : [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'first-vue/dist')
]
from django.contrib import admin
from django.urls import path, re_path
from django.views.generic.base import TemplateView
from django.conf.urls import url
urlpatterns = [
path('admin/', admin.site.urls),
url(r'', TemplateView.as_view(template_name='index.html'))
]

But
![]()
Can you help me? Thanks!
The code just is
alert(111);
Thank you!
发送自 Windows 10 版邮件应用
发件人: Vishvajit Pathak
发送时间: 2018年11月11日 3:39
收件人: Django users
主题: Re: Django Uncaught SyntaxError: Unexpected token <
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/96630af5-ae5d-439a-ad0d-4e403d0cefee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The code just is
alert(111);
Thank you!
发送自 Windows 10 版邮件应用
发件人: Vishvajit Pathak
发送时间: 2018年11月11日 3:39
收件人: Django users
主题: Re: Django Uncaught SyntaxError: Unexpected token <
Please share js file
--
发件人: Jason
发送时间: 2018年11月10日 22:15
收件人: Django users
主题: Re: Django Uncaught SyntaxError: Unexpected token <
the error is in your javascript, not html.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dcfb6cb3-bd58-49df-951b-df4695ac1967%40googlegroups.com.