Friday, March 31, 2023

Re: Migration running in shell, but no change in DB

I would check in the django_migrations table to ensure that the migration has successfully been run.



From: 'Martin Heitmann' via Django users <django-users@googlegroups.com>
Reply: django-users@googlegroups.com <django-users@googlegroups.com>
Date: 31 March 2023 at 19:46:02
To: Django users <django-users@googlegroups.com>
Subject:  Migration running in shell, but no change in DB

Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.

Re: Debug error when c

You have created two urlpatterns. Should just combine them all.

On Sat, 1 Apr 2023 at 00:27, Ricky Abura <kaburaricky@gmail.com> wrote:
   Dear Chetan and Usra,
Thank you very much for your guidance. 
I have just done the same as shown on the screenshots but still it can't go through.
May you kindly go through the pictures and correct me if at all i am messing somewhere.

Thank you

  

On Friday, March 31, 2023 at 8:25:43 AM UTC+3 Usra Saeed wrote:
In urls.py file your mentioned url is not existed 

On Thu, 30 Mar 2023, 10:48 pm Ricky Abura, <kabur...@gmail.com> wrote:
Hi,
I am learning django, in the process of developing youtube clone, I meet the attached error when installing django debug toolbar. I don't know where I am not getting right but I strictly follow some tutorial. Any assistance please?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fd470375-10c2-4c97-93d3-feaed4130dc1n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/144bbf53-82fd-441c-9d71-30fb669b095bn%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoQtr_bAYz9i3A3uFG_Y%2BDT0fMc5CfkxbDz%3DCFU129z8GA%40mail.gmail.com.

Migration running in shell, but no change in DB

Hello everyone

I have a project with multiple apps in it. As database I use MariaDB. Have not touched it for a while, but now I had to add a field to the models of one app. makemigrations and migrate run without any indication of an error. But no change occurs in the db. Tested it with an altered models.py in another app and the result is the same. Do you have any advice how to narrow this down?

Best regards
Martin

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be9ef414-4b51-4072-a1b7-b7ba036016aan%40googlegroups.com.

regarding databases and models.py relation

when we create a table in database , we create through models.py . 
we migrate and apply the changes .
Issue arises as after creation of table -> i tried to add a coloum manually to the db , and wrote the col name in models.py and in views.py as it was a time field added, so
data was getting inserted in the database correctly as desired .

Note -> NO MIGRATIONS WERE APPLIED YET .

now I wanted to create a new col named say x , i wrote in models , views nd then applied migrations -> it started throwing error -> i stopped the creation of new colm .

i applied migrations again for checking if there is any issue -> it showed ypu have a unapplied migration that was related to the manuall chnage i had done .

so i tried migrating but it failed -> colm name already exists .

MY REQUEST -> ADD A FEAUTURE THAT CAN SYNCHRONISE THE MANUALL CHNAGES IN DATABASE WITH DJANGO ORM .
SO we dont fall in the migration error -> it by default migrates when we make manuall chnages in the database .


if my request is valid , let me know for any solutions, if it not valid ,please still let me know why ?

Thank you in advance
 
  

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b047463-f3fb-4362-b105-821a224e3d31n%40googlegroups.com.

Thursday, March 30, 2023

Re: Django Hosting on HTTPS with nginix AWS

Thank you very much everyone.😃

I gathered valuables from your references and also from other links.

It works now!!

Regards,
Himanshu

On Thu, 30 Mar 2023 at 7:06 PM, data storage <storedata2023@gmail.com> wrote:

On Tue, Mar 28, 2023 at 3:22 PM Himanshu Shekhar Mohapatra <himanshu.mohapatra18@gmail.com> wrote:
Hi all,

Please help me with any curated list of steps using which I can host Django application in aws ubuntu with https certificate.

Tried a lot of tutorials but something is missing somewhere.

Thanks a lot!
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHF%2BW75vReP2Wsucc_j1ES1N_Fu4Q2GVu%3DM7B%2BKWoDYzPTpkVg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMPo4vPht8yLLz%3DwF7NON3%2BPKKTusgeoWH0ySX9SYpYeYafncQ%40mail.gmail.com.
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHF%2BW76Qvhjjy-3vir1zQ%2B%3Dc2cM7wdQfV%3D9m-4mt%3DpPd28dOJg%40mail.gmail.com.

Re: The problem of versioning a large project.

Could you give more information, please?
the project structure provided to your GIT repository
It is not entirely clear how you perform separation by application

среда, 29 марта 2023 г. в 22:06:29 UTC+3, Alex Sonar:

The problem of versioning a large project.

Hi guys, I really got stuck with the challenge, with the design of versioning for a large project.

Now we have organized versioning, where our project is divided into separate GIT repositories which are created for each application.

The new necessity point is to split some of them for front-end and back-and developers.

The task looks like bad practice, where we have to create a repository within another one.

Or redesign the file structures of the application itself, to meet this requirement.


If someone has a similar challenge or practice and helps me make the right decision, I will be very grateful.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c6c4e0d-8f99-4ff0-97ba-ed679e608ee1n%40googlegroups.com.

AW: Scheduler with Django on Windows platform

Hi Robbi,

 

one solution to create a platform independent scheduler is to use the package Django-background-tasks.

see: https://django-background-tasks.readthedocs.io/en/latest/

 

 

This solution works for me.

 

Greetings and good luck

Michael

 

 

Von: django-users@googlegroups.com <django-users@googlegroups.com> im Auftrag von Michael kosy <kosymichael321@gmail.com>
Datum: Dienstag, 28. März 2023 um 11:38
An: django-users@googlegroups.com <django-users@googlegroups.com>
Betreff: Re: Scheduler with Django on Windows platform

 

On Tue, Mar 28, 2023, 10:27 AM Robbi Nespu <robbinespu@gmail.com> wrote:

Hi Django developers,
I am looking for any package that can do scheduler job. I am used with
"Django-crontab" but I can't use it on windows platform.

Do you guys have any suggestion?

--
Regards
Robbi Nespu

PGP: D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f31e3081-86c8-dc0c-0239-63582f62b436%40gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAKreuu6B9pNVhPGbSv62ccoF0276EprWVqWS7hUK_xZugSeWQ%40mail.gmail.com.

Wednesday, March 29, 2023

Re: Django Hosting on HTTPS with nginix AWS


On Tue, Mar 28, 2023 at 3:22 PM Himanshu Shekhar Mohapatra <himanshu.mohapatra18@gmail.com> wrote:
Hi all,

Please help me with any curated list of steps using which I can host Django application in aws ubuntu with https certificate.

Tried a lot of tutorials but something is missing somewhere.

Thanks a lot!
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHF%2BW75vReP2Wsucc_j1ES1N_Fu4Q2GVu%3DM7B%2BKWoDYzPTpkVg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMPo4vPht8yLLz%3DwF7NON3%2BPKKTusgeoWH0ySX9SYpYeYafncQ%40mail.gmail.com.

Adding extra registration fields to my user registration

I want to collect user information in my registration forms like first name last name and country 
but it give me errors that unexpected keyword arguments with firstname lastname and country
Any help how i will add extra fields to be store in the database thank You and advance

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/97319e37-1d3d-4000-8f65-4c161140d878n%40googlegroups.com.

The problem of versioning a large project.

The problem of versioning a large project.

Hi guys, I really got stuck with the challenge, with the design of versioning for a large project.

Now we have organized versioning, where our project is divided into separate GIT repositories which are created for each application.

The new necessity point is to split some of them for front-end and back-and developers.

The task looks like bad practice, where we have to create a repository within another one.

Or redesign the file structures of the application itself, to meet this requirement.


If someone has a similar challenge or practice and helps me make the right decision, I will be very grateful.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/43b193b9-00f2-4fe5-963c-5770a41e7964n%40googlegroups.com.

Re: Error installing mysqlclient in WSL2, Ubuntu 20.04.


I highly recommend use docker for it
On Tue, 28 Mar 2023 at 04:17 Hernan Gustavo <hernang.work@gmail.com> wrote:
This is a problem with the legacy install. Try to install it with the command pip install mysqlclient --use-pep517

El dom, 26 mar 2023 a la(s) 14:42, Muhammed Lawal (lawalmuhammedope@gmail.com) escribió:
Hello everyone.
I'm trying to setup MySQL server for my django project but I couldn't get past installing mysqlclient. I've tried using pip3 and pipenv to install it but I'm getting errors and also, I've tried all possible solutions I could find online. Installed all the build dependencies yet still the same.
Please help me out of this. 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOzVPC9xMooBEUqJmdXFzN3Mvd8hbmPcjxpTt9ZR8%3D%3DHr_qmXg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAH6XLKi6c%2BTyTO5xaw1esFwOwbUcu_J6gCZDQkkEvLCH4CSqcw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKaoNbTGKTTXmBgJH5m8hRcN0aYG2N1YjpZe09HF9DcSARa1Cg%40mail.gmail.com.

Tuesday, March 28, 2023

Using one query set for another query

Hello all,

    I am trying to use the query of:
paid_bills = bill_payment_history.objects.filter(date_paid__year='2023', date_paid__month='03')

as criteria for another query to only show the unpaid bills.

The known_bills model is my control list of known bills that occur frequently.
The  bill_payment_history model is my bill transaction table.  It is a running history of transactions for bill payment.

A sample of known_bills records is:
bill_1
bill_2
bill_3

A sample of  bill_payment_history is:
bill_1 paid last month
bill_2 paid last month
bill_3 paid last month
bill_1 paid this month
bill_2 paid this month
bill_3 paid this month

What I am trying to do is use bill_payment_history filtered on date_paid by year and month and query the known_bills table to see what bills have not been paid yet.  I keep trying something similar to:  results = paid_bills.exclude(short_description__in=known_bills)

but my results either keep coming up with all of the records or none of them.  What am I doing wrong?

Here is the model information:

class known_bills(models.Model):
    #Full bank transaction
    description = models.CharField(max_length=255)
    #String value to search the CSV file with.
    short_description = models.CharField(max_length=255, unique=True)
    #Value I know it as.
    friendly_name = models.CharField(max_length=255)
    expected_due_date = models.DateField()
    expected_cost = models.DecimalField(max_digits=6,decimal_places=2)

class bill_payment_history(models.Model):
    description = models.CharField(max_length=255)
    short_description = models.ForeignKey(known_bills, on_delete=models.CASCADE)
    friendly_name = models.CharField(max_length=255)
    date_paid = models.DateField()
    cost = models.DecimalField(max_digits=6,decimal_places=2)

    class Meta:
        unique_together = (
            ('short_description',
            'date_paid'),
            )

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6a9327f8-6a00-49d2-8411-bd9fb03c64c0n%40googlegroups.com.

Re: Spies in California and America

What the hell!? Don't spam the Django channel with your propaganda.

On Mar 28, 2023, at 5:14 PM, Michael Starr <starrtennis@gmail.com> wrote:
So does  anyone have an update on the police state and spying of Democrat Ukrainians in America yet?

Michael

Re: Spies in California and America

Sorry but this is off topic! 

On Wed, Mar 29, 2023, 01:15 Michael Starr <starrtennis@gmail.com> wrote:
So does  anyone have an update on the police state and spying of Democrat Ukrainians in America yet?

Michael

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3711c50c-4f8d-4bef-97d5-9b37d33049a0n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHs1H7s8ArjDXV4fP8%3D3%3DZHF6FgAkfRdc4nz3m107HJaEDqTRw%40mail.gmail.com.

Spies in California and America

So does  anyone have an update on the police state and spying of Democrat Ukrainians in America yet?

Michael

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3711c50c-4f8d-4bef-97d5-9b37d33049a0n%40googlegroups.com.

Re: Django Hosting on HTTPS with nginix AWS

If you're using nginx and gunicorn in Ubuntu 22.04, you can follow the instructions in this article: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04

To add HTTPS, you can use let's encrypt: https://letsencrypt.org/getting-started/

On Tue, 28 Mar 2023 at 17:52, Himanshu Shekhar Mohapatra <himanshu.mohapatra18@gmail.com> wrote:
Hi all,

Please help me with any curated list of steps using which I can host Django application in aws ubuntu with https certificate.

Tried a lot of tutorials but something is missing somewhere.

Thanks a lot!
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHF%2BW75vReP2Wsucc_j1ES1N_Fu4Q2GVu%3DM7B%2BKWoDYzPTpkVg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoRbsferkN_UAbW6RfVKfts_4OF6DndLvCcm_V2aKrEjYQ%40mail.gmail.com.

Re: Django Hosting on HTTPS with nginix AWS

I have done for current company setting of ssl, http, https, load balancers i can help you if u give me more details about the cloud stack and tech stack.

On Tuesday, March 28, 2023 at 3:23:11 PM UTC+5:30 Himanshu Shekhar Mohapatra wrote:
Hi all,

Please help me with any curated list of steps using which I can host Django application in aws ubuntu with https certificate.

Tried a lot of tutorials but something is missing somewhere.

Thanks a lot!
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83fc03b5-915f-4862-b118-ea263037dadbn%40googlegroups.com.

Re: Scheduler with Django on Windows platform


On Tue, Mar 28, 2023, 10:27 AM Robbi Nespu <robbinespu@gmail.com> wrote:
Hi Django developers,
I am looking for any package that can do scheduler job. I am used with
"Django-crontab" but I can't use it on windows platform.

Do you guys have any suggestion?

--
Regards
Robbi Nespu

PGP: D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f31e3081-86c8-dc0c-0239-63582f62b436%40gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAKreuu6B9pNVhPGbSv62ccoF0276EprWVqWS7hUK_xZugSeWQ%40mail.gmail.com.

Scheduler with Django on Windows platform

Hi Django developers,
I am looking for any package that can do scheduler job. I am used with
"Django-crontab" but I can't use it on windows platform.

Do you guys have any suggestion?

--
Regards
Robbi Nespu

PGP: D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f31e3081-86c8-dc0c-0239-63582f62b436%40gmail.com.

Django Hosting on HTTPS with nginix AWS

Hi all,

Please help me with any curated list of steps using which I can host Django application in aws ubuntu with https certificate.

Tried a lot of tutorials but something is missing somewhere.

Thanks a lot!
--
Sent from Gmail Mobile

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHF%2BW75vReP2Wsucc_j1ES1N_Fu4Q2GVu%3DM7B%2BKWoDYzPTpkVg%40mail.gmail.com.

Re: Django audio recorder Bad request: /record-audio/

Apologies, the previous solution has a mistake in it, on line 27.

Kindly refer to the attached screenshot.

Thanks,
Tega Ukavwe
Python Like English

On Tue, Mar 28, 2023 at 8:52 AM Tega Ukavwe <justtega97@gmail.com> wrote:

Hi Yong Zu Yi,

Based on the screenshot you provided, it looks like you're trying to retrieve an audio file from the request's POST data using the request.POST dictionary.

However, audio files should be sent as part of the request's FILES data, not POST data.

To retrieve the audio file from the request's FILES data, you should use the request.FILES dictionary instead.

I have attached a screenshot of a modified code, I first check if the audio file is present in the request.FILES dictionary. If it's not present, I simply return a 400 Bad Request response. If it's present, create a filename based on the current user's username and the current date and time, and save the audio file to the server using the open function and a for loop to write the file in chunks.

I hope this helps you solve the issue you were facing. Let me know if you have any further questions.


Best Wishes,

Tega Ukavwe

Python Like English

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BbC3qXR0t%2B2qjQAiVC5a%2BnB8WSK4Vp-z_euQ110q20r_r0ZzA%40mail.gmail.com.

Re: Django audio recorder Bad request: /record-audio/

Hi Yong Zu Yi,

Based on the screenshot you provided, it looks like you're trying to retrieve an audio file from the request's POST data using the request.POST dictionary.

However, audio files should be sent as part of the request's FILES data, not POST data.

To retrieve the audio file from the request's FILES data, you should use the request.FILES dictionary instead.

I have attached a screenshot of a modified code, I first check if the audio file is present in the request.FILES dictionary. If it's not present, I simply return a 400 Bad Request response. If it's present, create a filename based on the current user's username and the current date and time, and save the audio file to the server using the open function and a for loop to write the file in chunks.

I hope this helps you solve the issue you were facing. Let me know if you have any further questions.


Best Wishes,

Tega Ukavwe

Python Like English

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BbC3qWB%3DUfUHdo_MdxeBXgLtD3yNTdOkHWo5ExK3uv8O3%3DXDg%40mail.gmail.com.

Re: User creation

-----BEGIN PGP PUBLIC KEY BLOCK-----

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
BHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----
On 28/03/2023 06.16, Prashanth Patelc wrote:
> Hi all,
>
> I'm creating new user fields like email username firstname after
> creating user I need to send password creation email to end user ?
>

No, you don't have to but you can if you want.

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e96c22e7-4c95-20e5-c7a8-537067f02fab%40stacktrace.dk.

Monday, March 27, 2023

User creation

Hi all,

I'm creating new user fields like email username firstname after creating user I need to send password creation email to end user ?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMCU6CoLB8ZjXUsKEO9xD7Scf58CGNZEPjHT5-k1gLyLyyQOjQ%40mail.gmail.com.

Django audio recorder Bad request: /record-audio/

I am now making a audio journaling application, and I will need a recorder in Django. But I receive a error Bad request.
code.JPG
I have add some print statement to see where is having problem. and it shows me <QueryDict: {}>
error.JPG
Can somebody help me!

I have posted the rest of the code in stack overflow because the code is toooo long:
https://stackoverflow.com/q/75853749/21499403

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e66a88ef-fa55-4524-8971-6cf3f4c2c7d9n%40googlegroups.com.

Re: Error installing mysqlclient in WSL2, Ubuntu 20.04.

This is a problem with the legacy install. Try to install it with the command pip install mysqlclient --use-pep517

El dom, 26 mar 2023 a la(s) 14:42, Muhammed Lawal (lawalmuhammedope@gmail.com) escribió:
Hello everyone.
I'm trying to setup MySQL server for my django project but I couldn't get past installing mysqlclient. I've tried using pip3 and pipenv to install it but I'm getting errors and also, I've tried all possible solutions I could find online. Installed all the build dependencies yet still the same.
Please help me out of this. 

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAOzVPC9xMooBEUqJmdXFzN3Mvd8hbmPcjxpTt9ZR8%3D%3DHr_qmXg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAH6XLKi6c%2BTyTO5xaw1esFwOwbUcu_J6gCZDQkkEvLCH4CSqcw%40mail.gmail.com.

Re: Django error while running

Run this command> pip install -r requirements.txt

Le mercredi 22 mars 2023 à 13:53:15 UTC+1, James Kalu a écrit :
I think it ushould be 'rest_framework' in settings.py under installed apps.


On Wednesday, March 22, 2023 at 4:50:30 AM UTC+3 David Nugent wrote:
Any traceback with this at the end:

  _bootstrap._gcd_import(name[level..], package, level)

Is almost always is due to a problem with your settings INSTALLED_APPS, particularly if django\apps\registry.py Is further up the trace.

A missing comma between items, perhaps?

It would indeed be nice if Django would output a more sensible error message for issues like this 😀 
Hmm, an idea for a useful PR right there. Seems to be common issue (since the very next message I read in this mail list is exactly the same thing).

Regards,
David


"Chandresh . T" <chandre...@gmail.com> writes

Recently I was running a git clone (https://github.com/divanov11/StudyBud.git)

after doing required steps like migrations, etc. I started to run it by (python manage.py runserver) but I got this error.

can anyone help me with this, please?


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a38cb8a1-548f-4f13-af17-cd08c4e1b1e3n%40googlegroups.com.

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

hello, you must apply the default=None, or default="" feature, so that those fields can be filled.
ex:
details1 = models.CharField(max_length=500, default="")

El sáb, 25 mar 2023 a la(s) 07:59, Ebenezer Otchere (swazyman1994@gmail.com) escribió:
Am new in django and have been getting errors in migrations, i need help
when i try to do migrations it keeps telling me this
it is impossible to add a non-nullable field 'details' to feature without specifying a default. This is because the database needs something to populate existing rows.
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
 2) Quit and manually define a default value in models.py.
Thank you  in advance
from django.db import models

# Create your models here.


class feature(models.Model) :
   
    name = models.CharField(max_length=100)
    extra = models.CharField(max_length=100)
    details1 = models.CharField(max_length=500)
   
class art(models.Model):
   
    name = models.CharField(max_length=100)
    details = models.CharField(max_length=500)

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHsGuWknud1o52RwcDhhruGQwCtw8A122AUCf7i4nGk8BOhzuA%40mail.gmail.com.

Django audio recording issue: receiving Bad Request error

I am new to Django and also my first time building an application. I am building an audio journaling application with Django.
What I am doing here is a recorder. When user press the recorder button, it will direct to record.html with four buttons, Start, Pause, Resume and Stop. When the user finished recording and hit the Stop button, it will save a audio file (wav). However, I have receive a bad request error and the audio file is not created.

I have posted the code at stack overflow:
https://stackoverflow.com/q/75853749/21499403

Can anyone help me please.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4dd18add-5882-4864-ae99-4c079a17f347n%40googlegroups.com.

Re: Setting recipient name in EmailMultiAlternatives

I haven't read the documents myself that I am referring to here. But they should come as a help to you with your question.

Try to follow the generalized rules when having some public namespace ( or address).

Regards,
--
Sharif
On Monday, March 27, 2023 at 07:12:51 PM GMT+6, Peter Benjamin Ani <benjaminparish6@gmail.com> wrote:


I don't fully understand the error, can you describe it more please 

On Mon, 27 Mar 2023, 13:54 Sylvain, <sylvain.fankhauser@gmail.com> wrote:
Hello,

I'm using the following code to send mails to my users, with their name appearing in the `To` header:

msg = EmailMultiAlternatives(subject=subject, body=body, to=f"{user.get_full_name()} <{user.email}>")
msg.send()

It works fine but if you have a special character in your name (such as a comma) then `msg.send()` will fail because `sanitize_address` raises an exception. Note that this will only fail with the SMTP backend because all other backends (such as the console backend) don't sanitize the address, so even if you try to write tests for this case, it won't fail unless you actually use the SMTP backend.

I couldn't find any indication in the Django docs on how to correctly include the name of the recipient in an e-mail so I started digging in the code. I found that the `sanitize_address` function (which uses the email.headerregistry.parser module of Python's, which doesn't seem to be documented) accepts either a string or a tuple of (name, address), so I thought I could use `to=(user.get_full_name(), user.email)` which seemed quite elegant, but doesn't really work because the value is not sanitized before it's put in the `To` header so it will show up like `(Jane Doe, jane@example.com)` in the recipient mailbox.

However, it seems calling `sanitize_address` directly works, like so:

msg = EmailMultiAlternatives(subject=subject, body=body, to=sanitize_address((user.get_full_name(), user.email), settings.DEFAULT_CHARSET))

But since there's no mention of `sanitize_address` in the Django docs, I'm not sure it's the right way to do it. And since I couldn't find anything on this topic on the internet I think I might be missing something obvious. Could anyone point me in the right direction?

Thanks!

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f64152c-a5b3-4995-a539-1359416e9decn%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPxt_2XOf4b3ZPP-Sa8GPvf9iaVZNhyjwjyF-5DtysGqAQxm4A%40mail.gmail.com.

Re: Setting recipient name in EmailMultiAlternatives

I don't fully understand the error, can you describe it more please 

On Mon, 27 Mar 2023, 13:54 Sylvain, <sylvain.fankhauser@gmail.com> wrote:
Hello,

I'm using the following code to send mails to my users, with their name appearing in the `To` header:

msg = EmailMultiAlternatives(subject=subject, body=body, to=f"{user.get_full_name()} <{user.email}>")
msg.send()

It works fine but if you have a special character in your name (such as a comma) then `msg.send()` will fail because `sanitize_address` raises an exception. Note that this will only fail with the SMTP backend because all other backends (such as the console backend) don't sanitize the address, so even if you try to write tests for this case, it won't fail unless you actually use the SMTP backend.

I couldn't find any indication in the Django docs on how to correctly include the name of the recipient in an e-mail so I started digging in the code. I found that the `sanitize_address` function (which uses the email.headerregistry.parser module of Python's, which doesn't seem to be documented) accepts either a string or a tuple of (name, address), so I thought I could use `to=(user.get_full_name(), user.email)` which seemed quite elegant, but doesn't really work because the value is not sanitized before it's put in the `To` header so it will show up like `(Jane Doe, jane@example.com)` in the recipient mailbox.

However, it seems calling `sanitize_address` directly works, like so:

msg = EmailMultiAlternatives(subject=subject, body=body, to=sanitize_address((user.get_full_name(), user.email), settings.DEFAULT_CHARSET))

But since there's no mention of `sanitize_address` in the Django docs, I'm not sure it's the right way to do it. And since I couldn't find anything on this topic on the internet I think I might be missing something obvious. Could anyone point me in the right direction?

Thanks!

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f64152c-a5b3-4995-a539-1359416e9decn%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPxt_2XOf4b3ZPP-Sa8GPvf9iaVZNhyjwjyF-5DtysGqAQxm4A%40mail.gmail.com.

Setting recipient name in EmailMultiAlternatives

Hello,

I'm using the following code to send mails to my users, with their name appearing in the `To` header:

msg = EmailMultiAlternatives(subject=subject, body=body, to=f"{user.get_full_name()} <{user.email}>")
msg.send()

It works fine but if you have a special character in your name (such as a comma) then `msg.send()` will fail because `sanitize_address` raises an exception. Note that this will only fail with the SMTP backend because all other backends (such as the console backend) don't sanitize the address, so even if you try to write tests for this case, it won't fail unless you actually use the SMTP backend.

I couldn't find any indication in the Django docs on how to correctly include the name of the recipient in an e-mail so I started digging in the code. I found that the `sanitize_address` function (which uses the email.headerregistry.parser module of Python's, which doesn't seem to be documented) accepts either a string or a tuple of (name, address), so I thought I could use `to=(user.get_full_name(), user.email)` which seemed quite elegant, but doesn't really work because the value is not sanitized before it's put in the `To` header so it will show up like `(Jane Doe, jane@example.com)` in the recipient mailbox.

However, it seems calling `sanitize_address` directly works, like so:

msg = EmailMultiAlternatives(subject=subject, body=body, to=sanitize_address((user.get_full_name(), user.email), settings.DEFAULT_CHARSET))

But since there's no mention of `sanitize_address` in the Django docs, I'm not sure it's the right way to do it. And since I couldn't find anything on this topic on the internet I think I might be missing something obvious. Could anyone point me in the right direction?

Thanks!

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9f64152c-a5b3-4995-a539-1359416e9decn%40googlegroups.com.

Sunday, March 26, 2023

Re: No downtime rolling upgrades with migration

Depending on the requirements. Either two different databases or point to one database.

Or
Link one database to master (read and write)

Another database instance to read only.

And you can change Another database to main.

Cheers 


On Sun, 26 Mar 2023, 22:33 Sandip Bhattacharya, <sandipb@showmethesource.org> wrote:


On Mar 26, 2023, at 4:32 PM, Damanjeet Singh <mailtodaman@gmail.com> wrote:
3. How do you do non-backward compatible schema upgrades? Do you do it out of band from deployments? Do you shift traffic to a different cluster, and then zero traffic upgrade the whole cluster at once?

Daman: Blue Green deployment can help. You can distribute traffic to old and new. When all stable then move everything. You can use kubernetes with helm.


Do you do blue-green deployments with two different databases? 

- Sandip


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66989169-7601-4CA1-A54B-B9B29F7B719B%40showmethesource.org.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGLHGi7iorAPEvhb5UteJT9Hoy7wwaMfT5D8AtWNKh5pH2uj-A%40mail.gmail.com.

Re: No downtime rolling upgrades with migration

Hello,

Please read my reply below.

Best of luck.

Regards

On Sun, 26 Mar 2023, 21:17 Sandip Bhattacharya, <sandipb@showmethesource.org> wrote:
New to django, so wanted to ask some questions that I didn't find good resources for:

1. If you deploy django apps using docker, do you run migrations before launching gunicorn/uwsgi etc within the docker image?
Daman:This is all upto you. Better to do when creating container. As you can also upgrade from git. 

2. If you do, how does rolling migrations work? Won't the non-upgraded replicas start erroring if the new schema is not backward compatible?
Daman:Create blue green deployment.

3. How do you do non-backward compatible schema upgrades? Do you do it out of band from deployments? Do you shift traffic to a different cluster, and then zero traffic upgrade the whole cluster at once?

Daman: Blue Green deployment can help. You can distribute traffic to old and new. When all stable then move everything. You can use kubernetes with helm.


Thanks,
  Sandip

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A9719D24-F6DA-45A6-A30A-EA8EA34754A1%40showmethesource.org.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGLHGi5p9MgPyhKs-x%3D_84CGhjcQNy70mQGJK-v8rBi5m3znTA%40mail.gmail.com.

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

So what would you want for existing entries in the table which were added before you changed the model?

If you are ok with them being empty, you should use:
details = models.CharField(max_length=500, default="")

And run migrate again.

If you are ok instead of this column being null, then:
details = models.CharField(max_length=500, null=True, blank=True)

I don't have a huge experience with migrations, so others can correct me if I am wrong, but intuitively I feel that defaults should be captured in code than doing one-off fixes manually while running migrations at the command line.

Thanks,
  Sandip


On Mar 25, 2023, at 12:08 AM, Ebenezer Otchere <swazyman1994@gmail.com> wrote:

Am new in django and have been getting errors in migrations, i need help
when i try to do migrations it keeps telling me this
it is impossible to add a non-nullable field 'details' to feature without specifying a default. This is because the database needs something to populate existing rows.
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
 2) Quit and manually define a default value in models.py.
Thank you  in advance
from django.db import models

# Create your models here.


class feature(models.Model) :
   
    name = models.CharField(max_length=100)
    extra = models.CharField(max_length=100)
    details1 = models.CharField(max_length=500)
   
class art(models.Model):
   
    name = models.CharField(max_length=100)
    details = models.CharField(max_length=500)

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com.

Re: nexmo

Can we use english please 

On Sun, Mar 26, 2023, 10:43 PM Morgan <dallymorganndongella97@gmail.com> wrote:
bonsoir jaimerai utilisé l'api nexmo pour envoyer des msg, quelqu'un l'a t-il deja fait ici??

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4131eeb8-69c5-45eb-9907-5b9b448f8ee0n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABEjOA8kT%2BVkt3hcbHe-NOX-BBwc3D5K51Rx3EZvnQSY7ukxiA%40mail.gmail.com.