Re: Using request object in settings.py for custom logging

2015-11-25 Thread Nikunj Badjatya
Thank you for your response. Well our application is single site only. AFAIK, sites framework is useful when your django application serves multiple sites. Can you throw some more light on what can be achieved using sites ? I would like to evaluate all available options. Thanks. On Tuesday, No

Re: Using request object in settings.py for custom logging

2015-11-25 Thread Jani Tiainen
Well sites framework makes possible to do for example multitenancy inside database. But apparently that is not your case. So why you like to log something per user? What's the real usecase here? On 25.11.2015 11:45, Nikunj Badjatya wrote: Thank you for your response. Well our application is

Re: Using request object in settings.py for custom logging

2015-11-25 Thread Nikunj Badjatya
We want to separate out activity per client. This can be useful in many ways. Ex. 1) easier debugging of issues. 2) Running some analytics per client by looking at his log file. 3) Clients which are no longer a customer, their logs can be safely moved to lower storage tiers. etc. Basically to he

Re: Django admin: is there an event, or another way to call a Javascript function, when a Django Admin Popup (the green plus icon) completes ?

2015-11-25 Thread boitoletre
Hi, I see this question is not receiving a lot of love. Perhaps we can try to approach it differently then: What is the mechanism that populates back the parentform select once the pop-up form is completed and saved ? (As I have very limited experience with front-end web technologies, I woul

django CMS 3.2 is now available

2015-11-25 Thread Daniele Procida
Hello, we released django CMS 3.2 last night, which we are very excited about. There are lots of new improvements and functionality, but we think we have a Django first: a CMS with (near-complete) touch-screen support, not just for published websites, but for all the editing interfaces. (It wa

Re: Problem with login and register form

2015-11-25 Thread Dariusz Mysior
Hmm I forget about it but I change names on form_l and form_r and effect is the same, I had also info C:\Python34\lib\site-packages\django\template\defaulttags.py:66: > UserWarning: A {% csrf_token %} was used in a template, but the context did > not provide the value. This is usually cause >

Re: Problem with login and register form

2015-11-25 Thread knbk
It's a good idea to use render() instead of render_to_response(), see https://docs.djangoproject.com/en/1.8/topics/http/shortcuts/#render. That will fix the issue with the CSRF token. render() takes the request as the first argument, and uses a RequestContext. This is needed to run the context

Re: Problem with login and register form

2015-11-25 Thread Dariusz Mysior
It's not fix a problem. W dniu wtorek, 24 listopada 2015 21:34:30 UTC+1 użytkownik Dariusz Mysior napisał: > > Hi I had a problem with display a form of login and register, please look > on it. > > my template access_ownsite.html > > {% load staticfiles %} > > > > > {% block title %}{% en

Re: Problem with login and register form

2015-11-25 Thread Dariusz Mysior
Before template access_ownsite.html I had separated on few templates like login, register etc .html and it work's but now when I split it, a form is not forward to access_ownsite.html W dniu wtorek, 24 listopada 2015 21:34:30 UTC+1 użytkownik Dariusz Mysior napisał: > > Hi I had a problem with