Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
I truly appreciate the suggestions, Melvyn. Thanks so much! On Thu, Jul 19, 2018, 10:28 PM Melvyn Sopacua wrote: > On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > > Yeah, I just discovered that after posting this. I'm ashamed to admit > that > > single error had me baffled for da

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
@Melvyn Sopacua Can you please give me simple solution of this problem? On Friday, July 20, 2018 at 11:15:06 AM UTC+5:30, Melvyn Sopacua wrote: > > On donderdag 19 juli 2018 16:18:07 CEST Django Lover wrote: > > This is hard for me understand can you please give some code. I am new > in > > Dja

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Melvyn Sopacua
On donderdag 19 juli 2018 16:18:07 CEST Django Lover wrote: > This is hard for me understand can you please give some code. I am new in > Django. PLEASE HELP ME If you're new to Django don't try to do this and learn more about Django first. You don't have the knowledge to break down your problem

Re: Is there any way to disable dispatching of signals?

2018-07-19 Thread Melvyn Sopacua
On donderdag 19 juli 2018 18:22:46 CEST lorin...@gmail.com wrote: > Is there any way to disable dispatching of signals? > If not, I truly truly think there should be a way to do it :) > > Possible use cases: > - Prevent signals being called recursively because the signal code > dispatched the same

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Melvyn Sopacua
On donderdag 19 juli 2018 20:39:15 CEST roflcopterpaul wrote: > Yeah, I just discovered that after posting this. I'm ashamed to admit that > single error had me baffled for days. No shame needed, because at some point you read over and over it and read the same wrong thing as right in your brain.

Re: Is there any way to disable dispatching of signals?

2018-07-19 Thread Jason
deciding whether to act or not is really part of the signal handler, to be honest. -- 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...@goog

How to check if server is running in ASGI or in WSGI mode?

2018-07-19 Thread Rafis Ganeev
We are running same django project in WSGI mode for handling HTTP requests and in ASGI mode for handling WebSockets. For WSGI mode we are using **gunicorn3** server: gunicorn3 --pythonpath . -b 0.0.0.0:8000 chat_bot.wsgi:application For ASGI mode we are using **daphne** server: daphne

Re: authenticate issues with custom backends in 2.1rc1

2018-07-19 Thread Tim Graham
Do you have deprecation warnings with Django 2.0.x? https://docs.djangoproject.com/en/dev/howto/upgrade-version/#resolving-deprecation-warnings >From the 2.1 release notes: "The authenticate() method of authentication backends requires request as the first positional argument." >From the 1.11 r

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Yeah, I just discovered that after posting this. I'm ashamed to admit that single error had me baffled for days. Thank you so much for the quick reply! On Thu, Jul 19, 2018, 11:35 AM Dylan Reinhold wrote: > You are missing the > in the path > path(' Should be > path('/results/', views.ResultsVi

RE: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Matthew Pava
It looks like you have a typo: urlpatterns = [ # ex: /polls/ path('', views.IndexView.as_view(), name='index'), # ex: /polls/5/ # the 'name' value as called by the {% url %} template tag path('/', views.DetailView.as_view(), name='detail'), # ex: /polls/5/results/ path(

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Dylan Reinhold
You are missing the > in the path path('/results/', views.ResultsView.as_view(), name='results'), On Thu, Jul 19, 2018 at 11:18 AM, roflcopterpaul wrote: > Hello, everyone! I have run into a problem I cannot figure out. I have > spent days searching online and trying different things in my code,

Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread roflcopterpaul
Hello, everyone! I have run into a problem I cannot figure out. I have spent days searching online and trying different things in my code, but I cannot figure out where this problem is stemming from. I would truly appreciate any insights. Admittedly, I am scrub enough that I'm not even sure of

Is there any way to disable dispatching of signals?

2018-07-19 Thread lorinkoz
Is there any way to disable dispatching of signals? If not, I truly truly think there should be a way to do it :) Possible use cases: - Prevent signals being called recursively because the signal code dispatched the same signal. - Disable for scripts or management commands - Just bypass the signa

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Sunil Kothiyal
Thank you for responding. Please can you tell me how i can save it if i will generate multiple form field using frontend javascript. On Thu, Jul 19, 2018, 9:23 PM mottaz hejaze wrote: > this is not a django stuff , this is frontend .. you can use jquery or > angularjs ..to hundle click event on

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread mottaz hejaze
this is not a django stuff , this is frontend .. you can use jquery or angularjs ..to hundle click event on the button and create the two fields ... this website cant be done with django templates.. you need djangorest framework with frontend javascript library the django template way , you creat

[Channels] How to write tests with database access?

2018-07-19 Thread Neraste
Hello Django users, This sounds like a pretty newbish question, but I am struggling on how to write tests for Django-channels 2 websocket consumers that access the database. I am not familiar with pytest and asynchronous programming (the bread and butter of Channels testing), so while I caught

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
This is hard for me understand can you please give some code. I am new in Django. PLEASE HELP ME On Thursday, July 19, 2018 at 7:26:29 PM UTC+5:30, C. Kirby wrote: > > https://docs.djangoproject.com/en/2.0/topics/forms/formsets/ to allow for > multiple instances of the same form type. Then you w

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread C. Kirby
https://docs.djangoproject.com/en/2.0/topics/forms/formsets/ to allow for multiple instances of the same form type. Then you will need some javascript to handle showing additional instances of the form when the button is clicked On Thursday, July 19, 2018 at 9:29:51 AM UTC-4, Django Lover wrote

Re: API for writing a new database backend

2018-07-19 Thread C. Kirby
I haven't worked on DB backends, but I'm pretty sure you want to implement everything in db/backends/base https://github.com/django/django/tree/master/django/db/backends/base Also here is a page with some info and links to talks and concepts about writing a backend (slightly out of date, but sh

How to create dynamic form field? Django 2.0

2018-07-19 Thread Django Lover
Here is the image of the form what is need when user click on "Add New Tax " two input (Tax name and Value ) should generate dynamically and with all field of the form.

authenticate issues with custom backends in 2.1rc1

2018-07-19 Thread DirkBo
After updating from 2.0.7 to 2.1rc1 when i call django.contrib.auth.authenticate(), my custom authentication Backends are now completely ignored, only django.contrib.auth.backends.ModelBackend is used. Is this happening for someone else or did i miss some changes? -- You received this messag

Re: Django + WSGI: no HTTP_COOKIE in environ

2018-07-19 Thread need_some_help
Sorry for the delayed response. Yes, I understand that a cookie must be set/sent to the browser after the first request, and that generally you must send the cookie headers alone as I've had trouble on other platforms trying to send them along with other things. That being said, I need to cover