How to debug when not working #261
|
I tried out django-cotton using the quickstart docs yesterday on Django 5.1. While I could verify that everything was installed, I spent an hour trying to figure out why it wouldn't work. There weren't any errors, but the trees demo never updated. I'm not sure what I was doing wrong and I had a half dozen people look over my shoulder (I hold Friday office hours) and we tried out various settings and none of them could figure it out. Do you have any logging or other tips for what a common gotcha might be for a fairly vanilla Django app? |
Replies: 1 comment 7 replies
|
Hi @jefftriplett, if you see the <c-* tags still in the source code then that will tell us that something didn't reach the cotton loader. Are you using the auto setup route? (specifying just |
That's great to know. I'll fiddle more with, but I'm happy this is working. I have a bunch of cards I want to support on a few Django websites (DjangoTV and Django News Jobs), so this really helps me scratch an itch. Thanks again!
For anyone else who stumbled on this, when you use
django_cottonandtemplate_partialstogether, you have to use theirSimpleAppConfig's so they will work together.And this is in the docs which I totally missed. 🤦
https://django-cotton.com/docs/django-template-partials