site.title does not show in child flatpages templates
Hi, when i load my site i have the next code in my view: current_site = Site.objects.get_current() def default_index(request): return render_to_response('doorsFront/default_index.html', {'current_site':current_site}) I load the site name in my template and i extend this template por evereting at mi web site. this is the template code: {% block title %}{{current_site.name}}{% endblock %} When i have the defatul.htlm page for flatpages, i have this: {% extends "doorsFront/default_index.html" %} {% block title %}{{current_site.name}} My page{% endblock%} {% block content %} {{ flatpage.title }} {{ flatpage.content }} {% endblock %} and at the moment of viewing a flatpage, the title doesn't show, i think taht the reason is because i've passed de current_site object like a parameter in my view code, and the flatpages url doesn't know anyting about this parameter, but i don't know how to fix it. Thanks very much Best regards --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
site.title does not show in child flatpages templates
Hi, when i load my site i have the next code in my view: current_site = Site.objects.get_current() def default_index(request): return render_to_response('doorsFront/default_index.html', {'current_site':current_site}) I load the site name in my template and i extend this template por evereting at mi web site. this is the template code: {% block title %}{{current_site.name}}{% endblock %} When i have the defatul.htlm page for flatpages, i have this: {% extends "doorsFront/default_index.html" %} {% block title %}{{current_site.name}} My page{% endblock%} {% block content %} {{ flatpage.title }} {{ flatpage.content }} {% endblock %} and at the moment of viewing a flatpage, the title doesn't show, i think taht the reason is because i've passed de current_site object like a parameter in my view code, and the flatpages url doesn't know anyting about this parameter, but i don't know how to fix it. Thanks very much Best regards --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
create a google account
hi, anyone knows if is possible create an google account for an user from django code? thanks --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
when browser store user password, create user fail s
hi, when i loggin for first time in django admin interface, the browser ask me if i want to store the password, if i say yes, later when i want create a new user, the form is preloaded whit the logged user info any ideas? regards --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
iceweasel 3.0.6 create unser cache problem
Hi, when i store my password on icewasel 3.0.6 private data, and i want to create a new user, the new user form is preloaded with the current user's username and password regards --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
static list and start server process
Hello, i have a menu list stored at my database, i want to obtain it only at start server process, and later when add a menu entry this list should be updated, i have the following considerations: 1. I don't want a database query for every request, because menu entry list would be very low frecuency updated I think that i could run a method at start server processes, create a static list and when a menu entry entry operation happened at database, update the static list I don't know how to implement this in an efficient manner Regards --~--~-~--~~~---~--~~ 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, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
forms searh foreing key object
Hello I have a form with some required fields: date : required patient : (foreing key) descritpion: required The patient table can have at least 1000 records, i don't want to show on a select list, i want to implement another form where i can searh the patient, i want to know how to do this without lost the info from the acual form, and whitout trigger the validator form. regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.