Sorry it took me so long to get back to you. On Thu, Aug 18, 2022 at 10:16 PM hajar Benjat <hajarben...@gmail.com> wrote:
> for example this is your project name* 'firstproject'* and this is your > app name *'firstapp'* in your template you will create a html page named > *'index.html'* in your *'firstapp' views.py* you need to create a > function for example : > def index(request): > return render(request, 'index.html') > > in your *'firstapp'* *urls.py *you need something like this > urlpatterns = [ > path('',views.index,name="index"), > ] > > and then in your 'firstproject' urls.py you need this > from django.urls import path,include > urlpatterns = [ > path('admin/', admin.site.urls), > path('', include('firstapp.urls')), > ] > > > > Le jeu. 18 août 2022 à 22:06, hajar Benjat <hajarben...@gmail.com> a > écrit : > >> did you make it right (what about the urls.py and views.py ) >> >> [image: width=] >> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> >> Sans >> virus.www.avast.com >> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> >> <#m_-1881626924999469383_m_-7430398450597033952_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> > > > -- > > *HAJAR BENJAT * > > - Specialized Master in Information Systems Engineering > > At CADI AYYAD UNIVERSITY *– *FSSM Marrakech > > - Computer Science Teacher > > *P:* +212698608188 > > *E:* hajar.ben...@edu.uca.ma > > *LinkedIn: *https://www.linkedin.com/in/hajar-benjat-a92132106 > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAMcj6Wf3evMhypW%3DOChVi-nUXoDQRU%2BZB-AFLtyEfvh1JJVh6Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMcj6Wf3evMhypW%3DOChVi-nUXoDQRU%2BZB-AFLtyEfvh1JJVh6Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJnMy6fpOPS12sJzxusXxNAYd2t67KqpR%2Bb71JZF2JQc1PZCYQ%40mail.gmail.com.