Re: Problem with Crispy-Forms
:) 2016-09-26 21:56 GMT+02:00 Jeff Silverman : > I was able to fumble my way through to the solution. What I think was > missing from the TEASER example was to add "CRISPY_TEMPLATE_PACK = > 'bootstrap3' > " to the settings.py file. Once this was added, the radio buttons properly > displayed under one another. > > It was kind of fun picking my way through the users group, which is where I > found the necessary option. > > Thanks much for your assistance. > > On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: >> >> I created an example application using Crispy-Forms. In forms.py I am >> using >> >> radio_buttons = forms.ChoiceField( >> choices = (('option_one', 'Option one is this and that be sure to >> include why it is great'),('option_two', 'Option two can is something else >> and selecting it will deselect option one')), >> widget = forms.RadioSelect, >> initial = 'option_two', >> ) >> >> However, when I execute, the two options appear on the same line. can >> anyone tell me what I did wrong? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/c2e00e9b-7098-4cc7-add5-f14af94bc014%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Cordialement, Coues Ludovic +336 148 743 42 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTbLZL67A6a%2BmubXC1OCfWnRayHAE_NH8sQLw7v3xyrFvA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with Crispy-Forms
I was able to fumble my way through to the solution. What I think was missing from the TEASER example was to add "CRISPY_TEMPLATE_PACK = 'bootstrap3' " to the settings.py file. Once this was added, the radio buttons properly displayed under one another. It was kind of fun picking my way through the users group, which is where I found the necessary option. Thanks much for your assistance. On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: > I created an example application using Crispy-Forms. In forms.py I am > using > > radio_buttons = forms.ChoiceField( > choices = (('option_one', 'Option one is this and that be sure to > include why it is great'),('option_two', 'Option two can is something else > and selecting it will deselect option one')), > widget = forms.RadioSelect, > initial = 'option_two', > ) > > However, when I execute, the two options appear on the same line. can > anyone tell me what I did wrong? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c2e00e9b-7098-4cc7-add5-f14af94bc014%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with Crispy-Forms
Do you mind to share your full forms.py file ? The result in the teaser seems to depend on the FormHelper 2016-09-26 16:19 GMT+02:00 Jeff Silverman : > Thanks for the explanation. I think I get it. Does that, however, explain > why the Radio buttons don't display on separate lines? The "teaser" example > on GITHUB shows the output cleanly space on separate lines. That's the part > I don't quite understand. > > On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: >> >> I created an example application using Crispy-Forms. In forms.py I am >> using >> >> radio_buttons = forms.ChoiceField( >> choices = (('option_one', 'Option one is this and that be sure to >> include why it is great'),('option_two', 'Option two can is something else >> and selecting it will deselect option one')), >> widget = forms.RadioSelect, >> initial = 'option_two', >> ) >> >> However, when I execute, the two options appear on the same line. can >> anyone tell me what I did wrong? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d22d8604-1c11-4d31-9ddb-76b7ab3edd12%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Cordialement, Coues Ludovic +336 148 743 42 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTZ%2Bg-S4GoPsHM5eTSxmtg8_5yfHFiT6_2eQaJme%2BAWpQw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with Crispy-Forms
Thanks for the explanation. I think I get it. Does that, however, explain why the Radio buttons don't display on separate lines? The "teaser" example on GITHUB shows the output cleanly space on separate lines. That's the part I don't quite understand. On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: > > I created an example application using Crispy-Forms. In forms.py I am > using > > radio_buttons = forms.ChoiceField( > choices = (('option_one', 'Option one is this and that be sure to > include why it is great'),('option_two', 'Option two can is something else > and selecting it will deselect option one')), > widget = forms.RadioSelect, > initial = 'option_two', > ) > > However, when I execute, the two options appear on the same line. can > anyone tell me what I did wrong? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d22d8604-1c11-4d31-9ddb-76b7ab3edd12%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with Crispy-Forms
I use something like that as a starting template, with bootstrap 4 {% load staticfiles %} {% block title %}WEBSITE{% endblock %} {% block head %} {% endblock %} WEBSITE ABOUT SEARCH {% block header %} WEBSITE{% endblock %} {% block body %} {% endblock %} The idea is to have your layout in base.html and only fill the block with your content. 2016-09-26 13:23 GMT+02:00 Jeff Silverman : > Followup. I am playing with the teaser application on GITHUB. > > One more thing, which may be the problem, and keep in mind I am new to > DJANGO and Python... What goes into the base.html file? > > On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: >> >> I created an example application using Crispy-Forms. In forms.py I am >> using >> >> radio_buttons = forms.ChoiceField( >> choices = (('option_one', 'Option one is this and that be sure to >> include why it is great'),('option_two', 'Option two can is something else >> and selecting it will deselect option one')), >> widget = forms.RadioSelect, >> initial = 'option_two', >> ) >> >> However, when I execute, the two options appear on the same line. can >> anyone tell me what I did wrong? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d7b92aa1-6722-44f9-88fd-e562a4d76045%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Cordialement, Coues Ludovic +336 148 743 42 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTbfk_DrX7zT0NXcXdVp-zocdUakVqRznqZL9VBFbgRDBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with Crispy-Forms
Followup. I am playing with the teaser application on GITHUB. One more thing, which may be the problem, and keep in mind I am new to DJANGO and Python... What goes into the base.html file? On Monday, September 26, 2016 at 6:21:49 AM UTC-4, Jeff Silverman wrote: > I created an example application using Crispy-Forms. In forms.py I am > using > > radio_buttons = forms.ChoiceField( > choices = (('option_one', 'Option one is this and that be sure to > include why it is great'),('option_two', 'Option two can is something else > and selecting it will deselect option one')), > widget = forms.RadioSelect, > initial = 'option_two', > ) > > However, when I execute, the two options appear on the same line. can > anyone tell me what I did wrong? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d7b92aa1-6722-44f9-88fd-e562a4d76045%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Problem with Crispy-Forms
I created an example application using Crispy-Forms. In forms.py I am using radio_buttons = forms.ChoiceField( choices = (('option_one', 'Option one is this and that be sure to include why it is great'),('option_two', 'Option two can is something else and selecting it will deselect option one')), widget = forms.RadioSelect, initial = 'option_two', ) However, when I execute, the two options appear on the same line. can anyone tell me what I did wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1b0f6ca4-37f6-4870-9a8e-6030f9436964%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.