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
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
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>
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
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 กัน
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
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
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
8 matches
Mail list logo