Comments (7)
I'm afraid I haven't been able to reproduce this yet - this renders fine for me.
4.0.0 changed the default value of allow_outgoing_webmentions
to make it configurable - can you confirm that you ran makemigrations
and migrate
after upgrading? I've just tried doing this and it rendered fine with or without running migrations but it's the only relevant thing I can think of that changed.
Can you view source in your browser and confirm that the checkbox isn't somehow hidden by css?
I'm all out of ideas after that but I'd at least like to cross those off the list.
Thanks!
from django-wm.
Thanks for taking a look! I have run makemigrations
and migrate
. This is what I see when I view source; the checkbox is definitely not there:
Since it was the only other change I made, I also tried setting the value of WEBMENTIONS_ALLOW_OUTGOING_DEFAULT
in my settings file to both True
and False
, as well as removing it completely, but that didn't have any effect (not that I really expected it to).
from django-wm.
Good to rule those out, thanks. I'll dig around some more...
from django-wm.
- It doesn't seem to be affected by translation or localisation settings.
- Misconfiguring the field names in the CreateView raises a FieldError, so it's not that.
The only way I've found for the checkbox not to render is if the field is misspelled in the template (e.g. {{ form.misspelled__allow_outgoing_webmentions }}
).
That doesn't appear to be the case for you, and I don't see why it would have been affected by the update, but can you please try adding {{ form }}
to your template to see what that renders?
from django-wm.
That works! (At least, the checkbox renders.)
Edit: there seems to be an additional hidden field in there (initial-allow_outgoing_webmentions
) that I've not seen before; guessing that's from setting WEBMENTIONS_ALLOW_OUTGOING_DEFAULT
?
from django-wm.
OK, so I deleted the local dev version of my site, set up a new virtual environment, re-cloned my site repo and tried again. And guess what? It worked. So I did the same on my live site and it worked there, too. I'm guessing it was a problem on my part, not an issue with the package. Sorry for the runaround!
from django-wm.
Weird! No problem, glad you got it sorted out.
Aside/TIL: The hidden initial-
field is used to check whether a field has changed when submitting a form - it's a core Django thing.
from django-wm.
Related Issues (20)
- Expand the allowed versions of the required requests package? HOT 2
- Add more flexibility in URLs for MentionableMixin models HOT 3
- How to only send webmentions from "live" objects?
- Add template for successful submission of webmention
- Don't make links to same-page #anchors into targets
- HCards only being found if they're the first item in the soup
- Should HCards be found within h-entry's?
- Quote text is never set HOT 2
- Multiple outgoing mentions created when connections repeatedly fail HOT 5
- Still trying to send webmentions to #anchor links? HOT 3
- Webmentions being accepted by pages that aren't Mentionable HOT 4
- Mentions for models without a `slug` field HOT 2
- Webmention endpoint resolution failing when there are multiple `link`s in header HOT 3
- Single incoming webmention repeatedly being processed. HOT 6
- Problem integrating django-wm with Wagtail HOT 21
- Lots of "settings.WEBMENTIONS_URL_SCHEME should not be `http` when in production!" warnings during tests
- Small error in QuotableAdmin's search_fields HOT 1
- [Feature Request] Exclude domains and/or URLs from outgoing webmentions HOT 3
- Clean Install Breaks Incoming Webmentions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-wm.