Can I escape or delimit the "{{ }}" template braces?

2011-12-19 Thread J. Marc Edwards
I'd like to write a paragraph on my page that describes the {{ }} syntax, but the template interpreter is interpreting the braces. -- J. Marc Edwards Lead Architect - Semiconductor Design Portals Nimbis Services, Inc. Skype: (919) 747-3775 Cell: (919) 345-1021 Fax: (919) 882-8602 marc

Problem re-creating SQLite database with manage.py...

2011-12-16 Thread J. Marc Edwards
ere my manage.py and settings.py are located. It seems that perhaps my settings.py file is not being picked up from the same directory. I'm getting the same error inside of my Eclipse Django PyDev environment. Are there any more direct, manual process for invoking the syncdb with the settings.

Newbie question on forms using ChoiceField and "choices" field...

2011-12-15 Thread J. Marc Edwards
ays that this should be an iterable of 2-tuples, but seems to indicate it could be a list as well. The documentation here seems unclear, i.e an iterable of tuple of 2-tuples, I don't think it means this. How can I achieve what I am looking for here? > choices > An iterable _/(e.g., a

Re: Novice question...generation of model instances within a "for" loop...

2011-12-08 Thread Marc Edwards
used. Would this explanation seem reasonable? On Dec 8, 12:52 pm, Marc Edwards wrote: > OK...adding the .pk=None did the trick, but why didn't I have to do > this on the outer loop? > > On Dec 8, 11:52 am, Brian Schott wrote: > > > > > > > > > I

Re: Novice question...generation of model instances within a "for" loop...

2011-12-08 Thread Marc Edwards
t; > Brian Schott > bfsch...@gmail.com > > On Dec 8, 2011, at 11:47 AM, Marc Edwards wrote: > > > > > > > > > I'm looping through some JSON code and generating new model instances > > that I am saving to my SQLiteDB. > > > I have 3 nested &

Re: Novice question...generation of model instances within a "for" loop...

2011-12-08 Thread J. Marc Edwards
Brian: I'm getting the same behavior with the new_cmd_str.id=None. I'm going to get a sandwich. I'll think about this more over lunch. -M J. Marc Edwards Lead Architect - Semiconductor Design Portals Nimbis Services, Inc. Skype: (919) 747-3775 Cell: (919) 345-1021 Fax:

Novice question...generation of model instances within a "for" loop...

2011-12-08 Thread Marc Edwards
I'm looping through some JSON code and generating new model instances that I am saving to my SQLiteDB. I have 3 nested "for" loops, like this: for app_catalog in JSON_Object['TSS_WorkFlow_Catalog']: for eda_app in app_catalog['EDA_App']: new_eda_app = EDA_App(isv=eda_app['

Re: Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
file in any way except through the admin interface. On Dec 5, 7:44 pm, Marc Edwards wrote: > This is the confusing part.  The EDA_AppCatalog imports from my > bookmarks package with no problem. > > My class definition for this object has only 1 field, a ForeignKey to > an EDA_App.

Re: Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
verified that the table > bookmarks_eda_appcatalog exists and that it has a column named eda_app_id? > Did you use manage.py syncdb to create the tables? > > Furbee > > > > > > > > On Mon, Dec 5, 2011 at 4:24 PM, Marc Edwards wrote: > > I am receiving the foll

Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
I am receiving the following error from the Django debugger when trying to access my EDA_AppCatalog object. My class definition is listed below. I have similar defined objects that are working with no problem, but I can't seem to clear this error message up. Thanks, Marc DatabaseError at /admin

Conditional choice fields for model specification...

2011-12-05 Thread Marc Edwards
I would like to create my choice fields in my models according to a hierarchy of conditions, but I can't think of how to specify this in Python. For example...pseudo code... class mod1(models.Model): choice1 = ( ('a', 'A'), ('b', 'B'), ) choice_a_if_choice1_is_A = (

Retrieve object model admin userid & password?

2011-11-30 Thread Marc Edwards
I am working through some authentication examples. When I created my first database, I "recall" entering a username and password, but entering what I recall was the correct input is not authenticating. Is there an easy way to reset or retrieve the username and password that was used to create the

Newbie question on re-defining an XML schema in my Django data model...

2011-11-29 Thread Marc Edwards
I need some help in resetting my thinking on creating my Django data model. I have previously created an XML schema definition for my data model, but am now trying to re-create this XML data model in a Django data model. In my XML schema, I had defined "collections" of XML complex types that esse