Using django models on external scripts.

2006-04-16 Thread Julio César Carrascal Urquijo
Hi. I would like to use django models on external scripts to initialize/modify the database. Is it possible? I've followed the instructions of the tutorial (set DJANGO_SETTINGS_MODULE='website.settings' and importing website.settings works on python shell) but haven't been able to get it to work

Re: OpenID?

2006-04-16 Thread jeremy
Okay, sold. I put it here: http://code.djangoproject.com/wiki/CookBookShortcutsOpenIDAuthentication --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: Decoupling "choices" from Fields

2006-04-16 Thread Adrian Holovaty
On 4/16/06, George Sakkis <[EMAIL PROTECTED]> wrote: > Is there any thought on decoupling the "choices" parameter from the > type of bound Field, so that for instance something like > > IntegerField('Results per page', choices=[(n,n) for n in > 10,20,30,50,100]) > > would work as expected and not

Re: OpenID?

2006-04-16 Thread Ian Clelland
On 4/16/06, jeremy <[EMAIL PROTECTED]> wrote: > > If anyone is interested in verifying OpenID identities from within > Django, I've just implemented that and would be happy to share. It > wasn't particularly difficult given the Python openid library, but it > should save other implementers some t

OpenID?

2006-04-16 Thread jeremy
If anyone is interested in verifying OpenID identities from within Django, I've just implemented that and would be happy to share. It wasn't particularly difficult given the Python openid library, but it should save other implementers some time. -Jeremy (Django newbie) --~--~-~--~

Decoupling "choices" from Fields

2006-04-16 Thread George Sakkis
Is there any thought on decoupling the "choices" parameter from the type of bound Field, so that for instance something like IntegerField('Results per page', choices=[(n,n) for n in 10,20,30,50,100]) would work as expected and not return string instead ? If not, I'll add a ticket, though I'm not

Re: template problem

2006-04-16 Thread Ian Clelland
On 4/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I tried a bit more, and found out that: > - {{var}} and {% if %} (and maybe some more) work. > - {% extends %} and {% block %} throw the exception above. > > what can I do to make "extends" and "block" work ? I believe that you can't use

Re: TEMPLATE_DIRS relative to project?

2006-04-16 Thread Viktor
or you can just define in Your settings file: BASE = os.path.dirname(__file__) and do: TEMPLATE_DIRS = ( os.path.join(BASE, 'templates') ) and your settings will be location indipendent. jrs wrote: > I have solved this by using a settings_env.py file. At the top of my > settings.py file

Re: TEMPLATE_DIRS relative to project?

2006-04-16 Thread jrs
I have solved this by using a settings_env.py file. At the top of my settings.py file I have from settings_env import * then inside settings_env.py I define MY_BASE_PATH = /absolute/path/to/project/ so that inside settings.py the template becomes TEMPLATE_DIRS = ( MY_BASE_PATH + 'templates

Re: Django Summer of Code

2006-04-16 Thread Rudolph
Thanks! Maybe you can contact Guido van Rossum about this, he mentioned Google in his blog and works for Google... Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

template problem

2006-04-16 Thread [EMAIL PROTECTED]
hi, I'd like to use the django-template-system without the rest of django. so I tried a small example, which worked: import os os.environ["DJANGO_SETTINGS_MODULE"] = "__main__" #or appr. settings.py from django.core.template import * t = Template( """Hello {{name}} print t.render( {"name": "Phil

Re: Some help on edit_inline outside admin in M-R

2006-04-16 Thread Rudolph
I solved it myself, no help needed. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, s

Re: PostgreSQL Schemas.

2006-04-16 Thread Ed Epstein
Alex Li wrote: > I know that MS SQLServer and Oracle both have schema support (I think > it is part of SQL92 standard); probably other "traditional" RDBMSes > would have support too; don't know about MySQL and Sqlite... > > HTH, > Alex MS SQL has schema support? I just looked at the online techne

Re: Documentation HTML structure

2006-04-16 Thread James Bennett
On 4/16/06, Jj <[EMAIL PROTECTED]> wrote: > Shouldn't it be the other way arround (at top of the HTML tree), say.. > I'm looking for "add" and I would run into the "add" on the sidebar's > index first, which leads me where I want to, instead of going through > all the "add" that could be found in

Documentation HTML structure

2006-04-16 Thread Jj
I've noticed that the sidebar on the Documentation pages is at the bottom of the HTML markup, so when I make a search, the index that is there is one of the last things to be found... Shouldn't it be the other way arround (at top of the HTML tree), say.. I'm looking for "add" and I would run into