Re: Global access to request.user

2015-04-01 Thread Thomas Güttler
Am 27.03.2015 um 17:16 schrieb Cal Leeming: Hmm this all sounds quite dirty :/ However if you absolutely want to have a global object, you could try something like [1], although I don't recommend it at all. There are some situations where your modelling needs request introspection, for example r

Re: Global access to request.user

2015-04-01 Thread Thomas Güttler
Am 27.03.2015 um 19:05 schrieb Stephen J. Butler: On Fri, Mar 27, 2015 at 10:30 AM, Thomas Güttler wrote: You have an instance method to render one row of a search result (a custom paginator). One column of this row displays a link. Some users are allowed to follow the link, some are not. Yo

setup.py for project?

2015-04-01 Thread Thomas Güttler
Using a setup.py for reusable apps makes sense. This way you can share the code via a pypiserver. Our projects are very small. They don't have models, only config. With "project" I mean the small (in our case) git repo which holds settings.py urls.py. But does a setup.py make sense for the proj

Re: setup.py for project?

2015-04-01 Thread Tim Graham
The choice depends on your requirements. The code for djangoproject.com doesn't have a setup.py because we pull the code directly from git to "install" it on server. This makes deploying incremental changes easy as we just run Ansible which pulls the latest changes. We don't have the notion of

Re: Global access to request.user

2015-04-01 Thread Cal Leeming
On Wed, Apr 1, 2015 at 9:36 AM, Thomas Güttler wrote: > Am 27.03.2015 um 17:16 schrieb Cal Leeming: >> >> Hmm this all sounds quite dirty :/ >> >> However if you absolutely want to have a global object, you could try >> something like [1], although I don't recommend it at all. There are >> some si

Is blind carbon copy implemented?

2015-04-01 Thread Den
Hello, everyone. First of all, bcc doesn't work even in console email backend for me. I'm unable to find code that processes bcc case. Something like that for CC . Is it implemented at all? Thanks in advance.

Is bcc implemented?

2015-04-01 Thread Den
Question in topic. Previous was deleted. Prooflink: https://github.com/django/django/blob/stable/1.6.x/django/core/mail/message.py#L248 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

oTree: a Django toolset for multiplayer strategy games

2015-04-01 Thread c13918567
Hello all, Please check out my project oTree: https://github.com/oTree-org/oTree It is an open-source, Django-based toolset for multiplayer turn-based strategy games, like the prisoner's dilemma and other games from game theory and economics

Re: Global access to request.user

2015-04-01 Thread Stephen J. Butler
On Wed, Apr 1, 2015 at 3:43 AM, Thomas Güttler wrote: > Headache makes the code which gets called outside the request-response > cycle. > For example cron jobs. > > Example: We create reports for users in cron jobs. Here we need a user > object > and have no context. You still have a Context obje

Re: Is blind carbon copy implemented?

2015-04-01 Thread Stephen J. Butler
BCC recipients don't get included in the message headers. If they were stuffed there, then they wouldn't be "bilnd", they would appear in every copy of the message! The code that includes them is here: https://github.com/django/django/blob/stable/1.6.x/django/core/mail/message.py#L263 You say it

Re: Is blind carbon copy implemented?

2015-04-01 Thread monoBOT
If you want to use BCC .. you should use EmailMessage. https://docs.djangoproject.com/en/1.7/topics/email/#django.core.mail.EmailMessage 2015-04-01 17:35 GMT+02:00 Den : > Hello, everyone. > > First of all, bcc doesn't work even in console email backend for me. > > I'm unable to find code that p

[ANNOUNCE] Django 1.8 released

2015-04-01 Thread Tim Graham
Django 1.8, the next long-term support release, is now available: https://www.djangoproject.com/weblog/2015/apr/01/release-18-final/ With the release of Django 1.8, Django 1.6 has reached end-of-life. As such, Django 1.6.11 is the final release of the 1.6 series. Django 1.7 will continue to rec

Re: Is blind carbon copy implemented?

2015-04-01 Thread Den
Thanks for the answers. Excuse me for panic. Actually, there is no need in my code. One can see that smtp backend makes use of message.recepients() while console backend - don't

Re: setup.py for project?

2015-04-01 Thread Ilya Kazakevich
Hello. What exactly are you trying to achieve? If you have some part of functionality that is interesting for other people/projects and hence should be shared via pypi, you should extract it as reusable app. Projects, how ever, are not reusable. If you need a fast way to install al project req

Re: encode url

2015-04-01 Thread Ilya Kazakevich
Why do you need it? Web-browser encodes your data using Percent-encoding (http://en.wikipedia.org/wiki/Percent-encoding) by default. You may base64 your code on client side using JS and decode it on server side using python, but it seems useless for me. base64 is used to eliminate special cha