Re: Can I use Django Channels to solve this architectural prolem?

2016-11-15 Thread Andrew Godwin
You could use channels (well, ASGI, it's lower-level interface) for the interconnect: - Use channels for signals from the web service to the controller daemon (maybe "service.stop" or "service.start" with the service name in the message payload). You can trigger these from simple AJAX or GET view

Can I use Django Channels to solve this architectural prolem?

2016-11-15 Thread psaod8fza9s
Hi there, I want to develop a Django site where users have the possibility to interact with systemd services in realtime and to see the log output in realtime. I sketched up a quick draft on my idea how this could work: https://i.imgur.com/pd5uLtl.jpg One simplified use-case would be: 1.

RE: Admin Email From Address

2016-11-15 Thread Matthew Pava
Thank you so much, Constantine! That was the clue I needed. It’s not exactly the cleanest solution, but it does get the job done. I copied AdminEmailHandler and mail_admins and modified them appropriately to include the from_email address. I had some issue with “Apps not loaded,” but all I h

Re: Admin Email From Address

2016-11-15 Thread Constantine Covtushenko
As I know all error emails are sent within logger handler: 'mail_admins'. I would suggest to override 'AdminEmailHandler' and 'mail_admins'. for more information check logging documentation . Hope that helps On Tue, Nov 15, 2016 at 10:31 P

RE: Admin Email From Address

2016-11-15 Thread Matthew Pava
The error emails only go to the admins: me. I would not be confused because the subject line of the email indicates that it is coming from the Django app starting with [Django]. The value in receiving the emails with the user’s email address is so that if, for instance, the president of the co

Re: Admin Email From Address

2016-11-15 Thread Constantine Covtushenko
Sorry but I do not see any valuable reason of doing things in such way. Email is sent from wrong sender. And if someone decides to email back than those user would be confused. It is better to call things by its name. On Tue, Nov 15, 2016 at 4:05 PM, Matthew Pava wrote: > In such cases, we wou

Re: Basic configuration for running under Apache

2016-11-15 Thread Antonis Christofides
The author of that snippet decided that the root directory of the Django project is named "mysite.com", whereas the Django project itself is "mysite". While this is plausible, it is suboptimal as an example because usually the root directory of the Django project has the same name as the Django

Re: javascript variable to django template

2016-11-15 Thread GMail
Hi, As any other variable: var myAwesomeVar = {{ my_awesome_var }}; alert(myAwesomeVar); > On 15 Nov 2016, at 18:46, kml Awad wrote: > > Hi, > > How can I inject javacript object (variable ) in django template (html) ? > > Thank you for your help. > > regards. > > -- > You received

javascript variable to django template

2016-11-15 Thread kml Awad
Hi, How can I inject javacript object (variable ) in django template (html) ? Thank you for your help. regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email t

Re: Django, Ajax e Fullcalendar

2016-11-15 Thread Elias Coutinho
I'm sorry, Now correctly translated. Good afternoon everyone. I watched a video from a colleague https://www.youtube.com/watch?v=PwskBz5re4Q&feature=youtu.be and I took a ride on his project to start Ajax study. I took advantage of the api rest he created, modified it a little to fit what I w

Django, Ajax e Fullcalendar

2016-11-15 Thread Elias Coutinho
Boa tarde a todos. Assisti o vídeo de um colega https://www.youtube.com/watch?v=PwskBz5re4Q&feature=youtu.be e peguei carona no projeto dele para iniciar estudo de Ajax. Aproveitei a api rest que ele criou, modifiquei um pouco para atender o que eu desejava, ja havia estudado django rest framew

RE: Admin Email From Address

2016-11-15 Thread Matthew Pava
In such cases, we would have a fallback that is already established in the settings file. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Constantine Covtushenko Sent: Tuesday, November 15, 2016 12:46 AM To: django-users@googlegroups.com Subject: Re: Admin

Re: Basic configuration for running under Apache

2016-11-15 Thread Tim Graham
I think it's just an example directory name. You can use whatever names you like. On Monday, November 14, 2016 at 2:36:44 PM UTC-5, bob gailer wrote: > > https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/ > > This page offers: > > WSGIScriptAlias //path/to/mysite.com/mysite/

Re: Modify Django Community Blog RSS feed url

2016-11-15 Thread Dávid Főző
Thank you! Really appreciate it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to