here comes the code for urls.py but i cant uncomment it because python doesnt accept it
""" Definition of urls for DjangoWebProject19. """ from django.conf.urls import include, url # Uncomment the next two lines to enable the admin: #from django.contrib import admin #admin.autodiscover() urlpatterns = [ # Examples: # url(r'^$', DjangoWebProject19.views.home, name='home'), # url(r'^DjangoWebProject19/', include('DjangoWebProject19.DjangoWebProject19.urls')), # Uncomment the admin/doc line below to enable admin documentation: #url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: #url(r'^admin/', include(admin.site.urls)), ] در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته: > > Show the screenshot and complete code > Sincerely yours, > > Joel G Mathew > > > > On Sun, 25 Nov 2018 at 08:07, Saeed Pooladzadeh <ling...@gmail.com > <javascript:>> wrote: > >> Hello >> >> >> I'm trying to use Django on the visual studio but for admin page when I >> uncomment the >> >> from django.contrib import admin >> >> I get this message : >> >> unexpected token and it can't accept this line of code, >> >> please inform me why. >> Should I install a specific package or something? >> >> thanx >> Saeed >> >> -- >> 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 <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> 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/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.