Re: ConnectionResetError in test_closes_connection_without_content_length

2017-09-22 Thread Zhiqiang Liu
Hi Chris, I did installed sqlite through brew install sqlite, the error still happens. On Friday, September 22, 2017 at 7:52:53 AM UTC-4, Chris Foresman wrote: > > The problem is the version of SQLite included in recent versions of macOS. > The easiest fix we saw was installing Homebrew and the

Re: New Feature: Allow password reset token to expire in under a day

2017-09-22 Thread Zhiqiang Liu
Luke, thanks for the long explanation. I see your points here. I actually saw the make token function and was thinking about it what is the best way to do with that. I think most people here feel there's need to at least allow some flexibility for the time out since there will be cases under a

Re: New Permissions Scheme

2017-09-22 Thread Jamesie Pic
Have you tried of django-guardian ? What do you think about it ? TBH I never actually used it (I've been doing Django for 9 years and have never used a permission table), but I think it does what you want. >From my experience, permissions are thought of something that can be calculated on the fly

Re: New Permissions Scheme

2017-09-22 Thread Ramez Ashraf
> > > After some some thoughts, i figured out that one route to change how permissions work in Django can be done by changing AUTHENTICATION_BACKENDS to a Custom ModelBackend Subclass that query for Permissions in a different way or from a different model / Table; And this solution can be imple

Re: New Feature: Allow password reset token to expire in under a day

2017-09-22 Thread Luke Plant
I would be +1 to what Adam wrote from me i.e. just allow the value to accept floats. However, I don't think it will work due to the way that we round the precision of timestamps to days . This was done partly to r

Django 2.0 alpha 1 released

2017-09-22 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 2.0! With just a little over two months until the final release (scheduled for December 1), we'll need timely testing from the community to ensure an on time, stable release. Check out the blog post: https://www.djangop

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Zhiqiang Liu
Finally found it out. There's a browser extension called django version switcher hidding in my browser, which is carried over to my new laptop when I set it up. The extension will intercept your request to django docs site and redirect you to a version it remembered. It must be long ago becaus

Re: CONTRIBUTION TO DJANGO

2017-09-22 Thread Asif Saifuddin
Hi Heba khan, you could give a look on this old PR of mine to have some idea about what was suggested to you. https://github.com/encode/django-rest-framework/pull/4824 This type of patch to some popular django 3rd party packages would be easier for you to get started to open source contrib.

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Zhiqiang Liu
Ah it used to happen to all my browsers, now with the new laptop it only happens to Chrome, so it is browser related I think. On Friday, September 22, 2017 at 1:27:08 PM UTC-4, Zhiqiang Liu wrote: > > Here it is > HTTP/1.1 302 Found > Server: nginx > Date: Fri, 22 Sep 2017 17:26:03 GMT > Content

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Zhiqiang Liu
Here it is HTTP/1.1 302 Found Server: nginx Date: Fri, 22 Sep 2017 17:26:03 GMT Content-Type: text/html; charset=utf-8 Content-Length: 0 Connection: keep-alive x-content-type-options: nosniff Content-Language: en Location: /en/1.11/ x-xss-protection: 1; mode=block X-Frame-Options: SAMEORIGIN Vary:

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Jamesie Pic
Amazing, what's the output when you try `curl -I https://docs.djangoproject.com/en/stable/ | grep Location` ? If none, try without the `| grep Location`. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To

Re: CONTRIBUTION TO DJANGO

2017-09-22 Thread Heba Khan
Hi Tom! Thank you so much for taking time out and answering my queries. However, I'm still unclear about how to move ahead with all the guidelines suggested by you. I would be extremely grateful if you could guide me a bit more with respect to all your suggestions. On Friday, 22 September 20

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Zhiqiang Liu
even https://docs.djangoproject.com/en/stable/ directs me to /1.6/ and will give me 404. This has been bothering me for a while and I don't know why it doesn't happen to many. I set up a brand new laptop yesterday and still have the same issue. On Friday, September 22, 2017 at 7:38:10 AM UTC-4,

Re: New Feature: Allow password reset token to expire in under a day

2017-09-22 Thread Zhiqiang Liu
+1, also it is a good point that all things in settings should be simple, complex date object does not belong there, at least should not be required. It should be for the majority of users as possible. On Friday, September 22, 2017 at 4:53:55 AM UTC-4, Adam Johnson wrote: > > +1 for consistency

Re: ConnectionResetError in test_closes_connection_without_content_length

2017-09-22 Thread Chris Foresman
The problem is the version of SQLite included in recent versions of macOS. The easiest fix we saw was installing Homebrew and then doing a `brew install sqlite`. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)"

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread phani p
Guys i have an suggestion.Instead of showing *https://docs.djangoproject.com/en/1.11/ * we can show it as *https://docs.djangoproject.com/en/latest/ * . Every time we have new release we can proxy pass */latest *end

Re: There should be a way to make Templates substitution to raise an exception on error

2017-09-22 Thread Sjoerd Job Postmus
Indeed it could be! What if it was not `string_if_invalid` but `if_invalid`. The value could be: * An Exception instance (which would then be raised) * An Exception class (which would be instantiated with the "invalid" thing), and then be raised * A callable (which would be called, and must retu

Re: CONTRIBUTION TO DJANGO

2017-09-22 Thread Tom Forbes
Hey Heba, For a few popular packages on Github it could be as simple as making a merge request and changing their tox.ini or travis.yml file. Once the django 2.0 alpha is published on PyPi (sometime very soon) you could make a merge request to run the projects tests with the alpha, and inspect the

Re: There should be a way to make Templates substitution to raise an exception on error

2017-09-22 Thread Adam Johnson
I've used a solution like the one Emil links to before to great success, though perhaps there's scope to make it a bit less hacky in Django. On 22 September 2017 at 07:10, Emil Stenström wrote: > It as actually possible, just in a very hacky way. Django has a setting > called TEMPLATE_STRING_IF_

Re: New Feature: Allow password reset token to expire in under a day

2017-09-22 Thread Adam Johnson
+1 for consistency too. You can always use a timedelta if you want, with total_seconds() (not seconds as mentioned before😉). On 22 September 2017 at 08:48, Florian Apolloner wrote: > +1 for consistency > > On Friday, September 22, 2017 at 2:46:14 AM UTC+2, Collin Anderson wrote: >> >> Seconds is