Sphinx AutoSectionLabel Extension Setting

2019-12-26 Thread Abhijeet Viswa
Hey,


Ticket #28290  has been lying
in the easy pickings for too long now. I don't believe a patch has been
submitted.

It was suggested in n the issue
 raised by the reporter,
Tony Narlock, on the Sphinx project, to use the AutoSectionLabel extension
to automatically label sections, and hence solve the issue.

A label with the same name as the section is generated automatically. If
the section name is repeated anywhere else in the whole document, one of
the possiblities is chosen as the default. (Ref:
https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html)
There exists an setting autosectionlabel_prefix_document that appends the
name of the document the section is in.

I'm personally more inclined to appending the document name. However, I'd
like to get the opinion of the community before proceeding. Whatever option
be chosen, it would have to be documented in the documentation itself.

Thanks,
Abhijeet

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAP1-YrrKBWZzMPs8Snek_rBN%2B1N0o5gFy2%2BKhQ_H%2BV6Qk24X%3DQ%40mail.gmail.com.


Re: Sphinx AutoSectionLabel Extension Setting

2019-12-26 Thread Abhijeet Viswa
Here is my patch with the aforementioned setting set to true:
https://github.com/django/django/pull/12251

On Thu, 26 Dec 2019 at 15:36, Abhijeet Viswa 
wrote:

> Hey,
>
> 
> Ticket #28290  has been
> lying in the easy pickings for too long now. I don't believe a patch has
> been submitted.
>
> It was suggested in n the issue
>  raised by the
> reporter, Tony Narlock, on the Sphinx project, to use the AutoSectionLabel
> extension to automatically label sections, and hence solve the issue.
>
> A label with the same name as the section is generated automatically. If
> the section name is repeated anywhere else in the whole document, one of
> the possiblities is chosen as the default. (Ref:
> https://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html)
> There exists an setting autosectionlabel_prefix_document that appends the
> name of the document the section is in.
>
> I'm personally more inclined to appending the document name. However, I'd
> like to get the opinion of the community before proceeding. Whatever option
> be chosen, it would have to be documented in the documentation itself.
>
> Thanks,
> Abhijeet
>


-- 
Abhijeet

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAP1-YrrrQ09BpooZOQyfDT%2B0pWY6bhAjxfT3Y2v2EwzsgfhkMA%40mail.gmail.com.


Best Profanity filters for using in Python Django project

2019-12-26 Thread Unprofessional coder


I have a requirement where I need to use the profanity check for the list 
of forms.If the profanity is detected then it should stop further actions. 


Currently I am using "profanity_check" package for profanity detection, 
however getting the below warning from python in cmd.

FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be 
removed in 0.23. Please import this functionality directly from joblib, 
which can be installed with: pip install joblib.If this warning is raised 
when loading pickled models, you may need to re-serialize those models with 
scikit-learn 0.21+



Is the "profanity_check" package suggested, what are alternative solutions?


Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/d13604ce-cee5-4295-b716-6c8a1986c18f%40googlegroups.com.


Re: Best Profanity filters for using in Python Django project

2019-12-26 Thread Tim Graham
Hi, I see you also posted to django-users. Please don't cross post to 
django-developers as this mailing list is about developing Django, not 
discussing usage questions.

On Thursday, December 26, 2019 at 12:47:54 PM UTC-5, Unprofessional coder 
wrote:
>
> I have a requirement where I need to use the profanity check for the list 
> of forms.If the profanity is detected then it should stop further actions. 
>
>
> Currently I am using "profanity_check" package for profanity detection, 
> however getting the below warning from python in cmd.
>
> FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be 
> removed in 0.23. Please import this functionality directly from joblib, 
> which can be installed with: pip install joblib.If this warning is raised 
> when loading pickled models, you may need to re-serialize those models with 
> scikit-learn 0.21+
>
>
>
> Is the "profanity_check" package suggested, what are alternative solutions?
>
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c9f7d088-a600-44ca-ab77-e60543812fd9%40googlegroups.com.