Re: how to set field value of a form object before render it?

2009-08-29 Thread conrad
uming the initial attribute makes sense for the 'c' field. You can can dynamically reset field attributes (and even dynamically add fields) to a form. conrad On Aug 29, 5:50 am, Karen Tracey wrote: > 2009/8/29 hao he > > > thanks for your reply。 > > > yes,i want t

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

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
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
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-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.

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: 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

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: python manage.py sql [myapp] doesn't generate all the needed code ?

2006-05-10 Thread Alexandre CONRAD
NULL, >>`contact_fax` varchar(30) NOT NULL, >>`contact_address` longtext NOT NULL, >>`contact_city` varchar(50) NOT NULL, >>`contact_zipcode` integer NOT NULL, >>`contact_country` varchar(2) NOT NULL >> >>Any idea ? >> >>Reg

Re: Django without database

2006-05-12 Thread Alexandre CONRAD
eb server running without database, but >>did not succeed. >>I modified settings.py, DATABASE_ENGINE = '' >>But this did not work. >>Any ideas? >>ThanksAnja >> >> >> > > -- Alexandre CONRAD --~--~-~--~~~---

Re: Same app for each user

2006-05-13 Thread Alexandre CONRAD
mailing lists should have this link inserted into every mail: http://www.catb.org/~esr/faqs/smart-questions.html Regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE --~--~-~-

dynamic templates for form fields

2006-05-15 Thread Alexandre CONRAD
someway to reuse the admin code for autogenerating forms in my own application. I have looked into this page: http://www.djangoproject.com/documentation/forms/ But it explains I have to write every field into my template. Any idea ? Regards, -- Alexandre CONRAD - TLV Research & Developmen

Re: dynamic templates for form fields

2006-05-16 Thread Alexandre CONRAD
al useful: > http://www.postneo.com/2005/08/17/django-generic-views-crud Yeah, generic views is probably what I want and I'm having a hard time with the tutorial which is "underdocumented" as the post says. Thanks for the ressources, it's all good. Regards, > > > > On

Re: django/apache/mod_python

2006-05-19 Thread Alexandre CONRAD
0.24) I can't help you on this one. Regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE --~--~-~--~~~---~--~~ You received this message because yo

django site doesn't seem to display right under firefox

2006-05-23 Thread Alexandre CONRAD
t Explorer (version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519). Regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE --~--~-~--~~~---~--~~ You received this mes

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

looking for python or django SQL data editor

2010-12-18 Thread Len Conrad
phpmyadmin and other such mysql db design/maintain tools do too much, too complicated. I'm looking for a python or django web app that allows non-tech users to add/delete/search records. thanks Len -- You received this message because you are subscribed to the Google Groups "Django users"

Filtersets

2014-04-01 Thread Conrad Rowlands
Hi All. I wonder if anyone can point me in the right direction. I am building a web api using django and FilterSets and wish to allow consumers to perform a query along the lines of Manufacturer =x OR manufacturer = y etc etc Is this achievable out of the box and how would you specify this wit

Why can invalid models be saved?

2014-04-01 Thread Claus Conrad
Hi, sorry for the newbie question! In the admin I cannot create a user without a username, but on the shell it is possible: >>> from django.contrib.auth.models import User >>> u = User() >>> u.save() >>> u.id 2 I am trying to understand why this is possible. Does this mean model constraints i

Relationships exposed over RESTful interface

2014-04-10 Thread Conrad Rowlands
Hi, I have an issue with regard to exposing a RESTful interface using filtersets and HyperLinkedModelserialisers. I have two model classes defined thus: class Manufacturer(CommonExtendedIcon): WebSite=models.CharField(max_length=1024) StandardList=models.BooleanField(default=False)

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
that would allow me to load this data using only the 1 queries bringing in all of the related fields in the original query. Thanks again for your help. Kind regards Conrad On Thursday, 10 April 2014 14:58:36 UTC+1, Javier Guerra wrote: > > On Thu, Apr 10, 2014 at 8:29 AM, Conrad Ro

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
) with the ManufacturerViewSet. I'm guessing this could be achieved by overriding get_queryset in my ManufacturerViewSet though I don't know what to do from there? On Friday, 11 April 2014 14:17:11 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 3:51 AM, Conrad Rowlands &

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
ility. I am using a browser and I am using the DebogToolbar which I would be totally lost without! On Friday, 11 April 2014 15:01:22 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 8:31 AM, Conrad Rowlands > > wrote: > > As you can see the queryset is loading all from the

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
rer','url','SeriesStartDate','SeriesEndDate','SourceUrl','LastChecked') On Friday, 11 April 2014 15:01:22 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 8:31 AM, Conrad Rowlands > > wrote: > > As you can see the

Using the admin navbar & bootstrap throughout my project

2018-08-04 Thread Conrad Lawes
Call me boring but I like the simple elegance of the django admin panel. I was wondering is there a way use this layout thorough my project. All the tutorials I have read so far shows how to build your own navbar using the various third-party bootstraps and css. But none shows how use the built-i

Re: Using the admin navbar & bootstrap throughout my project

2018-08-04 Thread Conrad Lawes
ication you will > need to do a lot of backwards engineering - but it should be possible, > > Regards, > > Andréas > > 2018-08-04 4:27 GMT+02:00 Conrad Lawes >: > >> >> Call me boring but I like the simple elegance of the django admin panel. >> I was