Re: Pre-DEP: Meta.without_primary_key (related to CompositeFields)

2017-05-25 Thread Roger Gammans
Hi, This would be useful for us too ; this is our use-case, again this is a legacy schema which are rebuilding the system to use django, but there are some models which we are using composite-pk support for due to the following. Having these feature many we could use a vanilla django.(eg one with

Re: assertRaises vs. assertRaisesMessage

2017-05-25 Thread Shai Berger
Hi, I apologize for re-raising a thread that's mostly done and decided, but I just ran into [1] where it says: """ Note Exception messages are not part of the Python API. Their contents may change from one version of Python to the next without warning and should not be relied on by code which

Re: Connecting to postgresql database

2017-05-25 Thread Tom Forbes
Hi Anthony, this mailing list is for the development of Django only. Please post questions like this to django-users or ask in the #django freenode IRC channel, and not in this mailing list. As for your issue: the exception message explains exactly what the issue is. Try running 'pip install --upg

Connecting to postgresql database

2017-05-25 Thread Anthony Njogu
I have been trying to connect my project to postgresql db. my django doesnt understand the 'python manage.py migrate' command and every time I try using syncdb it gives me this error; Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) Fi

Re: Integrate dj-database-url into Django

2017-05-25 Thread Florian Apolloner
On Thursday, May 25, 2017 at 9:46:56 AM UTC+2, Aymeric Augustin wrote: > > I'm wary of possible security ramifications: if we do this, changing a > configuration value will import an arbitrary module, which could make it > easier to run arbitrary code in some scenarios. I don't have a clear threa

Re: migration lock file implementation

2017-05-25 Thread Adam Johnson
I agree, it really depends on your project's workflow and organization as to how often you see migration conflicts and whether this is the right way to show them to users. Creating lock files in django core would just add confusion for 99% of projects. On 24 May 2017 at 23:03, Florian Apolloner w

Re: Integrate dj-database-url into Django

2017-05-25 Thread Aymeric Augustin
Hello, I'm wondering what the exact definition of the URL format is. Is it specified somewhere? Or is it just: [engine]://[username]:[password]@[host]:[port]/[name] where we create arbitrary [engine] values in an ad-hoc fashion? > On 24 May 2017, at 21:21, Tom Forbes wrote: > > My two cents: