Re: django channels group subscriptions

2017-06-01 Thread Andrew Godwin
You should only use the documented, public groups API - anything else will vary based on the backend you use. You will, indeed, need your own expiration logic and backend for this process stuff - an easy entry point would be one of: - A database row per process with a timestamp bumped using keepal

Re: django channels group subscriptions

2017-06-01 Thread Brian May
On Friday, 2 June 2017 14:08:40 UTC+10, Andrew Godwin wrote: > > I don't have any direct examples to hand - and this sort of thing does > come all the time, but much like Django is not in the business of including > a full CMS, Channels can't add lots of high-level features without really > narr

Re: django channels group subscriptions

2017-06-01 Thread Andrew Godwin
I don't have any direct examples to hand - and this sort of thing does come all the time, but much like Django is not in the business of including a full CMS, Channels can't add lots of high-level features without really narrowing the usage - it's a general framework for you to build something on.

Re: django channels group subscriptions

2017-06-01 Thread Brian May
On Friday, 2 June 2017 13:04:48 UTC+10, Andrew Godwin wrote: > > You can't do what you ask with the current Groups system - it is > deliberately very simple as anything more complex involves picking scaling > tradeoffs that are particular to the thing it's powering. You'll have to > layer some o

Re: django channels group subscriptions

2017-06-01 Thread Andrew Godwin
You can't do what you ask with the current Groups system - it is deliberately very simple as anything more complex involves picking scaling tradeoffs that are particular to the thing it's powering. You'll have to layer some of your own code on top of groups (you can keep groups for the broadcast me

django channels group subscriptions

2017-06-01 Thread Brian May
Hello, I would like to be able to create a Django Channels group such that: 1. Websockets can can subscribe and unsubscribe (or disappear) to group that the client specifies. 2. When the first client subscribes to a group, it starts some process (e.g. via celery task) that feeds thi

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread Melvyn Sopacua
On Thursday 01 June 2017 15:03:34 F. Nikita Thomas wrote: > Here's the directory listing for my virtual environment: > (projectenv) [user@echo project]$ ls -al projectenv/bin/ More important is projectenv/lib/site-packages. But the test to do as James pointed out is to test if your virtualenv is

Triggering events on model field change

2017-06-01 Thread Lachlan Musicman
Hola, I have a model with a collection of BooleanFields. When particular fields change value I'd like to trigger an event (usually email). A quick search shows that there are questions like this back to 09. The two most obvious and recent solutions involve using: - django's from_db ( https://

Re: Django bugfix release: 1.11.2

2017-06-01 Thread Bernd Wechner
Any tips on how to install it? Forgive the ignorance please. Tim Graham wrote: Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/jun/01/bugfix-release/ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread F. Nikita Thomas
Here's the directory listing for my virtual environment: (projectenv) [user@echo project]$ ls -al projectenv/bin/ total 84 drwxrwxr-x 3 user user 4096 Jun 1 14:28 . drwxrwxr-x 5 user user 4096 Jun 1 14:26 .. -rw-rw-r-- 1 user user 2095 Jun 1 14:26 activate -rw-rw-r-- 1 user user 1037 Jun 1

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread F. Nikita Thomas
No such thing as a dumb question, how do I check? On Thursday, June 1, 2017 at 5:36:23 PM UTC-4, James Schneider wrote: > > *** Operational MODE: single process *** >> Traceback (most recent call last): >> File "./project/wsgi.py", line 12, in >> from django.core.wsgi import get_wsgi_appl

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread James Schneider
> > *** Operational MODE: single process *** > Traceback (most recent call last): > File "./project/wsgi.py", line 12, in > from django.core.wsgi import get_wsgi_application > ModuleNotFoundError: No module named 'django' > unable to load app 0 (mountpoint='') (callable not found or import e

Re: ModelFormset Into InlineFormset

2017-06-01 Thread James Schneider
On Thu, Jun 1, 2017 at 1:34 PM, Matthew Pava wrote: > Well, that took me on a path to enlightenment. I learned quite a bit more > about method resolution order, MRO. On my journey, I also learned the new > way of using super() in python 3. I even stumbled upon type checking using > mypy. And

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread F. Nikita Thomas
Hi Melvyn, excuse the late reply. I just tried as you suggested and now I have: (projectenv) [user@echo project]$ uwsgi --http :8000 --chdir /home/user/Env/project/ --module project.wsgi --virtualenv /home/user/Env/projectenv/ *** Starting uWSGI 2.0.15 (64bit) on [Thu Jun 1 17:09:34 2017] *** co

RE: ModelFormset Into InlineFormset

2017-06-01 Thread Matthew Pava
Well, that took me on a path to enlightenment. I learned quite a bit more about method resolution order, MRO. On my journey, I also learned the new way of using super() in python 3. I even stumbled upon type checking using mypy. And I learned that there are stub files available for Django wi

Re: uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread Melvyn Sopacua
On Thursday 01 June 2017 10:47:05 F. Nikita Thomas wrote: > Hi! > I'm having a problem with configuring uWSGI with Django, when I run > the development server everything 'seems' okay, except that I am > missing styling on the html, and when I test run uWSGI from the > command line I get: ... > ch

uWSGI ModuleNotFoundError Django 1.11

2017-06-01 Thread F. Nikita Thomas
Hi! I'm having a problem with configuring uWSGI with Django, when I run the development server everything 'seems' okay, except that I am missing styling on the html, and when I test run uWSGI from the command line I get: (projectenv) [user@echo project]$ uwsgi --http :8000 --chdir /home/user/

Re: Pyinotify and runserver performance with django channels in docker for mac

2017-06-01 Thread Andrew Godwin
OK, can you try using the Redis one instead and seeing if that's faster? Docker for Mac has a bit of an odd filesystem and kernel and it's possible the IPCLayer is not working well underneath it. Andrew On Thu, Jun 1, 2017 at 10:11 AM, qnub wrote: > Yes, because it's dev environment with single

Re: Pyinotify and runserver performance with django channels in docker for mac

2017-06-01 Thread qnub
Yes, because it's dev environment with single node but with `rundelay` we use `asgi_ipc.IPCChannelLayer` On Thursday, June 1, 2017 at 11:03:09 PM UTC+6, Andrew Godwin wrote: > > Can I ask what channel layer you are using? That's what affects the speed > of messages being transported. > > Andrew

Re: Pyinotify and runserver performance with django channels in docker for mac

2017-06-01 Thread Andrew Godwin
Can I ask what channel layer you are using? That's what affects the speed of messages being transported. Andrew On Thu, Jun 1, 2017 at 1:36 AM, qnub wrote: > Not sure what exactly wrog here, but installing pyinotify not helps to > lower CPU usage in docker on mac OS. As i understand after googl

Django bugfix release: 1.11.2

2017-06-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2017/jun/01/bugfix-release/ -- 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

django-admin makemessages PermissionError [WindError 32] and OsError [Errno 22]

2017-06-01 Thread np
Hi, I am using custom fabric script to make .po-files for i18n. The problem is, "django-admin makemessages" keeps on crashing. It also leaves undeleted .html.py files. I can reproduce this error also by using plain "django-admin makemessages -l pt". I think this problem in Windows-specific. I

Possible bug - Incorrect escaping in Django SQL query

2017-06-01 Thread Roshan Raghupathy
Hi, I came across an issue yesterday. Post on stackoverflow On further investigation today, I think I found the source of the issue. It's this line

Re: duplicate key value violates unique constraint "django_admin_log_pkey"

2017-06-01 Thread Tech-Harvester
Helped me too. Thanks. On Thursday, October 14, 2010 at 8:54:30 PM UTC+5:30, glob...@iamsandiego.com wrote: > > Hi Folks, > > After updating a postgres db for my django app Iam getting this error > when I try and save new data to the db: > > Request Method: POST > Request URL:

Pyinotify and runserver performance with django channels in docker for mac

2017-06-01 Thread qnub
Not sure what exactly wrog here, but installing pyinotify not helps to lower CPU usage in docker on mac OS. As i understand after googling installing of `pyinotify` helps in case of running dev server with `runserver` manage command for general django configuration (without channels, but i not

Re: Is it possible to swap 1.8 and 1.10/1.11 Admin static files

2017-06-01 Thread Melvyn Sopacua
On Wednesday 31 May 2017 12:15:31 Mike Dewhirst wrote: > Haven't actually communicated our decision but I'll just see if they > are willing to fund the development involved in staying on an > out-of-date and soon-to-be-unsupported system we'll hire someone to > do that. > > I think. > > Haven't d

Re: django.db.utils.OperationalError: server closed the connection unexpectedly

2017-06-01 Thread Bobby Paul
Thank you Antonis, Yeah, We have installed postgresql-8.4.20-7.el6.x86_64 Now we are checking the permission. Will touch you once it done. Thanks, Bobby Paul On Wednesday, May 31, 2017 at 5:14:29 PM UTC+5:30, Bobby Paul wrote: > > Dear All, > > I am getting this error message while trying to ins

Re: count from multiple tables in a single query?

2017-06-01 Thread Melvyn Sopacua
On Wednesday 31 May 2017 12:13:48 'Abraham Varricatt' via Django users wrote: > If I want to get the total count from both tables it can be done like > this, > > author_count = Author.objects.count() > publisher_count = Publisher.objects.count() > > My concern is that this results in two differ