Re: separate http requests between channels routing and "classic django routing

2018-03-13 Thread Andrew Godwin
You can just use channels.http.AsgiHandler as the consumer/ASGI app to hand off to Django views. It's mentioned in the last paragraph here: http://channels.readthedocs.io/en/latest/topics/routing.html#protocoltyperouter Andrew On Tue, Mar 13, 2018 at 9:20 AM, Kevin Tewouda

Re: Webpage Displays Blank

2018-03-13 Thread Carl Brubaker
Added urls file On Tuesday, 13 March 2018 10:40:29 UTC-4, Derek wrote: > > Maybe you need to show what your urls.py looks like as well? > > On Tuesday, 13 March 2018 05:57:55 UTC+2, Carl Brubaker wrote: >> >> I'm probably missing something simple, but I can't get my info to display >> from my

import file from view.py

2018-03-13 Thread sum abiut
I have a conf file containing the parameter of hostmane,db,usernam,pass, db i want to import that file from view.py and use parameter from the conf file to connect to a db. i did something this from appname.conf import but it doesn't seem to work, appreciate any assistance. cheers -- You

How do I set up an AngularJS-driven form to work with Django password reset functionality?

2018-03-13 Thread Tom Tanner
I'm working on a web page with AngularJS v1.5.6. This page has other forms. I want to add a "Reset password" form to this page. I've seen this Django password reset for tutorial: https://simpleisbetterthancomplex.com/tutorial/2016/09/19/how-to-create-password-reset-view.html. But I'm unsure

Re: Fetching next and/or prior objects given an arbitrary ordering

2018-03-13 Thread Bernd Wechner
Hmmm, really stuck on this. Can find no way of selecting from a select in the ORM. The whole premise seems be to start from model.objects and add SQL clauses with filter, annotate and other methods. But a QuerySet is not a model and queryset.objects doesn't exist, and queryset.filter just adds

separate http requests between channels routing and "classic django routing

2018-03-13 Thread Kevin Tewouda
Hello, i am developing an application (a REST one) which have to serve some sse events to a web application. I saw in the latest documentation how to create an SSE consumer, but now when i create an http routing for consumers, i can't serve the others requests using the "classic django view

django development test suite fail

2018-03-13 Thread cheulheeyoo
Hi, I am new to django contribution and I followed instructions on how to contribute guideline but I am stuck on one issue. I ran the test stream like shown in the tutorial and keep getting failed status. Is this suppose to be normal? FAILED (failures=10, errors=1, skipped=856, expected

Re: Error After Inspect db

2018-03-13 Thread mansi thakkar
I got it and tried as you said but still couldn't get the output as I want. It is still showing ingredient object. On Tuesday, March 13, 2018 at 12:09:36 PM UTC-4, Avraham Serour wrote: > > it seems you wrote def_str_, if should be def (space) then the function > name > > also the function str

Re: Error After Inspect db

2018-03-13 Thread Avraham Serour
it seems you wrote def_str_, if should be def (space) then the function name also the function str should probably be named with double underscores like this: __str__ not _str_ On Tue, Mar 13, 2018 at 5:27 PM, mansi thakkar wrote: > Hello , > Here is the attached

Re: Template.render(Context) in django 1.10+

2018-03-13 Thread James Bennett
On Mon, Mar 12, 2018 at 5:44 PM, Craig de Stigter < craig.destig...@koordinates.com> wrote: > Thanks for the reply. > > So I guess there are actually now two types of templates, and they have > incompatible API. Neither is deprecated. > > Has this confused anyone else? Is this a

Re: Webpage Displays Blank

2018-03-13 Thread Derek
Maybe you need to show what your urls.py looks like as well? On Tuesday, 13 March 2018 05:57:55 UTC+2, Carl Brubaker wrote: > > I'm probably missing something simple, but I can't get my info to display > from my database. > > I have 2 abstract models to make 1 normal model. > My url views aren't

Re: Listening to a django channel from outside a consumer

2018-03-13 Thread Andrew Godwin
Hi Alex, Consumers aren't designed to be run outside of a Channels or ASGI environment. If you read the ASGI spec ( https://github.com/django/asgiref/blob/master/specs/asgi.rst), you'll see that to run a consumer - which is an ASGI app - you need to do quite a bit more than you did there, in

Re: Zoomslider in Django

2018-03-13 Thread Phang Mulianto
Hi This related to static path.can you access the image manually in the browser? The javascript part is run in client browser already, which django finished processing when page sent to client. Hope helps. Regards On 13 Mar 2018 5:17 pm, "deviya sweety" wrote: > Hi,

Zoomslider in Django

2018-03-13 Thread deviya sweety
Hi, I'm new to django and jquery, how can I use Zoomslider in Django?? When i try to use data-zs-src='["images/2.jpg", "images/1.jpg", "images/3.jpg"]' it shows an error that those images are not found. could anyone help me out with this please. Thankyou in advance :) -- You received this

Re: Template.render(Context) in django 1.10+

2018-03-13 Thread Mike Dewhirst
On 13/03/2018 4:55 PM, Craig de Stigter wrote: Cheers Mike That deprecation notice says to me that Context itself is not deprecated, but the `current_app` argument is. I don't think that's a problem for us as I don't think we've ever used it. Perhaps I can clarify. As far as I can tell,