Export filtered data

2023-01-19 Thread tech george
Hello, I have been trying to export filtered table data to excel but was unlucky. I can filter the table by date range successfully but can export the filtered data. Below is my view.py. Please help def export_sickoff_export(request): if request.method=="POST": start_date =

check_file_based_cache_is_absolute doesn't close caches

2023-01-19 Thread Nikita Manovich
Hi, Why check_file_based_cache_is_absolute doesn't close cache? Does Django have any reasons for that? I expect that in https://github.com/django/django/blob/4b066bde692078b194709d517b27e55defae787c/django/core/checks/caches.py#L62 function each cache will be closed before continue

Re: Multitenant app // Validation / constraints for related fields

2023-01-19 Thread ASAMOAH EMMANUEL
One other approach you could consider is using Django's built-in form and model validation. You could create a custom form class that inherits from the built-in Django `ModelForm` and override the `clean` method to perform your tenant check. For example: class BlogPostForm(forms.ModelForm):

Re: AttributeError: 'QuerySet' object has no attribute 'mime_type'

2023-01-19 Thread Jason
is `content` a queryset? On Thursday, January 19, 2023 at 8:21:39 AM UTC-5 monisha.s...@ideas2it.com wrote: > @staticmethod > def post(request, *args, **kwargs): > constant = utils.send_grid_key > sg = SendGridAPIClient(constant) > subject = get_subject() > content = get_content() > message =

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread M Adnan
Join this group to discuss your issues with developers link below , https://chat.whatsapp.com/ICXdXOrbgoNFQTbKxalZD1 On Thu, 19 Jan 2023, 6:21 pm Radhika Soni, wrote: > Hello, > You can take help from udemy or coursera courses. > > On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga > wrote: >

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread ritik sahoo
Ofcourse On Thu, 19 Jan, 2023, 7:40 pm Sebastian Jung, wrote: > I think this is a good start or? > > https://github.com/earthcomfy/Django-registration-and-login-system > > Namanya Daniel schrieb am Do., 19. Jan. 2023, > 15:00: > >> Explain where you’re failing exactly, is it views, forms,

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Sebastian Jung
I think this is a good start or? https://github.com/earthcomfy/Django-registration-and-login-system Namanya Daniel schrieb am Do., 19. Jan. 2023, 15:00: > Explain where you’re failing exactly, is it views, forms, templates or > models > > On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON >

Re: configuration

2023-01-19 Thread Namanya Daniel
Profile, shipments and species are models? Or your stored data in one model On Thu, 19 Jan 2023 at 01:56, frank dilorenzo wrote: > I cannot seem to resolve this configuration correctly. > > I have a list of suppliers. > A supplier can have one profile > A supplier can have many shipments. > A

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Namanya Daniel
Explain where you’re failing exactly, is it views, forms, templates or models On Thu, 19 Jan 2023 at 01:56, Michael R. KOOMSON wrote: > I am trying everything possible to create a basic login page with Django., > i have tried so many videos and online tutorial, but still can't make > anything

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread ritik sahoo
If u will follow geekyshows channel on YouTube your basic must be cleared On Thu, 19 Jan, 2023, 6:51 pm Radhika Soni, wrote: > Hello, > You can take help from udemy or coursera courses. > > On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga > wrote: > >> Please share what you have been able to

Re: Digest for django-users@googlegroups.com - 8 updates in 6 topics

2023-01-19 Thread Rivière Du Changement
i new in django how to show categorys product in templates , from views in templates anyone 2023-01-19 14:01 UTC+01:00, django-users@googlegroups.com : > = > Today's topic summary >

AttributeError: 'QuerySet' object has no attribute 'mime_type'

2023-01-19 Thread Monisha Sivanathan
@staticmethod def post(request, *args, **kwargs): constant = utils.send_grid_key sg = SendGridAPIClient(constant) subject = get_subject() content = get_content() message = Mail( from_email=From((utils.sender_mail, 'Hello')), to_emails=To('mani...@gmail.com'), # to_emails=To(get_email()),

Multitenant app // Validation / constraints for related fields

2023-01-19 Thread Abeed Visram
Hi there, Long-time lurker / Django user; first-time poster. Ask: Any other ideas for ensuring that ForeignKey relationships are valid? Context / background: I'm working on a multitenant app, and looking at ways of ensuring the integrity of the data in the system. Specifically, I want to

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Radhika Soni
Hello, You can take help from udemy or coursera courses. On Thu, Jan 19, 2023, 4:36 PM Hubert Kanyamahanga wrote: > Please share what you have been able to do, where you are blocked and from > there we can guide you, because, we don't even know which videos you have > been viewing! > > On

Re: Please i need help in creating a Login page with Django

2023-01-19 Thread Hubert Kanyamahanga
Please share what you have been able to do, where you are blocked and from there we can guide you, because, we don't even know which videos you have been viewing! On Wednesday, January 18, 2023 at 11:56:45 PM UTC+1 macca...@gmail.com wrote: > I am trying everything possible to create a basic

thena.thenadaka.com

2023-01-19 Thread Namanya Daniel
Hello esteemed members, I hope all is well. I am reaching out to you today to invite you to check out thena.thenadaka.com and give me your honest opinions and guidance. Is it a good idea for portifolio building, i believe this is important to know most especially to us looking for jobs..

Re: save() method not working in shell. What are possible causes?

2023-01-19 Thread Artur Rączka
Ok. I solved the problem myself. The pre_save signal was changing my output every time I used save() method. W dniu śr., 18.01.2023 o 23:56 Artur Rączka napisał(a): > Hello guys, > > What am I missing or doing wrong? > > >>> dublin.price > 40 > >>> dublin.price = 100 > >>> dublin.price > 100 >