Re: Unable to see user id

2007-06-17 Thread Pedro Lima
Are you sending the RequestContext into the template? render_to_response('page.html', RequestContext(request,{}) On Jun 17, 4:06 pm, jeffhg58 <[EMAIL PROTECTED]> wrote: > I am having a problem seeing the user id on my web pages. Basically, I > am referencing > {{ user.username }} in my html tem

Re: Organisational question

2006-10-01 Thread Pedro Lima
You can use generic relations. See this thread for an example http://groups.google.com/group/django-users/browse_thread/thread/50b6712cd7738d9d/aa9e13bb7e597eec Hope it helps, Pedro Lima --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: how to make the admin search form matching results by 'exact' but not 'icontains'

2006-09-19 Thread Pedro Lima
Did you check this part of the documentation? http://www.djangoproject.com/documentation/model_api/#search-fields regards, pvl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: User Registration weirdness. Ian, help!

2006-08-25 Thread Pedro Lima
BTW, depending on your application you may want to make the hash with the email and something specific from your site to be able to validate the link latter. If you only set the email in the hash someone can do cryptString('[EMAIL PROTECTED]') and register. --~--~-~--~~~-

Re: real-world Django examples

2006-08-19 Thread Pedro Lima
Hello Baurzhan, Two more sites with nice source. Limodou: http://www.djangocn.org/help/ Luke Plant: http://lukeplant.me.uk/blog.php?id=1107301641 Hope to see you around. pvl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Filter, ForeignKey and edit_inline

2006-08-17 Thread Pedro Lima
That kind of sorting is usually done in python after the query. But if it is possible to make the query by EventDate it would be better to do eventdates = EventDate.objects.filter(beginning_date__range=(start_date, end_date)).order_by('beginning_date').select_related() then you access the event

Re: Shell not picking up db changes

2006-08-13 Thread Pedro Lima
Module reload works as expected >>> import uatki.blogdata.models as m >>> e = m.Blog.objects.get(id=1) >>> e.test() Traceback (most recent call last): File "", line 1, in ? AttributeError: 'Blog' object has no attribute 'test' [ changed the model to have a test method ] >>> reload(m) >>> e =

Re: Django Blog software

2006-08-13 Thread Pedro Lima
For a more complete blog application I suggest checking limodou's woodlog http://www.djangocn.org/help/#does-woodlog-is-open-source --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Reset all apps?

2006-06-09 Thread Pedro Lima
I use this script to reset the database and then load some test data. from django.db import connection from django.core import management from django.contrib.auth.create_superuser import createsuperuser cursor = connection.cursor() cursor.execute("select tablename from pg_tables where schemaname=