How to create a Django formset with three or more related items?

2015-09-16 Thread John Schmitt
I posted this question on SO, perhaps someone can answer it. http:// stackoverflow.com/questions/32615421/ This Django doc explains inline formsets, and uses this nice example: from django.db import models class Auth

Re: ANN: Django website redesign launched

2014-12-17 Thread John Schmitt
Looks nice to me. Pardon me please for being naive, but will the fonts, colours, and layouts be ported to the Django app itself? That is, will the new layout and colour scheme be available to my Django 1.7 app if I were to do the following? $ pip install Django --upgrade John -- You receive

Re: custom query app

2014-11-14 Thread John Schmitt
On Thu, Nov 13, 2014 at 03:08:01PM -0500, Clifford Ilkay wrote: > On 11/13/2014 02:33 PM, John Schmitt wrote: > > I have a big django project with multiple apps, models, and the models have > > quite a few fields. > > > > A request came that asked for a page that

custom query app

2014-11-13 Thread John Schmitt
I have a big django project with multiple apps, models, and the models have quite a few fields. A request came that asked for a page that allows the user to pick and choose from the various fields to create their own query. Does any precedent for this exist? If I may use a car analogy, a djang

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 04:33:35PM -0500, Javier Guerra Giraldez wrote: > On Wed, Sep 24, 2014 at 4:30 PM, John Schmitt wrote: > > When I'm creating a dummy project to test my apache configuration and/or my > > management commands, or trying to assemble a complicated query

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 03:43:23PM -0400, Adam Stein wrote: > On Wed, 2014-09-24 at 12:03 -0700, John Schmitt wrote: > > > On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > > > Not sure what you are looking for in terms of Django template support. > > &g

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > Not sure what you are looking for in terms of Django template support. > The only difference between pycharm community (free) and commercial in > terms of Django support that I've noticed is that Django's development > web server won't r

Re: extremely slow django migrations

2014-09-12 Thread John Schmitt
On Wed, Sep 10, 2014 at 02:06:09PM -0500, Andrew Pinkham wrote: > On Sep 10, 2014, at 12:25 PM, John Schmitt wrote: > > Which file? What do I look for? What do I 'verify' and to what should it > > be compared? > > When you run `makemigrations app_name`, th

Re: extremely slow django migrations

2014-09-10 Thread John Schmitt
On Wed, Sep 10, 2014 at 12:08:35PM -0500, Andrew Pinkham wrote: > Hi Jesse, ... > Quick heads up: `syncdb` is deprecated in Django 1.7. If you're using Django > 1.7, you should first call `makemigrations`, verify the contents of the file, > and then call `migrate` to build/alter the database. How

Re: Centos 6.5 Python 3.3.x Django 1.6 Apache 2.2

2014-08-18 Thread John Schmitt
I realise I'm late to this conversation, but I had to do this for my own use recently except that I used Centos 7 and Python 3.4. To do this for me I hacked up a bash script and put it on github: https://github.com/marmalodak/centos_python3_django_setup/blob/master/mkenv3 I compile both Python