here comes my project: https://drive.google.com/file/d/1IY3x3i6u2TMc20mlCqoXIid62GtbqzaU/view?usp=sharing
can you please give a try to it and let me know what is wrong and I can't see the admin page? On Sat, Nov 24, 2018 at 7:59 PM Saeed Pooladzadeh <lingo1...@gmail.com> wrote: > here comes my admin page code: > > from django.contrib import admin > from .models import Post > > admin.site.register(Post). > > > در شنبه 24 نوامبر 2018، ساعت 19:50:12 (UTC-8)، Joel نوشته: >> >> You didnt show the admin page. You showed urls.py. path is an easier way >> to use urls, without need for regex. >> Your problem is not clear to me. If it's something on the admin page. >> What exactly are you trying to do? Post everything relevant. >> Sincerely yours, >> >> Joel G Mathew >> >> >> >> On Sun, 25 Nov 2018 at 09:16, Saeed Pooladzadeh <ling...@gmail.com> >> wrote: >> >>> Can you please explain what should I do exactly? >>> >>> should I place these code in admin page? and delete the previous code? >>> >>> در شنبه 24 نوامبر 2018، ساعت 19:32:52 (UTC-8)، Joel نوشته: >>>> >>>> Use path for simple urls: >>>> >>>> from django.contrib import admin >>>> from django.urls import path, include >>>> from django.conf.urls import url >>>> >>>> >>>> urlpatterns = [ >>>> path('admin/', admin.site.urls), >>>> path('appointments/', include('appointments.urls')), >>>> path('clinic/', include('clinic.urls')), >>>> path('', include('clinic.urls')) >>>> ] >>>> Sincerely yours, >>>> >>>> Joel G Mathew >>>> >>>> >>>> >>>> On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh <ling...@gmail.com> >>>> wrote: >>>> >>>>> >>>>> 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> >>>>>> 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. >>>>>>> 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/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...@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/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%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...@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/5de3847c-b109-4579-8b48-c62284191233%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/5de3847c-b109-4579-8b48-c62284191233%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/ad372b4f-786f-435b-955c-d9453d1c6d0d%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ad372b4f-786f-435b-955c-d9453d1c6d0d%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/CAKh%2BqawbAu9Z1i_XyCjGeUDHS0Dy9h4o7tqa2ip05hrbWOoW3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.