Re: [Django] #29197: TemplateDoesNotExist: postgres/widgets/split_array.html

2018-03-08 Thread Django
#29197: TemplateDoesNotExist: postgres/widgets/split_array.html
-+-
 Reporter:  linluc   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.postgres |  Version:  2.0
 Severity:  Normal   |   Resolution:  invalid
 Keywords:  postgres template| Triage Stage:
  SplitArrayWidget   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * component:  Uncategorized => contrib.postgres
 * resolution:   => invalid
 * status:  new => closed
 * type:  Uncategorized => Bug


Comment:

 Probably you don't have `django.contrib.postgres` in your
 `INSTALLED_APPS`, or you've otherwise incorrectly configured
 [https://docs.djangoproject.com/en/stable/ref/forms/renderers/ widget
 rendering].

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.6bdd6042a8464dca5bd3aef5bbb3bf71%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #29197: TemplateDoesNotExist: postgres/widgets/split_array.html

2018-03-07 Thread Django
#29197: TemplateDoesNotExist: postgres/widgets/split_array.html
-+-
   Reporter:  linluc |  Owner:  nobody
   Type: | Status:  new
  Uncategorized  |
  Component: |Version:  2.0
  Uncategorized  |   Keywords:  postgres template
   Severity:  Normal |  SplitArrayWidget
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+-
 In my model I use:


 {{{
 user_choices = ArrayField(models.BooleanField(), default=[], size=5)
 }}}

 then  on the form, in the widgets section (first import: from
 django.contrib.postgres.forms import SplitArrayWidget):

 {{{
 'user_choices' : SplitArrayWidget(forms.CheckboxInput(),5)
 }}}

 The above combination throws:

 Django Version: 2.0.1
 Exception Type: TemplateDoesNotExist
 Exception Value: postgres/widgets/split_array.html

 The issue seems easy to fix, by either fixing the path in "/lib/python3.4
 /site-packages/django/contrib/postgres/forms/array.py", which currently
 reads:


 {{{
 template_name = 'postgres/widgets/split_array.html'
 }}}

 or by moving the postgres template directory, which is located one level
 above.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.d2f541debe600eba8b1d797046637ed2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.