Re: Django Channels - core.py error

2018-11-07 Thread Simon Vézina
Hi, I'm coming back with this one as well. I managed to fix my problem. In my consumer, I was making normal Django database queries without the @database_sync_to_async decorator. As soon as I started wrapping my code properly with this decorator, everything started to work fine. See below.

Re: Channel: Migrate regular Django project to Channels2

2018-11-07 Thread Andrew Godwin
Channels doesn't take over at all unless you configure an async consumer. To make sure it's working I'd recommend writing a single async consumer, and running a test against that to ensure it works. Andrew On Wed, Nov 7, 2018 at 1:11 PM Zhiyu (Drew) Li wrote: > Hi there, > > I am trying to

Channel: Migrate regular Django project to Channels2

2018-11-07 Thread Zhiyu (Drew) Li
Hi there, I am trying to migrate an existing Django project to Channels2. We want to keep all existing sync codes unchanged and we will continue mode of the development in sync mode. But having Channels opens the opportunity to develop some features in async mode. I was able to install channels2

Re: Setting up admin in visual studio

2018-11-07 Thread Arturo Fernandez
Follow this tutorial: https://www.youtube.com/watch?v=UmljXZIypDc=1=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p He goes over how to create an admin page and have it working. On Tuesday, November 6, 2018 at 9:02:03 PM UTC-5, Saeed Pooladzadeh wrote: > > > But my problem is there is no admin page!! > What

Re: I Suck

2018-11-07 Thread Lance Haig
Edson, I did not know python when I started with Django and although I am not a programmer I enjoy working with it now. I agree that having a project to work on is the best way to practice as to get good at something you need to practice. When you are frustrated ask questions. This is the

Form with two models

2018-11-07 Thread DELEAU Eric
Hello I'm a new django developper and i must build a statistic web site. For this, i made some opération. *# models.py* class Question(models.Model): question_text = models.CharField(max_length=200) categorie = models.CharField(max_length=20) pub_creat = models.DateTimeField('date

RE: Link ID's To Detail Page

2018-11-07 Thread Matthew Pava
If you just copied and pasted from your template into this email, the problem is a syntax error. You did not close your URL tag with a %}. {{ incident.ir_num }} {{ incident.eft_lead}} From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Gregory Strydom

Re: Link ID's To Detail Page

2018-11-07 Thread vineeth sagar
I think it should be url 'kpi_detail' incident_id=incident.id" and for the other one it should be url 'kpi_eftdetail' eftlead=eftlead.id" . I think you get the idea. This won't solve it if you copy paste but it's a step in the right path On Nov 7, 2018 8:20 PM, "Gregory Strydom" wrote: > Hi

RE: SyntaxError: keyword argument repeated

2018-11-07 Thread Matthew Pava
The error message says “keyword argument repeated” Look at the keyword arguments and check for repeated ones. I see it in the definition of parent. Do you see it? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Dennis Alabi Sent: Wednesday, November 7,

Re: Link ID's To Detail Page

2018-11-07 Thread Gregory Strydom
That is pretty much the way I have it set up yeah so I also think it should work but its not. I did have a closer look at the No_Reverse error and saw this: Reverse for 'kpi_eftdetail' with arguments '(",)' not found. 1 pattern(s) tried: ['kpi/eftlead/(?P\\d+$'] I think the '(",)' is the

Link ID's To Detail Page

2018-11-07 Thread Gregory Strydom
Hi there. I am really not sure how to phrase this questions so I will just do my best. On the homepage of my app I have a table with information. Most of the information in each cell is also a link to a details page like so: {{ incident.ir_num }} What I am struggling to get working is adding

SyntaxError: keyword argument repeated

2018-11-07 Thread Dennis Alabi
django.setup() File "C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\apps\registry.py", line 112, in populate

Re: Link ID's To Detail Page

2018-11-07 Thread Gregory Strydom
Thats it! Thank you so much :P I''ve been struggling for 2 hours and you solved it in 5 minutes. Much appreciated!! On Wednesday, 7 November 2018 17:01:45 UTC+2, Matthew Pava wrote: > > Oh, I see it now. > > Your second URL doesn’t correspond with the object that is inside the cell. > > You

django channels Connection Errors only when tried with User_login

2018-11-07 Thread 왕형준
Running channels with daphne. django version: 2.0.4 asgiref==2.2.0 asgi-redis==1.4.3 channels==2.1.5 channels-redis==2.3.1 I'm trying to connect websoket. When I tried to connect with Anonymous user(without user login), it works well. But, when there is user, it doesn't work well. The

Re: Link ID's To Detail Page

2018-11-07 Thread Gregory Strydom
Sorry I typed it in here incorrectly. Thank you for spotting that though :) It is the correct way in my source file. On Wednesday, 7 November 2018 16:55:15 UTC+2, Matthew Pava wrote: > > If you just copied and pasted from your template into this email, the > problem is a syntax error. You did

RE: Link ID's To Detail Page

2018-11-07 Thread Matthew Pava
Oh, I see it now. Your second URL doesn’t correspond with the object that is inside the cell. You probably meant {% url ‘kpi_eftdetail’ incident.eft_lead.id %} From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Gregory Strydom Sent: Wednesday, November 7,

Re: Form with two models

2018-11-07 Thread Ing.Daniel Bojorge
Hi. Welcome to Django world. You can use formset to show and manage both models, Specifically you can use inlineformset_factory, who can help you with that. I maded a course where I explain it, but is in spanish. Bue, read about inlineformset_factory. Dios L@s Bendiga Saludos, [image: