Problem with Crispy-Forms

2016-09-26 Thread Jeff Silverman
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 deselec

Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Arundas R
My django version is 1.7.11. While migrating I get an error as described. What might be the possible reason? -- 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 dj

Script App Developer

2016-09-26 Thread Civan Tunc
Hi. Can you write a script or application to develop a blog site using Django? -- 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...@googlegr

Re: Script App Developer

2016-09-26 Thread ludovic coues
That's exactly the subject of the django girls tutorial https://tutorial.djangogirls.org/ 2016-09-26 11:57 GMT+02:00 Civan Tunc : > Hi. Can you write a script or application to develop a blog site using > Django? > > -- > You received this message because you are subscribed to the Google Groups >

Re: Problem with Crispy-Forms

2016-09-26 Thread 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 applicat

Re: Problem with Crispy-Forms

2016-09-26 Thread ludovic coues
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 %} {% end

Re: Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Tim Graham
RunPython.noop is new in Django 1.8. You should try to upgrade as 1.7.x is unsupported and has unpatched security issues. On Monday, September 26, 2016 at 7:03:36 AM UTC-4, Arundas R wrote: > > My django version is 1.7.11. While migrating I get an error as described. > What might be the possibl

Re: Problem with Crispy-Forms

2016-09-26 Thread 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:4

Django software docs

2016-09-26 Thread Dave Baas
All, Can anyone point me to some software documentation, (I work with 3D visualization software) that utilizes Django? Manuals, tutorials, video links and such? thanks / Dave -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Deleting PROTECTED objects that would be deleted by a CASCADE anyway

2016-09-26 Thread Tim Graham
And now a Trac ticket for this: https://code.djangoproject.com/ticket/27272 On Friday, September 23, 2016 at 7:17:32 AM UTC-4, Daniel Izquierdo wrote: > > Hello, > > Consider this set of models: > > class Artist(models.Model): > name = models.CharField(max_length=10) > > class Album(models.Mod

[ANNOUNCE] Django security releases issued: 1.9.10 and 1.8.15

2016-09-26 Thread Tim Graham
Today the Django team issued 1.9.10 and 1.8.15 as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible. Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/sep/26/security-relea

Re: Problem with Crispy-Forms

2016-09-26 Thread ludovic coues
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"

django-admin commands, diango 1.10 with python 2 & python 3 on windows installed

2016-09-26 Thread anton
Hi, I am using django 1.10.1 with the following configuration: - windows 7 64bit - python 2.7.12 32 bit Now I am switching to python 3 so I installed additionally python 3.5.2 64 bit. I still need to keep python 2 because I have also trac (https://trac.edgewall.org) with mercurial (https://www.

Re: Problem with Crispy-Forms

2016-09-26 Thread 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 thr

Re: Problem with Crispy-Forms

2016-09-26 Thread ludovic coues
:) 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 unde

Repetitve/Infinite migrations generated on ManyToManyField

2016-09-26 Thread Marvin Mednick
I've the the following models related to a many-to-many relationship. (Django 1.9.4 and sqlite) Each time I run makemigrations, it generates an AlterField migration, which migrate successfully executes (no errors), but running makemigrations again will generate the identical migration. Ever

Re: Repetitve/Infinite migrations generated on ManyToManyField

2016-09-26 Thread Mike Dewhirst
On 27/09/2016 6:58 AM, Marvin Mednick wrote: I've the the following models related to a many-to-many relationship.  (Django 1.9.4 and sqlite) Each time I run makemigrations, it generates an AlterField migration, which migrate successfully executes (no errors), but running makemigrations

Re: Django software docs

2016-09-26 Thread Jani Tiainen
Hi, What you expect Django to do for you? Django has been successfully used to write great variety of webapps like e-commerce, blogs, cms etc. So you have to be a bit more spesific what you're looking for. On 26.09.2016 18:14, Dave Baas wrote: All, Can anyone point me to some software doc