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
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
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
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.
--~--~-~--~~~-
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
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
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 =
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
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=
9 matches
Mail list logo