Re: Difficulties displaying correct value in select widget with ModelForm/formset_factory:

2013-05-10 Thread Matt Conrad
Answering my own question from a few days ago, this: choice_vals = scene.begin_scene.all().values() ChoiceFormFactory = formset_factory(ChoiceForm) formset = ChoiceFormFactory(initial=choice_vals) is all wrong. I needed to be using a modelformset_factory, not a formset_factory, with a

Re: Fwd: Django in production on Windows

2010-12-03 Thread Matt Conrad
I notice that the conversation is mostly about IIS vs Apache. You'll also want to think about the database. Django doesn't have built in support for MSSQL. You could run Postgres or MySQL on Windows, or there are some adapters for Django that will let it talk to SQL Server. Either way, you'll prob

Re: Using formsets with multiple models

2010-11-01 Thread Matt Conrad
On Fri, Oct 29, 2010 at 11:58 AM, Bill Brigham wrote: > On a questionnaire, you have one or more questions which will require > either an essay answer or multiple choice answers. When creating a new > questionnaire, I would like to show a textarea for the Question.text > common to both types, a r

Newbie Django project, suggestions for code improvement?

2009-08-26 Thread Matt Conrad
I wrote a little concentration game in Django and put it up on Google App Engine: http://matt-scratch.appspot.com/ I'm sure there are some awkward places in the code where I could leverage Django better. If anyone is curious and would like to comment or make suggestions, the source code (Django

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-13 Thread Matt Conrad
On Fri, Sep 12, 2008 at 1:58 PM, Kevin Teague <[EMAIL PROTECTED]> wrote: > Finally, you could patch a Python program such as manage.py so that > you do something like: > > import sys > sys.path[0:0] = [ > '\somelocation-for-django-1.0\', > ] > import django > > This would pick up your Django 1.

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Matt Conrad
On Fri, Sep 12, 2008 at 11:15 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > > Matt Conrad wrote: >> 2008/9/12 Jarek Zgoda <[EMAIL PROTECTED]>: >>> Use virtualenv (http://pypi.python.org/pypi/virtualenv) with separate >>> environments for each django ve

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Matt Conrad
On Fri, Sep 12, 2008 at 11:15 AM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > You can influence what this list is, by setting the PYTHONPATH > environmental variable. All you need to do is set your PYTHONPATH > appropriately, and point it to the appropriate place, depending on which > Django insta

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Matt Conrad
2008/9/12 Jarek Zgoda <[EMAIL PROTECTED]>: > > Use virtualenv (http://pypi.python.org/pypi/virtualenv) with separate > environments for each django version. Thanks Jarek. I will try the directory based approach first, but also keep this in mind. Matt --~--~-~--~~~--

Re: Help: Running 1.0 and 0.96 side by side?

2008-09-12 Thread Matt Conrad
Thanks for the reply. I don't quite understand yet. Let's see how close I am. I have a Python application directory (on my machine, C:\apps\Python25\). Inside that directory I have \Lib\site-packages\django, which is currently v0.96. Right now, the PYTHONPATH environment variable is not set at