Channels: Add channel from one group to another

2017-08-20 Thread Никита Екатеринчук
I have an application with chat system. I create Groups for each chat and each User When I create a chat I have to notify all members about creation and create a new channel Group for this chat, with all channels, associated with chat members. Does exist a possibility to get channels from one gr

Re: Channels: Add channel from one group to another

2017-08-20 Thread Andrew Godwin
There's no fast-performing way to do this - we'll be able to make it easier in the upcoming Channels 2.0, but for now the best you could get is going through the list of channels in the group and that's very slow. Andrew On Sat, Aug 19, 2017 at 11:33 PM, Никита Екатеринчук wrote: > I have an ap

New Decorator Routing for Django

2017-08-20 Thread Malik Brahimi
Hey guys! Do you mind checking out my new package and letting me know what you think? Essentially it is a Flask inspired routing system for Django (only Python2.x) that works by recursively searching through a folder, for example: pip install djroute urls.py from djroute import root, traver

Reverse for 'password_reset_complete' not found

2017-08-20 Thread ah bor
Hello friends, I will appreciate it if you can help me resolve the following issue. I am trying to use the Django built-in views for resetting passwords but get an error in the very end. I have done the following steps: 1. in URLs.py: url(r'^password_reset/$', auth_views.password_reset,{'e

Questions About ModelForm

2017-08-20 Thread Mark Phillips
I am trying to create a form for a django-viewflow workflow. I have 2 models, Document and DocumentOCR as shown: class Document(models.Model): document_id = models.AutoField(primary_key=True) document_category = models.IntegerField(category=DOCUMENT_CATEGORY) document_state = models.In

Re: Making/Creating a verified user for unit test (django-allauth)

2017-08-20 Thread Desmond Lim
Thanks Vijay. It works. On Thursday, 17 August 2017 18:20:48 UTC+8, Desmond Lim wrote: > > Hi there, > > I'm wonder, how do we create a verified user for testing purpose > > I have this line that creates a user > > *cls.user = get_user_model().objects.create_user(username='testuser', > email='tes

Re: New Decorator Routing for Django

2017-08-20 Thread Jani Tiainen
Hi, I just want to point out that there is similar work done for the core. https://github.com/django/deps/blob/master/accepted/0201-simplified-routing-syntax.rst If we're lucky it will be available in Django 2.0. 21.8.2017 0.07 "Malik Brahimi" kirjoitti: > Hey guys! Do you mind checking out m

'ModelFormOptions' object has no attribute 'label'

2017-08-20 Thread Lachlan Musicman
Hi All, I'm seeing this error when I start my uwsgi > Exception Type: AttributeError Exception Value: > > 'ModelFormOptions' object has no attribute 'label' > Exception Location: /opt/virtualenvs/traceback/lib/python3.4/site-packages/django/forms/models.py in _get_foreign_key, line 1023 Bu