Two proposals for the Django Code of Conduct.

2014-09-06 Thread Kevin Daum
I have submitted two pull requests for the code of conduct: - #84 , to let folks who belong to a wide variety of social identities know that yes, even they are welcome here, and - #86

Re: Setting dictionaries (was Re: integrating django-secure)

2014-09-06 Thread Marc Tamlyn
It does slight more than that - settings configured and settings used are two very different things at present - to use our canonical example MIDDLEWARE_CLASSES is *configured* by checking that it's a tuple of strings and is there. It's used/setup much later when those classes get imported and init

Re: Setting dictionaries (was Re: integrating django-secure)

2014-09-06 Thread Carl Meyer
On 09/06/2014 03:10 AM, Jannis Leidel wrote: >> Yes, that approach would definitely require some thinking (which I >> haven't fully done yet) about how best to get a custom >> ProjectConfig inserted into both the wsgi.py and manage.py >> entry-points. > > Just a quick drive-by comment: ZOMG YES P

Re: Proposal: enhance 1.7 migration docs re django.core.handlers.wsgi:WSGIHandler()

2014-09-06 Thread Aymeric Augustin
wsgi.py didn't exist in the project template before 1.4, but our mod_wsgi docs told people to create an "apache.wsgi" file containing: import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandle

Re: Proposal: enhance 1.7 migration docs re django.core.handlers.wsgi:WSGIHandler()

2014-09-06 Thread Marc Tamlyn
* With 1.4 - wsgi.py didn't exist before 1.4 IIRC On 6 September 2014 18:05, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > I made this addition here: > https://github.com/django/django/commit/f8fdb7177b79b79968a3f40612d33c7367ae584f > > I’m afraid most projects started before 1

Re: Proposal: enhance 1.7 migration docs re django.core.handlers.wsgi:WSGIHandler()

2014-09-06 Thread Aymeric Augustin
I made this addition here: https://github.com/django/django/commit/f8fdb7177b79b79968a3f40612d33c7367ae584f I'm afraid most projects started before 1.4 will hit this :-/ but the fix is really easy so I haven't tried to change the code. -- Aymeric. On 5 sept. 2014, at 20:23, Aymeric Augustin

Re: Documentation tool

2014-09-06 Thread Daniele Procida
On Fri, Sep 5, 2014, Daniel Chimeno wrote: >I'm looking for a documentation tool for my django project. >Something like JavaDoc or PHPDoc, to be able to generate a HTML|PDF with the >models, views, urls.. >I've used sphinx to non-related Django projects, but I've never tried with >Django. Hi Da

Documentation tool

2014-09-06 Thread Daniel Chimeno
Hello, I'm looking for a documentation tool for my django project. Something like JavaDoc or PHPDoc, to be able to generate a HTML|PDF with the models, views, urls.. I've used sphinx to non-related Django projects, but I've never tried with Django Any suggest? Thanks. Chimeno -- You receiv

Re: Bug in django\forms\models.py in _construct_form, line 593?

2014-09-06 Thread Tim Graham
Hi Piotr, What you've provided is a bit short on details for us to tell. Have you tried searching Trac for a similar issue? "Is this a bug?" questions should usually be asked on the django-users mailing list. A minimal project we can use to reproduce the error is really helpful. If you think it

Bug in django\forms\models.py in _construct_form, line 593?

2014-09-06 Thread Piotr Gosławski
Hi, when using UpdateView with formset (inlineformset_factory), I randomly got KeyError (page works, refresh, error, refresh, works, ...) Django Version: 1.7 Exception Type: KeyError Exception Value: 0 Exception Location: ...\django\forms\models.py in _construct_form, line 593 P

Re: Setting dictionaries (was Re: integrating django-secure)

2014-09-06 Thread Jannis Leidel
On 05 Sep 2014, at 23:18, Carl Meyer wrote: > On 09/05/2014 03:11 PM, Marc Tamlyn wrote: >> Yup, that works. The issue is that most users never explicitly call >> django.setup(), so they need to know how to modify manage.py and wsgi.py >> to do >> >> conf = MyProjectConfig() >> django.setup(con