Re: MultiValueDictKeyError at /add 'radio2'

2019-12-26 Thread Saswat Ray
https://stackoverflow.com/questions/5895588/django-multivaluedictkeyerror-error-how-do-i-deal-with-it *Thanks*, *Saswat* On Wed, Dec 25, 2019 at 7:08 PM shree hari wrote: > error: https://del.dog/engigywarf.txt > code: https://del.dog/cringanuwa.txt > > can someone help with me this ? > >

Re: Changing to a custom user model mid-project

2019-12-26 Thread Mike Dewhirst
CarstenI have made some progress since documenting it and intend to refine it more.Experimenting has boosted my confidence in Postgres and there is a bit of scripting involved to fake-apply migrations in the correct sequence.At the moment I'm time poor and docco has to wait but can say I got

Re: How to use django-request module to log all the user activities in a table?

2019-12-26 Thread Gil Obradors
Hi bro, there's a logger from django.requests Maybe is your solution https://docs.djangoproject.com/en/3.0/topics/logging/#django-request Missatge de Santhosh sridhar del dia dj., 26 de des. 2019 a les 10:47: > I'm using Django 1.8 version. Need to know how to use django-request or > any

Re: MultiValueDictKeyError at /add 'radio2'

2019-12-26 Thread shree hari
Fixed it yesterday. Thank you. -- 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...@googlegroups.com. To view this discussion on the web

Re: Changing to a custom user model mid-project

2019-12-26 Thread Carsten Fuchs
Hello Mike, unfortunately I cannot answer your questions, but have you considered contacting Tobias directly? I too am currently at the point of switching two of my projects to a custom user model. But honestly, Tobias' procedure looks complicated and error prone to me. Aymeric's description

How to use django-request module to log all the user activities in a table?

2019-12-26 Thread Santhosh sridhar
I'm using Django 1.8 version. Need to know how to use django-request or any other module to capture the all the user activities of a website. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: MultiValueDictKeyError at /add 'radio2'

2019-12-26 Thread Integr@te System
Hi Issuer, Plz let facility in the ways that more details(err log, photos, code snippets...) or minimize risk for supporting of community. Sometime untrust link or malware, malformware) could harm or prevent the help of community, or at least slow to resolve your problem. Thanks. On Wed, Dec

angular setup for django (routes not working)

2019-12-26 Thread nitish kumar
Hi I am trying to integrate angular8 with Django (2.2.4). *Django side*: URL and view will load angular 'index.html' *angular:* some router-links. based on URL pattern page is getting loaded. *problem statement:* *if host only angular code using 'ng serve' router-link only load's

Re: How to access static files in views.py

2019-12-26 Thread Damby Green
hi Guy, What's the structure of your project and the content of your settings.py? Le mer. 25 déc. 2019 à 12:32, Guy NANA a écrit : > I want to access static files in views.py but it doesn't work when I use > {% load static %} and {% static relative_path %} in the same way like in a > template.

Best Profanity filters for using in Python Django project

2019-12-26 Thread Unprofessional coder
I have a requirement where I need to use the profanity check for the list of forms. If the profanity is detected then it should stop further actions. Currently I am using "profanity_check" package for profanity detection, however getting the below warning from python in cmd.

How to request data from an open source website such as Reddit or Github and display on the Local Django Website ?

2019-12-26 Thread Shaurya Sharma
Hey there , I am quite a newbie to Django and I am trying to understand how API calls and requests work in Django. I have a simple Django website that has User login and authentication system. I want a user to save the top ten reddit posts and display them on their respective login system. I

Blog styling

2019-12-26 Thread Anwar Ali
Hi guys, I am converting my site to A.I blog so I wanna know what styles of writing and options I have for giving my blog a decent look like many WordPress blogs have ... like styling, writing options in comments and posts etc. Thanks in advance Annu -- You received this message because

Re: Strange issue with django

2019-12-26 Thread Andréas Kühne
Yeah - we have gone through the release notes - and performance wise the environment is the same but we got an extreme performance dip - we have been trying to check where we have taken performance hits - but it seems to be random and also in places where we didn't have any issues previously

Re: Strange issue with django

2019-12-26 Thread Integr@te System
Hi Andreas, Let try: # Perf tip https://gawron.sdsu.edu/compling/course_core/python_intro/intro_lecture_files/fastpython.html # Release note Django 3.0, DRF vs. best version Hope this helpful. On Thu, Dec 26, 2019, 20:46 Andréas Kühne wrote: > Hi all, > > We have a django backend for our

Re: Strange issue with django

2019-12-26 Thread Integr@te System
Hi Andreas, some tools to check performance in Perf tip on mail above, to inspect deeper. On Thu, Dec 26, 2019, 21:21 Andréas Kühne wrote: > Yeah - we have gone through the release notes - and performance wise the > environment is the same but we got an extreme performance dip - we have >

Overriding Prefetched objects in Serialization

2019-12-26 Thread Cesar Bueno
Hi! I'm having trouble overriding some prefetched data, I hope someone can help me here. I'll try to explain my issue with the examples provided from the Docs ( https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related). The base models from the examples below were taken

Re: How to access static files in views.py

2019-12-26 Thread Andréas Kühne
You can't use the same tags for loading the staticfiles and the static method. However you should be able to load the file via: https://stackoverflow.com/a/43295624 But the next question is what is it you want to achieve? Why do you need to load the static file in the view itself? Regards,

Re: Strange issue with django

2019-12-26 Thread 'Amitesh Sahay' via Django users
Could you please let us know which part of the DRF performance dipped? We can try to troubleshoot accordingly. Your statements are very generic. Regards, Amitesh On Thursday, 26 December, 2019, 7:51:28 pm IST, Andréas Kühne wrote: Yeah - we have gone through the release notes -

Re: External SSO for Django

2019-12-26 Thread Malik Brahimi
The docs on this are very sparse and unclear. Could you provide an example? Is there a way to easily set it up for both dev and prod? On Monday, December 23, 2019 at 12:24:25 PM UTC-5, Mohammed Alnajdi wrote: > > Django support remote_user coming from web-server [apache, nginx] you > could use

Re: Blog styling

2019-12-26 Thread sagar podilapu
Good luck. Now what help do you need? On Thu, Dec 26, 2019 at 6:34 PM Anwar Ali wrote: > Hi guys, > > I am converting my site to A.I blog so I wanna know what styles of writing > and options I have for giving my blog a decent look like many WordPress > blogs have ... like styling, writing

Strange issue with django

2019-12-26 Thread Andréas Kühne
Hi all, We have a django backend for our application - running with DRF. This has been working perfectly since November last year. Now we have upgraded to django 3.0 and also DRF to the latest version. We also added some DB indexes. After this upgrade we now have certain endpoints that went up to

Re: Strange issue with django

2019-12-26 Thread Jason
Do you have any performance monitoring in place, with profiling add-ons, like new relic's x-ray trace? That was really helpful in figuring out a bottleneck in a django service last year. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Strange issue with django

2019-12-26 Thread Jason
Also, you haven't stated where the bottlenecks are happening. Is it app code, internal in django, your stack, database, networking? There's alot of variables in play for diagnosing a major slowdown, and you've provided no information about profiling/monitoring -- You received this message

Duplication of Query - reg

2019-12-26 Thread Raja Sekar Sambath
Hi, I have a table of data with self relation , I am Querying all records and displaying them in tabular format in a template I find a strange behaviour that the query has been executed recursively for each records of table, any better / suggestion solution for this issue. [image: image.png]

Draft documentation of case study - Custom user model mid-project

2019-12-26 Thread Mike Dewhirst
Custom user documentation (Draft subject to improvements from others) Based on Tobias McNulty's "How to Switch to a Custom Django User Model Mid-Project" [1] and also on Aymeric Augustin's approach documented in ticket Django ticket #25313 [2] Assumptions - Existing project without a custom

Re: Duplication of Query - reg

2019-12-26 Thread Sencer Hamarat
Hi, That could be a behavior of a template tag or a "for" block in the template. You may consider to use ".select_related" and ".prefetch_related" in view. Saygılarımla, Sencer HAMARAT On Fri, Dec 27, 2019 at 4:59 AM Raja Sekar Sambath wrote: > Hi, > > I have a table of data with self