Re: Images and pdfs for production level

2020-02-15 Thread Soumen Khatua
Okay

On Sun 16 Feb, 2020, 11:37 AM Devender Kumar,  wrote:

> Read about cloudfront that will help you for sure.
>
> On Sun, 16 Feb, 2020, 11:03 am Soumen Khatua, 
> wrote:
>
>> Actually I'm using s3 bucket but I want to convert it as a CDN. Could you
>> tell me how I can do that?
>>
>> Thank you
>>
>> Regards,
>> Soumen
>>
>> On Fri 14 Feb, 2020, 1:10 PM Devender Kumar,  wrote:
>>
>>> I will suggest you go with AWS S3 you can use boto3 lib available for
>>> python
>>>
>>> On Thu, 13 Feb, 2020, 12:32 pm Soumen Khatua, 
>>> wrote:
>>>
 Yes,I want to use CDN for my static files. But I don't know how to
 implement it.

 On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar 
 wrote:

> Some CDN
>
> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, <
> soumenkhatua...@gmail.com> wrote:
>
>> Hi Folks,
>> Where I need to store images and pdfs for production level.
>>
>> Thank you in advance
>>
>> regards,
>> Soumen
>>
>> --
>> 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 visit
>> https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALZ%3DbEJRahf2C9FO%2BQp1V%2Br2SjQZK6L4PNE3Pv2w%3D8Tb9fyepg%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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPUw6WbTVkZub1vpbh%2B2070jmFpb%2B8%3Dx-5W9SW6-rgC1AjZvoQ%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALZ%3DbEJmMwrwZrYD-pxWwTug1Vxkx52xmO0vUO3r40ueGBR9Cg%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPUw6WYDG1XM2gXKTZnRstqCsptjDTpyh%2BJAD9j_BhZRamfamQ%40mail.gmail.com.


Re: Images and pdfs for production level

2020-02-15 Thread Devender Kumar
Read about cloudfront that will help you for sure.

On Sun, 16 Feb, 2020, 11:03 am Soumen Khatua, 
wrote:

> Actually I'm using s3 bucket but I want to convert it as a CDN. Could you
> tell me how I can do that?
>
> Thank you
>
> Regards,
> Soumen
>
> On Fri 14 Feb, 2020, 1:10 PM Devender Kumar,  wrote:
>
>> I will suggest you go with AWS S3 you can use boto3 lib available for
>> python
>>
>> On Thu, 13 Feb, 2020, 12:32 pm Soumen Khatua, 
>> wrote:
>>
>>> Yes,I want to use CDN for my static files. But I don't know how to
>>> implement it.
>>>
>>> On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar 
>>> wrote:
>>>
 Some CDN

 On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
 wrote:

> Hi Folks,
> Where I need to store images and pdfs for production level.
>
> Thank you in advance
>
> regards,
> Soumen
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALZ%3DbEJRahf2C9FO%2BQp1V%2Br2SjQZK6L4PNE3Pv2w%3D8Tb9fyepg%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WbTVkZub1vpbh%2B2070jmFpb%2B8%3Dx-5W9SW6-rgC1AjZvoQ%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALZ%3DbEJmMwrwZrYD-pxWwTug1Vxkx52xmO0vUO3r40ueGBR9Cg%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-15 Thread maninder singh Kumar
Wouldn't the value field make it fixed ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:

> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field
> for searching can contain only a few of the characters.  This can create a
> list of several people.
> After the search parameters are entered a "Search" button is clicked and
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original
> (current) search argument to be retained in the argument field so I do not
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SPDFdvajS9GyqhxHSvXw5eEQpHU9ax7NOtFhsM4W_wyg%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-15 Thread maninder singh Kumar
The projects need to be specified !


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Fri, Feb 14, 2020 at 9:46 PM Akorede Habeebullah 
wrote:

> Hi guys,
>
> I've been learning Django on a solo for a while now and I'm really in need
> of a Programmer friend/partner who we can always learn together, build
> projects together. This will really benefit both sides greatly.
> I am a person you'll really love to make friend with. Interested
> individuals should pls signify.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3TFJUFVqW3cbj%2BYtZok10GgYUoeR4F_xZVh7yAD0vkjOg%40mail.gmail.com.


Image overwrite

2020-02-15 Thread Soumen Khatua
Hi Folks,

I have a model where user can upload their image. But after uploading a new
image the old image is still their but as for my convention if a user
upload his new image the old image should not be their, If anyone know
please tell me How I can do that??

Thank you

Regards,
Soumen

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/CAPUw6Wa%3DhcFc0r-n6m37w-ZiQL%3DtJh8JeXX1dc2x2-HbZVyocA%40mail.gmail.com.


Re: Is a Custom User Model worth the headache?

2020-02-15 Thread Mike Dewhirst
Thank you kind sir Makes perfect sense ...Mike
 Original message From: Carsten Fuchs  
Date: 15/2/20  23:33  (GMT+10:00) To: django-users@googlegroups.com Subject: 
Re: Is a Custom User Model worth the headache? Hi Mike,Am 2020-02-14 um 23:30 
schrieb Mike Dewhirst:> In your documentation you mention "from accounts.models 
import User"> > I have been maybe taking things too literally. After migrating 
to my custom user I have used "from django.contrib.auth import get_user_model" 
followed by "User = get_user_model"> > I much prefer your direct route. Is it 
correct?Yes, I think so. As I wrote near the top, every code that is to be used 
by others must use the generic referencing method, so that it can deal with 
whatever User model the client code uses.In your project apps that are not 
intended for reuse by other "foreign" code, there is, imho, no need to use the 
additional redirection that the generic referencing methods bring. You can just 
import your custom user model there directly.Best regards,Carsten-- 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 visit 
https://groups.google.com/d/msgid/django-users/e7a50241-afba-cd3d-0ab2-08795a87a2d6%40cafu.de.

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/5e486d55.1c69fb81.b393e.2244SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Study and project partner(s) needed

2020-02-15 Thread Oluwaseun Jeremiah
I will like to join you
Here is my whatsapp
2347033819166

On Sat, Feb 15, 2020, 7:10 AM Jack Lin  wrote:

> Hi there,
> I’ve got a new Django project. Do you guys interested to join?
> This is my website   and this
> is a simple Django app  wait
> to be improved.
> There is the Github page. 
>
> If anyone have no idea how to cooperate or help. Feel free to ask, I’ll
> teach you.
>
>
> Jack Sanchez
>
> 在 2020年2月15日 於 下午1:34:06, paarull shukla (shukla.paarull...@gmail.com) 寫下:
>
> Heloo satvik I also started learn jango few days back.. If we face
> anyproblem can we discuss
>
> On Sat, 15 Feb, 2020, 9:06 AM Satvik GS, <1gssat...@gmail.com> wrote:
>
>> Hello,
>> I am Satvik
>> Even I'm interested. But I have started to learn Django now is it ok if I
>> join you guys?
>>
>> On Fri, Feb 14, 2020, 10:15 PM Greenfield Obasi <
>> greenfieldchine...@gmail.com> wrote:
>>
>>> Yooo let do this!
>>>
>>> On Fri, 14 Feb 2020, 16:16 Akorede Habeebullah, 
>>> wrote:
>>>
 Hi guys,

 I've been learning Django on a solo for a while now and I'm really in
 need of a Programmer friend/partner who we can always learn together, build
 projects together. This will really benefit both sides greatly.
 I am a person you'll really love to make friend with. Interested
 individuals should pls signify.

 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAMt%3DUZos%2BJoDMbNATWvG_xFV8n0y1kcu2%3DcLCYZEMH_O8HVGjw%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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAG8BS_vx%2B9RjrXBv-9trZB8xe4pVWxKYekao_418sSGrde2E%3DQ%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACLQzsccmpWs3FkSLpKmfF4M5O2KsUEsvds-ns_kj7C-WnjNyw%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP7OQq1%2B60hGw9noo3eHu0-8BmL%2BGKo3ayzHKvJOGEAu68XF9Q%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF%3DA8h%2BSKxRw2qu8ytXCieeNnzC8ANYLi4ZqV6LU963mQS__TA%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-15 Thread Realdox Opeyemi
I'm also a Django beginner ,I need a study partner ...email :
realdox2yk47...@gmail.com WhatsApp : +2348163534852
On Feb 15, 2020 6:33 AM, "paarull shukla" 
wrote:

> Heloo satvik I also started learn jango few days back.. If we face
> anyproblem can we discuss
>
> On Sat, 15 Feb, 2020, 9:06 AM Satvik GS, <1gssat...@gmail.com> wrote:
>
>> Hello,
>> I am Satvik
>> Even I'm interested. But I have started to learn Django now is it ok if I
>> join you guys?
>>
>> On Fri, Feb 14, 2020, 10:15 PM Greenfield Obasi <
>> greenfieldchine...@gmail.com> wrote:
>>
>>> Yooo let do this!
>>>
>>> On Fri, 14 Feb 2020, 16:16 Akorede Habeebullah, 
>>> wrote:
>>>
 Hi guys,

 I've been learning Django on a solo for a while now and I'm really in
 need of a Programmer friend/partner who we can always learn together, build
 projects together. This will really benefit both sides greatly.
 I am a person you'll really love to make friend with. Interested
 individuals should pls signify.

 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%
 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/django-users/CAMt%3DUZos%2BJoDMbNATWvG_xFV8n0y1kcu2%3DcLCYZEMH_
>>> O8HVGjw%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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAG8BS_vx%2B9RjrXBv-9trZB8xe4pVWxKYekao_
>> 418sSGrde2E%3DQ%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CACLQzsccmpWs3FkSLpKmfF4M5O2Ks
> UEsvds-ns_kj7C-WnjNyw%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqMW_TyrQVFmDfhk7WjsL2%2B7HnAzW9r%2B_8JH%2BTR6gq_ORy9uw%40mail.gmail.com.


Re: Study and project partner(s) needed

2020-02-15 Thread Realdox Opeyemi
I'm also a Django beginner we can team up and reach our destination
together ..email : realdox2yk47...@gmail.com WhatsApp : 08163534852
On Feb 15, 2020 8:01 PM, "Ayodeji Opaleye"  wrote:
>
> Interested here too.
> Just picked up Django this week
>
> On Fri, Feb 14, 2020, 5:15 PM Akorede Habeebullah 
wrote:
>>
>> Hi guys,
>>
>> I've been learning Django on a solo for a while now and I'm really in
need of a Programmer friend/partner who we can always learn together, build
projects together. This will really benefit both sides greatly.
>> I am a person you'll really love to make friend with. Interested
individuals should pls signify.
>>
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAN_ofewEgZ0AD6Pa%3DdH%3DCWebyoZ5VNHfu8k2YVq_4NSvLGk_Ag%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqMW_Qdx%3D7yqF5WjPSxUoRPqQA_WooZKNv4z%3DXsQ5puXv80RA%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-15 Thread onlinejudge95
On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:

> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field
> for searching can contain only a few of the characters.  This can create a
> list of several people.
> After the search parameters are entered a "Search" button is clicked and
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original
> (current) search argument to be retained in the argument field so I do not
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>

Set an attribute of value in your input tags, and use the form object in
your view to populate it. For reference
https://stackoverflow.com/questions/4880306/django-multiple-forms-and-keep-field-data-input-after-submission?rq=1


> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eS8moJTCzxTt_ufn9qOxuhyXQkYAw-N2TS249oVKcweqQ%40mail.gmail.com.


Getting ORA-00918: column ambiguously defined error which try to open django admin page after upgrading to django 3.03 from 2.0

2020-02-15 Thread Fateh Budwal


Getting django.db.utils.DatabaseError: ORA-00918: column ambiguously 
defined error when I try to open Django admin page. Here is the error:

raise dj_exc_value.with_traceback(traceback) from exc_value File 
"/venomscribe/lib/python3.6/site-packages/django/db/backends/utils.py", 
line 86, in _execute return self.cursor.execute(sql, params) File 
"/venomscribe/lib/python3.6/site-packages/django/db/backends/oracle/base.py", 
line 514, in execute return self.cursor.execute(query, 
self._param_generator(params)) django.db.utils.DatabaseError: ORA-00918: 
column ambiguously defined

Query is

SELECT "DJANGO_ADMIN_LOG"."ID",
   "DJANGO_ADMIN_LOG"."ACTION_TIME",
   "DJANGO_ADMIN_LOG"."USER_ID",
   "DJANGO_ADMIN_LOG"."CONTENT_TYPE_ID",
   "DJANGO_ADMIN_LOG"."OBJECT_ID",
   "DJANGO_ADMIN_LOG"."OBJECT_REPR",
   "DJANGO_ADMIN_LOG"."ACTION_FLAG",
   "DJANGO_ADMIN_LOG"."CHANGE_MESSAGE",
   "AUTH_USER"."ID",
   "AUTH_USER"."PASSWORD",
   "AUTH_USER"."LAST_LOGIN",
   "AUTH_USER"."IS_SUPERUSER",
   "AUTH_USER"."USERNAME",
   "AUTH_USER"."FIRST_NAME",
   "AUTH_USER"."LAST_NAME",
   "AUTH_USER"."EMAIL",
   "AUTH_USER"."IS_STAFF",
   "AUTH_USER"."IS_ACTIVE",
   "AUTH_USER"."DATE_JOINED",
   "DJANGO_CONTENT_TYPE"."ID",
   "DJANGO_CONTENT_TYPE"."APP_LABEL",
   "DJANGO_CONTENT_TYPE"."MODEL"
  FROM "DJANGO_ADMIN_LOG"
  INNER JOIN "AUTH_USER"
ON ("DJANGO_ADMIN_LOG"."USER_ID" = "AUTH_USER"."ID")
  LEFT OUTER JOIN "DJANGO_CONTENT_TYPE"
ON ("DJANGO_ADMIN_LOG"."CONTENT_TYPE_ID" = "DJANGO_CONTENT_TYPE"."ID")
  WHERE "DJANGO_ADMIN_LOG"."USER_ID" = :arg0
  ORDER BY "DJANGO_ADMIN_LOG"."ACTION_TIME" DESC
  FETCH FIRST 10 ROWS ONLY

please note it only happening with django 3.03. django 2 is working fine. 

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/62d610eb-174f-476c-85a7-c7d2beb76842%40googlegroups.com.


Re: Study and project partner(s) needed

2020-02-15 Thread Ayodeji Opaleye
Interested here too.
Just picked up Django this week

On Fri, Feb 14, 2020, 5:15 PM Akorede Habeebullah  wrote:

> Hi guys,
>
> I've been learning Django on a solo for a while now and I'm really in need
> of a Programmer friend/partner who we can always learn together, build
> projects together. This will really benefit both sides greatly.
> I am a person you'll really love to make friend with. Interested
> individuals should pls signify.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6d4ed94c-3864-4c5b-9f9e-5df7b6a77cdd%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN_ofewEgZ0AD6Pa%3DdH%3DCWebyoZ5VNHfu8k2YVq_4NSvLGk_Ag%40mail.gmail.com.


Retaining text in search input boxes

2020-02-15 Thread Dick Arnold
I have a personnel database which has to be edited to keep it current.
I have created search parameters to find the person to edit.
The exact name of the person is not always known, therefore the name field 
for searching can contain only a few of the characters.  This can create a 
list of several people.
After the search parameters are entered a "Search" button is clicked and 
the output, if any, is displayed in a table.
If the search parameters need to be improved, I want the original (current) 
search argument to be retained in the argument field so I do not need to 
re-type ALL the search parameters, just the ones I want to change.

I have not been able to find a way to retain the value in the search input 
box,

Does anyone know how to accomplish this?

Here's the input for one of the input boxes.



-- 
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 visit 
https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com.


Re: Is a Custom User Model worth the headache?

2020-02-15 Thread Carsten Fuchs
Hi Mike,

Am 2020-02-14 um 23:30 schrieb Mike Dewhirst:
> In your documentation you mention "from accounts.models import User"
> 
> I have been maybe taking things too literally. After migrating to my custom 
> user I have used "from django.contrib.auth import get_user_model" followed by 
> "User = get_user_model"
> 
> I much prefer your direct route. Is it correct?

Yes, I think so. As I wrote near the top, every code that is to be used by 
others must use the generic referencing method, so that it can deal with 
whatever User model the client code uses.

In your project apps that are not intended for reuse by other "foreign" code, 
there is, imho, no need to use the additional redirection that the generic 
referencing methods bring. You can just import your custom user model there 
directly.

Best regards,
Carsten

-- 
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 visit 
https://groups.google.com/d/msgid/django-users/e7a50241-afba-cd3d-0ab2-08795a87a2d6%40cafu.de.


Re: [Django] Error occured while saving a form created through model formset factory

2020-02-15 Thread Integr@te System
Hi,

Plz check about:
 HttpResponseRedirect('/gspapp/ModelGSPRequestList')

On Sat, Feb 15, 2020, 13:15 Dilipkumar Noone  wrote:

> Hi Maninder,
>
> This error seems because i used choice field which actually use names as
> values but django expects the id.
>
> As Django automatically creates a ModelChoicefield for a Foreign Key which
> use the correct values,i modified the code as below in forms.py.
>
> I have a requirement to populate only unique values for registered_model
> from the values returned from ModelRegister .
>
> I modified the code as below and now i am able to get the unique values .
>
>
> 
> def unique_values():
> return
> [("","---")]+list(ModelRegister.objects.values_list('model_name','model_name').order_by('model_name').distinct())
>
> registered_model = forms.ChoiceField(required=False,choices=unique_values)
>
> 
>
> registered_model = 
> forms.ModelChoiceField(queryset=ModelRegister.objects.values_list('model_name',flat=True).order_by('model_name').distinct())
>
>
> 
>
> Error is resolved now.
>
>
>
>But once i fill all the values in formset and submit the form.
>
>Not able to redirect to List View. Even if i click on submit button it
>stays on the same page.Anything needs to be taken care during POST request
>to save the created model formsets in the database.in the
>-
>
>
>-
>
>*def create_model_gsp_request_form(request,id=None):
>print("Inside create_model_gsp_request_form")
>template_name = "ModelGSPRequest.html"
>heading_message = "ModelGSPRequest"
>
>if id:
>action = 'edit'
>model = get_object_or_404(ModelGSPRequest, pk=id)
>else:
>action = 'submit'
>model = ModelGSPRequest()
>
>message = ""
>
>if request.method == 'GET':
>print("Get request in create_model_gsp_request_form")
># we don't want to display the already saved model instances
>#formset = 
> ModelGSPRequestFormSet(queryset=ModelGSPRequest.objects.none(),instance=model)
>formset = ModelGSPRequestFormSet()
>#registered_model_details = serializers.serialize("json", 
> ModelRegister.objects.all())
>#print("registered_model_details:", registered_model_details)
>elif request.method == 'POST':
>print("post request in create_model_gsp_request_form")
>formset = ModelGSPRequestFormSet(request.POST,request.FILES)
>if formset.is_valid():
>for form in formset:
># only save if name is present
>#if form.cleaned_data.get('name'):
>
>new_form = form.save(commit=False)
>new_form.model_gsp_requester = request.user.username
>new_form.save()
>formset.save_m2m()
>#return redirect('ModelGSPRequestList')
>return HttpResponseRedirect('/gspapp/ModelGSPRequestList')
>return render(request, template_name, {
>'formset': formset,
>'heading': heading_message,
>#'registered_model_data': registered_model_details,
>'action':action
>})*
>
>-
>
>
>
>
> Regards,
> N.Dilip Kumar.
>
>
> On Monday, February 10, 2020 at 12:11:42 AM UTC+5:30, Dilipkumar Noone
> wrote:
>>
>>  I am a Django learner.
>>
>> 1.I have a requirement to create the multiple forms in a single page for
>> a model.
>> 2.So i created the formset using modelformset_factory.
>> 3.I have 2 models.
>> a)ModelRegister b)ModelGSPRequest. 4.ModelGSPRequest has a field named
>> registered_model which is a foreignKey to ModelRegister. 5.But after i
>> input all the fields for a modelformset and click on submit to save. I am
>> facing below error with the foreign key field.
>>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/9d67053f-c0e1-4f68-b875-7886b62ea5fd%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+unsubscr...@googlegroups.com.
To view this 

Re: Production deployments and Version Control for DJango projects

2020-02-15 Thread Kasper Laudrup

Hi Aldian,

On 15/02/2020 05.57, Aldian Fazrihady wrote:

Try ansible-playbook



That's exactly what Ansible was designed for, so I agree that this would 
be the obvious route to go.


No reason not to use git for source control and then Ansible to automate 
the deployment.


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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3bb1d4ef-5c6e-4c78-756c-908e4f17d073%40stacktrace.dk.


Re: Production deployments and Version Control for DJango projects

2020-02-15 Thread Kasper Laudrup

Hi Sam,

On 15/02/2020 05.58, Sam Hefer wrote:

Bitbucket is great if you don’t like Git env. It has a great interface.



Bitbucket is more or less a web frontend to git, so it can hardly be 
regarded as an alternative to git.


But I agree that the git command line interface isn't exactly the most 
user friendly so some kind of frontend can often be very helpful.


That's hardly related to the original question though.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c51633b4-3536-6dfe-e488-082fc7c6b882%40stacktrace.dk.