Re: Websocket 200 error

2019-02-18 Thread flora . xiaoyun . huang
Thank you in advance! On Monday, February 18, 2019 at 4:14:44 PM UTC-5, flora.xia...@gmail.com wrote: > > Hi, > > The real-time discussion function (supported by Daphne) on my website is > not working (Other non-real-time functions are good). The console echos: > "WebSocket connection to

Websocket 200 error

2019-02-18 Thread flora . xiaoyun . huang
Hi, The real-time discussion function (supported by Daphne) on my website is not working (Other non-real-time functions are good). The console echos: "WebSocket connection to 'ws://xxxforum/room_xxx/' failed: Error during WebSocket handshake: Unexpected response code: 200". I've went through

Re: Websocket 200 error

2019-02-18 Thread flora . xiaoyun . huang
I am guessing maybe there is an issue with the redis-server? *The log I received from Daphne*: 2019-02-18 21:07:54,543 ERRORError trying to receive messages: Error running script (call to f_3640886a0c8901ca9188f5f7a5f7a346145b9c5f): @user_script:3: @user_script: 3: -MISCONF Redis is

getting related data from database other than default

2019-02-18 Thread progmgppers
Hi, I'm having some trouble getting data from a database with foreign-keys. Normally a query-set retrieved like this, obj = model.objects.all().filter(id=pk).select_related(), would give me the table row data, and the related row data from another table defined in the model, of the default

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Simone Federici
Lance, sincerely, nobody take care about that feature because that's needed just for legacy db. The number of applications with on legacy db is less than 0.01% of the django applications. There are some workaround for that applications, for example use SQL Alchemy. I implemented a CompositeKey

Providing help on a website (basic CMS for on-site site documentation)

2019-02-18 Thread Bernd Wechner
I'm at the point of wanting to write some help for a website, the standard helpfile sort of scenario ;-). If that means little to you, just a hierarchy of pages that document things and can be linked. I wrote page one with the Django flatpages app:

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
Are you trying pagination using JavaScript or Django? On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal wrote: > Hello Everyone, > > I am new to Django and working towards developing a web app where 10 posts > appear at a time with a "Load More" option given at last which when clicked > shows

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I am trying to do it using Django. I used Django Rest Framework API Guide-Pagination for reference On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I have also used Ajax with that. It's load more button is not working, it is showing the 10 posts which is the limit I set in the beginning, but not going beyond that. On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pagination using

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
Please send your views.py. You must have a home page or index page where you want to paginate records. On Tue, Feb 19, 2019 at 11:23 AM Aakash Baranwal wrote: > I have also used Ajax with that. It's load more button is not working, it > is showing the 10 posts which is the limit I set in the

templates and Views

2019-02-18 Thread mohamed khaled
I think this link can help you https://www.google.com/url?sa=t=web=j=https://stackoverflow.com/questions/12187751/django-pass-multiple-models-to-one-template=2ahUKEwimi5aqosbgAhUJtRoKHaiCCYYQjjgwAHoECAcQAQ=AOvVaw0pFQWtYwtjrd03LHLWZ8rz -- You received this message because you are subscribed to

Re: REG: Why my django email settings not sending email notifications?

2019-02-18 Thread Siddharth Tamang
if you have MFA enabled on your gmail, you may have to disable it On Mon, Feb 18, 2019 at 1:08 PM Onkar Narkar wrote: > > Hi Amitesh, > > Are you getting some error like this: > smtplib.SMTPAuthenticationError: (534, b'5.7.9 Application-specific > password required. Learn more at\n5.7.9 >

Re: Working with pk arguments within an included URL

2019-02-18 Thread Gavin Boyle
Perfect Simon. I’ll give it a go. Appreciate your help. Gavin On Mon, 18 Feb 2019 at 08:10, Simon A wrote: > Hi Gavin, > > Please see this one. > https://docs.djangoproject.com/en/2.1/topics/http/sessions/. It first > needs to be setup in your settings.py. > > Basically, this is just a field

Re: Working with pk arguments within an included URL

2019-02-18 Thread Simon A
Hi Gavin, Please see this one. https://docs.djangoproject.com/en/2.1/topics/http/sessions/. It first needs to be setup in your settings.py. Basically, this is just a field in the database that gets retrieved whenever you want. # set a session variable self.request.session['key'] = 'value' #

RE: Re: Composite Primary / Foreign Key support

2019-02-18 Thread 'Ellinghaus, Lance J' via Django users
NONCONFIDENTIAL // EXTERNAL So, basically, Django will not be supporting Composite Primary Keys in the future? Lance -Original Message- From: django-users@googlegroups.com On Behalf Of Michal Petrucha Sent: Monday, February 11, 2019 8:34 AM To: Django users Subject: [External] Re:

Too many SQL variable

2019-02-18 Thread HEMENDRA SINGH HADA
Hi All, In my current project we are using sqlite3, When I am fetching data from sqlite3 db tables and counting the query-set length it is giving me error "Too many SQL query" when the length is more than 999. till 999 its working fine, Please suggest some quick fix for this, Thanks in Advance

Re: Why use CustomUserManager.create_user and not CustomUserManager.create?

2019-02-18 Thread Đảng Nguyễn Văn
Vào 1:05, Th 2, 18 thg 2, 2019 Maarten Nieber Hi, > > the Django guidelines tell us to implement CustomUserManager.create_user. > However, this seems to introduce some ambiguity between > CustomUserManager.create_user and CustomUserManager.create, since both > these methods can be expected to

Re: Too many SQL variable

2019-02-18 Thread Sebastian Henschel
Heya, Am 18.02.19 um 10:52 schrieb HEMENDRA SINGH HADA: > In my current project we are using sqlite3, When I am fetching data from > sqlite3 db tables and counting the query-set length it is giving me error > "Too many SQL query" when the length is more than 999. till 999 its working > fine,

Django ignoring Create_DB setting on test

2019-02-18 Thread Carl Marshall
Hi all, I think I've found a bug here - or certainly I have some behaviour that I don't expect and don't want. My django (2.1.7) project is providing a query/read interface to some existing legacy databases. These are Oracle based (and that brings its own challenges, as they're not current

Re: Too many SQL variable

2019-02-18 Thread HEMENDRA SINGH HADA
Hi, Could you give me some quick fix, I am using django currently, or could be please suggest me how to take the parent table data with prefetch related filter. Thanks On Monday, February 18, 2019 at 6:21:33 PM UTC+5:30, Sebastian Henschel wrote: > > Heya, > > Am 18.02.19 um 10:52 schrieb

ajouter plusieurs contextes dans un même template

2019-02-18 Thread abdouramane mahamane
Bonjour J'essaye d'afficher plusieurs resultats de ma views.py dans un template. Mais django ne me le permet pas ,puisque à chaque url correspond un view. J'ai essayé de faire 2 block content dans ma base mais sans résultat. -- You received this message because you are subscribed to the Google

templates and Views

2019-02-18 Thread abdouramane mahamane
I'm trying to show in one template .html multiple results of my views.py class. But when i add an other {%block content2 %} in my base.html, i have an error. Because i have the same url path('partenaire/', views.OffrePListView.as_view(), name='offreListP'), path('partenaire/',

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Roger Gammans
Lance, I can't speak for the core team, only inform you based on what I've seen here and in other projects. I suspect if there was a significant need across a number of users, then enough work could be done by those that needed it and as long as it was 1) fully functional, 2)

RE: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Matthew Pava
"As your requirement is read-only if the data is static you could to create a second database, with all the PK of the legacy database, and then as single Pk field to that table, and access everything through a view of a join the two tables." I had such a requirement, and I created a View in

Re: Django ignoring Create_DB setting on test

2019-02-18 Thread Carl Marshall
I'll note that "CREATE_DB" is slightly misleading, and would be more accurately called "CREATE_SEPARATE_TEST_DB_IN_ORACLE". The error I'm getting is somewhat misleading also as there's nothing wrong with the ALWAYS keyword, the problem is that the test script is trying to create a table in a

Re: REG: Why my django email settings not sending email notifications?

2019-02-18 Thread Kiran Capoor
Hi Amitesh, >From my experience, You need to go to Google’s settings and enable access to >‘less secure apps’. That will let you send emails freely from your django dev >environment. Do so at your own risk, as any less secure app can use your email >and password. I would suggest you create a

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Markus Holtermann
There's general interest in having support for composite keys and composite foreign key. It's just that nobody has implemented it. There are proposals among the DEPs that layout ideas how they could be implemented: - https://github.com/django/deps/blob/master/draft/0191-composite-fields.rst -