What is the best combination of components to be used with Django on Windows 10?

2016-12-25 Thread Varuna Seneviratna
What is the best combination of components to be used with Django on Windows 10?. By components, I mean the database and the web server.Can Django be employed with IIS? Regards,, Varuna -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

What is the best combination of components when installing Django on Windows 10?

2016-12-25 Thread Varuna Seneviratna
Hello, What is the best combination of components to be used when installing Django on Windows 10; By Components, I mean the database and the web Server. Thanks, Varuna -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: existing database connectivity

2016-12-25 Thread Rasika
yes it worked well. Thank you so much On Saturday, December 24, 2016 at 9:46:04 AM UTC+5:30, Collin Anderson wrote: > > Hi, > > You could try re-installing psycopg2 to see if that fixes it. > > Collin > > On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote: >> >> >> I am followed the

Re: MultiWidget not rendering

2016-12-25 Thread Farhan Khan
Hi all, I figured out how it works. Using MultiWidget requires three components: MultiWidget, MultiValueField and a form. Here is my example: class ComplexMultiWidget(forms.MultiWidget): def __init__(self, attrs=None): widgets = ( forms.DateInput(), forms.Sel

Re: bug of session middleware --- session never expires

2016-12-25 Thread Chaos Wong
Thanks for the advice. It's indeed a rude way to force session to expire only depend on the absolute time. User always encounters session-expired event when posting something. I will consider your way 3). But how the django know user has closed the browser ? 在 2016年12月26日星期一 UTC+8上午5:24:07,Melv

Re: bug of session middleware --- session never expires

2016-12-25 Thread Chaos Wong
Thanks. I've traced the call stack, the expire_date is affected by SessionBase.*get* ("_session_expiry") ,//line 246 in django.contrib.session.backends.base.py and variable `_session_expiry` stored in SessionBase.*_session_cache *, which is set in method SessionBase.*set_expiry*(). //line

Re: How to display user's photo that i follow in post's list in Django

2016-12-25 Thread Melvyn Sopacua
On Thursday 22 December 2016 17:45:56 skerdi wrote: > That get_photo func, I'm not using it. It tried to do something and I > forgot to delete it. Try this on the Profile model: *def get_photo_url(*self, user, when_following*=True**):if *when_following*:try:if *self.follo

Re: How do I translate site.name to other languages?

2016-12-25 Thread Melvyn Sopacua
Hi Uri, On Thursday 22 December 2016 19:40:15 Uri Even-Chen wrote: > We have our site.name and other site names (we have 4 sites in Django > right now) in templates such as base.html. The site is taken from > model Site (```from django.contrib.sites.models import Site```). Untested, but since Si

Re: bug of session middleware --- session never expires

2016-12-25 Thread Melvyn Sopacua
Hi, On Sunday 25 December 2016 11:14:03 ludovic coues wrote: > I believe that is the intended behaviour. > > When I use a banking site for example, I don't want to be disconnected > while doing operations 5 minutes after login in. I want the session > to expire when I stop using it. There is act

How to set default css classes for all built-in form widgets

2016-12-25 Thread jxrossel
Merry Christmas to you ! Short version: is it possible to define a set of default css classes that Django should use whenever rendering a form ? Long version: The context is as follows: I would like to use the css classes defined in the w3.css framework for all my forms ( http://www.w3schools.c

Django using Netbeans

2016-12-25 Thread Kazi Atik
I just want to know can be work with django using Netbeans. if it is possible can anyone tell how to set environment ? please help me out. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How do you recommend to use Hebrew gender-related translations?

2016-12-25 Thread Uri Even-Chen
Thanks, I think contextual markers is a solution, where they can be either "female", "male" or "other". *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

Re: bug of session middleware --- session never expires

2016-12-25 Thread ludovic coues
I believe that is the intended behaviour. When I use a banking site for example, I don't want to be disconnected while doing operations 5 minutes after login in. I want the session to expire when I stop using it. Django's session middleware try to solve that use case which is what is needed 95% o