Re: DeprecationWarning in Django 1.11.22 with Python 3.7

2019-07-08 Thread אורי
>From the branches it looks like all Django versions above 2.1 are using this commit and therefore are fixed. אורי u...@speedy.net On Tue, Jul 9, 2019 at 12:04 AM Joe Reitman wrote: > Looks like a bug in pyparsing.py > > https://github.com/pyparsing/pyparsing/pull/16 > > On Monday, July 8,

Re: DeprecationWarning in Django 1.11.22 with Python 3.7

2019-07-08 Thread אורי
I think it's not a bug but a feature of Python which is being deprecated and will be removed in Python 3.8. I noticed it about 6 months ago and reported in to Django, but it was closed with wontfix. https://code.djangoproject.com/ticket/30078 https://code.djangoproject.com/ticket/30082 It has

Re: Getting AttributeError: module 'asyncio' has no attribute '_get_running_loop'

2019-07-08 Thread Andrew Godwin
The bug was only on Python 3.5. It's possible the other system was 3.6 or 3.7? Andrew On Sun, Jul 7, 2019 at 9:48 AM Rohit Chopra wrote: > Hi Andrew, > > Just a small doubt, why same code is working on my local system. > Both local and server have same version of requirements mentioned in >

Re: CORS policy issue when using with JSON and DJANGO

2019-07-08 Thread Kevin McGraw
Consider you should not use absolute path in your request. Place your file in your static folder. Request the file relative to this static location. This would be similar to requesting other resources, such as css and js files...like this: {% load staticfiles i18n %} or in javascript: const

CockroachDB & Django

2019-07-08 Thread 'Andy Woods' via Django users
Hello All! I'm a product manager at Cockroach Labs working on our SQL product area. CockroachDB leverages the Postgres wire protocol to provide distributed SQL to our customers. Because we support the same protocol as Postgres, we can often take

Re: DeprecationWarning in Django 1.11.22 with Python 3.7

2019-07-08 Thread Joe Reitman
Looks like a bug in pyparsing.py https://github.com/pyparsing/pyparsing/pull/16 On Monday, July 8, 2019 at 1:09:16 PM UTC-5, Uri Even-Chen wrote: > > Hi, > > I tested Django 1.11.22 (or any version from 1.11.17 to 1.11.22) with > Python 3.7, and found out that when running tests with

Re: DeprecationWarning in Django 1.11.22 with Python 3.7

2019-07-08 Thread אורי
I found out that the same DeprecationWarning occurs with Django versions 2.0 and 2.0.13. אורי u...@speedy.net ‪On Mon, Jul 8, 2019 at 9:08 PM ‫אורי‬‎ wrote:‬ > Hi, > > I tested Django 1.11.22 (or any version from 1.11.17 to 1.11.22) with > Python 3.7, and found out that when running tests with

DeprecationWarning in Django 1.11.22 with Python 3.7

2019-07-08 Thread אורי
Hi, I tested Django 1.11.22 (or any version from 1.11.17 to 1.11.22) with Python 3.7, and found out that when running tests with deprecation warnings enabled, I receive the following error: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is

Re: reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread 'Amitesh Sahay' via Django users
Wow..you nailed it brother, thank you. It solved the issue. Regards, Amitesh Sahay On Monday, 8 July, 2019, 10:32:13 pm IST, Jani Tiainen wrote: Hi. In your view instead of using Response(serializer) you need to use Response(serializer.data) HTH. ma 8. heinäk. 2019 klo 19.48

Re: reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread Jani Tiainen
Hi. In your view instead of using Response(serializer) you need to use Response(serializer.data) HTH. ma 8. heinäk. 2019 klo 19.48 'Amitesh Sahay' via Django users < django-users@googlegroups.com> kirjoitti: > hello Members, > > I am working on some POC for django rest framework. Its very

reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread 'Amitesh Sahay' via Django users
hello Members,  I am working on some POC for django rest framework. Its very simple setup, nothing complicated. While I was doing my testing I am facing below error: === TypeError at /api/status/ Object of type 'ListSerializer' is not JSON serializable | Request

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-08 Thread Jani Tiainen
Hi. There are two things wrong. First and most important is that you should always use {%url %} template tag to form urls to other django urls and preferably by using named url patterns. Secondly your hardcoded urls are relative. So each time you click link it is appended to current url. If you

CORS policy issue when using with JSON and DJANGO

2019-07-08 Thread Mayank Tripathi
Hi Team, I am making quiz app, for which i wrote a function in view which will generate the json file and place it under the same location as of my all teamplates (C:/Desktop/Environment/envQuiz/quizsetup/templates/quizsetup) Now I am trying to read this json file in my HTML page via javascript

Re: insert or update on table "app_job" violates foreign key constraint "app_job_user_id_f90a6dd9_fk_accounts_user_id" DETAIL: Key (user_id)=(3) is not present in table "accounts_user".

2019-07-08 Thread Sonu bhavsar
hello please first chak the value which you wants to insert you django server didn't get the foreign key which you had diffiend so this is the value error according to me On Mon 8 Jul, 2019, 1:21 AM Aayush Bhattarai, wrote: > [image: Capture.PNG] > > > *I have used a function-based View to get

cicking to menu in navebar leads another subpage /subpage

2019-07-08 Thread Surya Adhikari
i have a menu bar as, HOME GALLERY When i click Home its the index page which is being display after when i click Gallary dropdown menu as house it redirects to search.html . BUT when i again click hotel it redirects to 127.0.0.1/search/ search1 insted of 127.0.0.1/search1. i have

Re: django form not saving items to database

2019-07-08 Thread KIKOYO ISAAC
Some lessons about templates with django On Mon, Jul 1, 2019 at 8:29 AM Joe Reitman wrote: > Try this: > > > def sell(request): > if request.method == 'POST': > form = ProductsForm(request.POST) > if form.is_valid(): > print('form is valid') >

linking diffirent wepages

2019-07-08 Thread Surya Adhikari
my nav menu have 2 menus : Home , Search Names ie. from index page when i click student from Sub menu of Search names , it will redirects search.html after if i click again teacher from search.html it will redirects to search.html/ search1.html rather then search1.html only. it works

Re: having problem in login rest API

2019-07-08 Thread Sidnei Pereira
If would like to access CustomUser's attributes directly from an student instance you should use Multi-table Inheritance - a concrete model class that inherits from another, so `class Student(CustomUser)`. But

Re: Django Interview Questions

2019-07-08 Thread Joe Reitman
Error 522 Ray ID: 4f324c909f05d29a • 2019-07-08 13:11:05 UTCConnection timed out On Monday, November 2, 2009 at 9:36:41 AM UTC-6, Dimitri Gnidash wrote: > > Hey guys, > > For all those of you interviewing or being interviewed, I created a > quick list of sample interview questions. > While not

Re: Django Interview Questions

2019-07-08 Thread Pradeep Singh
thanks alot On Sun, 7 Jul 2019 at 22:29, pooja kaur wrote: > I have updated with fresh list of django interview questions for freshers > and experienced persons. > > Here is the list > > https://onlinetutorials.today/python/django-interview-questions/ > > On Monday, November 2, 2009 at