Saving xlsx on to the clients file folder

2021-04-01 Thread Django-Learner_27
Dear members, I have a requirement, where I need to save .xlsx file onto clients local folder. The moment when I click choose folder then immediately it has to show file browser with save/save as option to save file based on users choice. Thanks in advance. Venu -- You received this message

Re: How to avoid select lists on formsets and ManyToMany?

2021-04-01 Thread Ryan Nowakowski
Django admin does something like this with raw_id_fields[1]. I think it works by just swapping out the form widget. But you could take a look at the admin code to see for sure. [1] https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields On April 1

How to avoid select lists on formsets and ManyToMany?

2021-04-01 Thread Clive Bruton
I have a ManyToMany model set, that on the edit uses a formset to add/ edit rows. I have this working, but the unfortunate part of it is that the select that results from the ManyToMany relationship populates with 16,000 records. What I would like to do is, once the records are added, just h

Re: Trying to understand duplicate results from related_set

2021-04-01 Thread Ryan Nowakowski
Maybe it has something to do with the fact that once you start iterating through a query set it gets evaluated[1]. If you slice a query set before it gets evaluated that is different than slicing a query set after it gets evaluated. I'm not exactly sure why you're getting different results but

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Gabriel Araya Garcia
Why you don't explain better your problem ? When appear that Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El jue, 1 abr 2021 a las 15:43, Mahendra () escribió: > I think given name is wrong Hlo do you have any idea posting form data? > > Mahendra Yadav > > On Thu, 1 Apr 2021

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread sebasti...@gmail.com
I think this must be wrong. Only User instance have a method is_authenticated. Here a example for views: if request.user.is_authenticated: pass sali...@rohteksolutions.com schrieb am Donnerstag, 1. April 2021 um 19:03:36 UTC+2: > Hi all, > > How to solve this errors > ``` > AttributeError:

Re: AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Mahendra
I think given name is wrong Hlo do you have any idea posting form data? Mahendra Yadav On Thu, 1 Apr 2021, 22:32 Salima Begum, wrote: > Hi all, > > How to solve this errors > ``` > AttributeError: 'customer' object has no attribute 'is_authenticated' > ``` > > ``` > AttributeError: 'customer'

AttributeError: 'customer' object has no attribute 'is_authenticated'

2021-04-01 Thread Salima Begum
Hi all, How to solve this errors ``` AttributeError: 'customer' object has no attribute 'is_authenticated' ``` ``` AttributeError: 'customer' object has no attribute 'is_anonymous' ``` How can I solve this above errors. Help me. Thanks ~Salima -- You received this message because you are su

Re: Django asychronous for millions of users

2021-04-01 Thread Josh moten
Samuel, Thank you for that tremendous insight; sad to say you are correct on me trying to plan for the future of scaling. I am so use to having to plan ahead and have a backup for my backup which has a series of more backup to the original plan. I still operate as if I am still in the Marine C

Re: Django asychronous for millions of users

2021-04-01 Thread Samuel Smith
On 3/30/21 6:32 AM, Josh moten wrote: I am creating an auction that will be hosting millions to possibly billions of users so I am trying to figure out which would be the best library to use for scalability at a rapid pace. I am positive to reach a million users in four months. What is the best

Re: 'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
I have found my failure. Thanks sebasti...@gmail.com schrieb am Donnerstag, 1. April 2021 um 18:00:57 UTC+2: > Hello, > > model.py: > > class UserSettings(models.Model): > user_link = models.OneToOneField( > User, > on_delete=models.CASCADE, > related_name="usersetting

'WSGIRequest' object has no attribute

2021-04-01 Thread sebasti...@gmail.com
Hello, model.py: class UserSettings(models.Model): user_link = models.OneToOneField( User, on_delete=models.CASCADE, related_name="usersettings_address",primary_key=True,) and i have a mixin: class ListviewMixin(): def get_queryset(self): print("Order "+

Please help me ? forms are not stored in database

2021-04-01 Thread Mahendra
#Model Form Django import models Class singupdata(models.model): Username=models.CharField(max_len=20) Password=models.CharField(max_len=20) #form from django import forms Class Signform (forms.form): Username=forms.IntegerFiled( labe='E mail',

Re: ModuleNotFoundError -- Please help :)

2021-04-01 Thread 'Ajay Rathore' via Django users
try this *from reporter.models import Counties* Regards *Ajay Rathore* Python Developer On Thu, Apr 1, 2021 at 4:17 PM Ryan Nowakowski wrote: > Since your models aren't in the migrations python package, I would use an > absolute path in the import statement here rather than the relative path.

Re: ModuleNotFoundError -- Please help :)

2021-04-01 Thread Ryan Nowakowski
Since your models aren't in the migrations python package, I would use an absolute path in the import statement here rather than the relative path. On March 31, 2021 9:50:30 PM CDT, 'Dante Costabile' via Django users wrote: >Hiya Folks. Relatively new to django and quite enjoying it. However

Re: Deploy Django website internally within company network

2021-04-01 Thread Ryan Nowakowski
I typically develop the website and also handle deployment. I've done this in a couple of ways. I get the IT department to give me a virtual machine or an AWS account so I can spin up my own EC2 instance. Then I get them to assign a DNS name to the server. On March 31, 2021 6:11:11 PM CDT, tri