Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread Muhammad Juwaini Abdul Rahman
Use assertTemplateUsed. https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed On Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users < django-users@googlegroups.com> wrote: > I can write a unit test which checks say the title on a page

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread 'Simon Connah' via Django users
Thank you very much! --- Original Message --- On Monday, September 25th, 2023 at 14:07, Muhammad Juwaini Abdul Rahman wrote: > Use assertTemplateUsed. > https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed > > On Sun, 24 Sept 2023

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread Abhishek ozha
got some issues in unit test in django,could anypone have a look On Monday, September 25, 2023 at 7:28:31 PM UTC+5:45 Simon Connah wrote: > Thank you very much! > > --- Original Message --- > > On Monday, September 25th, 2023 at 14:07, Muhammad Juwaini Abdul Rahman < > juw...@gmail.com>

Re: help me

2023-09-25 Thread Migui Galan
you can try exploring vercel. they can host django website. other than that, try pythonanywhere. best site for hosting django On Sun, Sep 24, 2023 at 9:52 AM FIRDOUS BHAT wrote: > https://blog.back4app.com/top-10-heroku-alternatives/ > > > > > On Sun, Sep 24, 2023 at 12:14 AM Akoo Rahimi > wrot

Re: Mysql for Django

2023-09-25 Thread Mansour Abdullahi Abdirahman
Yes absolutely you can use it , what kind of error have u faced? On Mon, 25 Sept 2023 at 03:46, DieHardMan 300 wrote: > Do you mean you can't use mysqlclient with Django? Do you already install > homebrew in MAC? Do you already install mysql server using homebrew? > ในวันที่ วันจันทร์ที่ 25 กัน

FieldError at /ajouter_centre Cannot resolve keyword 'name' into field. Choices are: categorie, centredeformation, date_de_crea, id

2023-09-25 Thread Baye SALIOU DIAW
def ajouterCentre(request): form = FormCentre() regions = Region.objects.all() centrecategories = CentreCategorie.objects.all() if request.method == 'POST': categorie_name = request.POST.get('categorie') categorie, created = CentreCategorie.objects.get_or_c

Re: FieldError at /ajouter_centre Cannot resolve keyword 'name' into field. Choices are: categorie, centredeformation, date_de_crea, id

2023-09-25 Thread Dino P.Russe
Si tu pouvais aussi envoyer le code du modèle et du formulaire, je pense bien que ton problème sera très rapidement Le lun. 25 sept. 2023 à 19:44, Baye SALIOU DIAW < bayesalioudiawt...@gmail.com> a écrit : > def ajouterCentre(request): > form = FormCentre() > regions = Region.objects.all

Re: FieldError at /ajouter_centre Cannot resolve keyword 'name' into field. Choices are: categorie, centredeformation, date_de_crea, id

2023-09-25 Thread Muhammed Lawal
Have you confirmed there is a 'name' field in your CentreCategorie and Region models? On Mon, 25 Sep 2023, 5:44 p.m. Baye SALIOU DIAW, < bayesalioudiawt...@gmail.com> wrote: > def ajouterCentre(request): > form = FormCentre() > regions = Region.objects.all() > centrecategories = Centr