Not able to install Django in Windows10

2016-02-22 Thread Nasif Noorudeen
I am not able to install Django 1.9.2(any version of Django ) in Windows 10. I am using following command to install Django pip install Django==1.9.2 it is working fine in Windows 8 and Windows 7. It seems like this is is the issue with pip tool If i simply type pip.exe also nothing is happeni

Re: Composite Primary Keys

2016-02-22 Thread Michal Petrucha
On Tue, Feb 16, 2016 at 05:38:12PM -0800, Cristiano Coelho wrote: > Hello there, > > What's the status for this? This > (https://code.djangoproject.com/wiki/MultipleColumnPrimaryKeys) is 3 years > old (last edit) and the links on it are even older. Googling around only > gave me some very old p

Re: Not able to install Django in Windows10

2016-02-22 Thread Dmitry Gladkov
Hi Nasif, My colleague had the same problem couple of days ago with running pip on Windows and in his case the problem was that antivirus software (Avast in his case) blocked execution of pip process. Having said that, this is clearly a pip related problem, so please move further discussion to pi

Re: Adding SASL authentication support to PyLibMCCache

2016-02-22 Thread Ed Morley
Hi Tim, Thank you for your reply. Yeah I spotted that discussion (it's [6] in the OP). Back then Heroku (and other PaaS providers) were less common (and I'm not sure how many of those users frequent this list). Given that django-pylibmc has 8000 downloads a month on PyPI (and this is bearing

Re: Not able to install Django in Windows10

2016-02-22 Thread gilberto dos santos alves
Hi. Please verify: 1 - what is your version especify name (home, professional, etc) 32 or 64bits, locale / language, python version 2 - look at your environment var system %PATH% (not user path) (to see open cmd and echo %PATH% 3 - if your %PATH% do not have python/scripts folder declared or fir

Re: % vs {} string formatting for public APIs

2016-02-22 Thread Tim Graham
As Claude noted in the ticket for the success_url change: "I think that using the old percent-based interpolation method in get_success_url was not very wise, considering that % is a common escape marker in URLs. I'd suggest using the new format interpolation method to elude conflicts with esca

Re: Adding SASL authentication support to PyLibMCCache

2016-02-22 Thread Claude Paroz
Le lundi 22 février 2016 13:00:31 UTC+1, Ed Morley a écrit : > > (...) > > I'm happy to put together a PR to make the impact/complexity easier to > judge, if that helps? > > Yes, it always help to see the code. > Before I do that I would just need to know whether the `username`, > `password`

Re: % vs {} string formatting for public APIs

2016-02-22 Thread Claude Paroz
Hello, I don't see much gain with that change, except for specific cases. This would also bring a bunch of compatibility issues. I'd rather make the change when it does bring something. I understand your consistency argument, but we need to balance that with the work generated by the change in

Re: % vs {} string formatting for public APIs

2016-02-22 Thread James Bennett
The only argument I see for format() over the % operator is that bytes objects explicitly do not have the format() method and so it'll catch errors where a bytes object is passed to something expecting a string. But since we're already Unicode-ifying everything at the boundaries and have been sinc

Re: Lazy operations refactor regression with abstract models #25858

2016-02-22 Thread charettes
Hi everyone, I submited a PR[1] that partially reverts the initial fix and document how app relative lazy relationships behave when defined on abstract models subclassed as concrete models in foreign applications. Reviews welcome! Simon [1] https://github.com/django/django/pull/6178 Le mercr

Unified temporal subtraction support

2016-02-22 Thread charettes
I recently worked on making substraction of temporal fields return a `DurationField` on all database backends[1]: class TemporalModel(models.Model): from_date = models.DateField() to_date = models.DateField() from_time = models.TimeField() to_time = models.TimeField() from_da

Re: remove support for unsalted password hashers?

2016-02-22 Thread Markus Holtermann
Cheers Tim, looks good to me, assuming the migration actually works :-], haven't tried it out. We probably should advice people that running that migration potentially takes a while, depending on how many passwords they need to update. /Markus On Friday, February 19, 2016 at 3:52:53 AM UTC+11

Re: Improving MSSQL and Azure SQL support on Django

2016-02-22 Thread Vin Yu
Hey Folks, My name is Vin and I work with Meet in the Microsoft SQL Server team. Just wanted to let you all know we are still looking into how we can better improve and support MSSQL for the Django framework. We’ll continue to sync with Michael and let you know of any updates soon. Christiano