Re: help

2020-06-23 Thread Peter Kirieny
yes, postgres

On Mon, 22 Jun 2020 at 19:04, Jatin Agrawal  wrote:

> Are you using postgres?
>
> On Monday, June 22, 2020 at 8:34:55 PM UTC+5:30, Peter Kirieny wrote:
>>
>> can someone help with this please
>>
>> django.db.utils.OperationalError: FATAL:  password authentication failed
>> for user "Admin"
>>
> --
> 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/cea920f9-7c3d-4eb7-89fc-c61135652807o%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/CAL8t8er20JjYX3oNnZRCeLwe5nyZODgqDsTYpixgYK33ZfLYew%40mail.gmail.com.


Re: help

2020-06-23 Thread meera gangani
DATABASES = {'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'my_local_db',
'USER': 'admin',
'PASSWORD': 'mypassword',
'HOST': 'localhost',}

Otherwise

'USERNAME': 'admin',

You can try both !

On Tue, Jun 23, 2020 at 2:21 PM Peter Kirieny 
wrote:

> yes, postgres
>
> On Mon, 22 Jun 2020 at 19:04, Jatin Agrawal  wrote:
>
>> Are you using postgres?
>>
>> On Monday, June 22, 2020 at 8:34:55 PM UTC+5:30, Peter Kirieny wrote:
>>>
>>> can someone help with this please
>>>
>>> django.db.utils.OperationalError: FATAL:  password authentication failed
>>> for user "Admin"
>>>
>> --
>> 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/cea920f9-7c3d-4eb7-89fc-c61135652807o%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/CAL8t8er20JjYX3oNnZRCeLwe5nyZODgqDsTYpixgYK33ZfLYew%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/CANaPPPLDFEAQ3ZKnEtA7Os5926L7ZOdO0i%2B%2BwkFKgaDgfT1cSg%40mail.gmail.com.


Re: help

2020-06-23 Thread Peter Kirieny
thank you
how do i activate virtual environment please?

On Tue, 23 Jun 2020 at 12:45, meera gangani 
wrote:

> DATABASES = {'default': {
> 'ENGINE': 'django.db.backends.postgresql_psycopg2',
> 'NAME': 'my_local_db',
> 'USER': 'admin',
> 'PASSWORD': 'mypassword',
> 'HOST': 'localhost',}
>
> Otherwise
>
> 'USERNAME': 'admin',
>
> You can try both !
>
> On Tue, Jun 23, 2020 at 2:21 PM Peter Kirieny 
> wrote:
>
>> yes, postgres
>>
>> On Mon, 22 Jun 2020 at 19:04, Jatin Agrawal 
>> wrote:
>>
>>> Are you using postgres?
>>>
>>> On Monday, June 22, 2020 at 8:34:55 PM UTC+5:30, Peter Kirieny wrote:

 can someone help with this please

 django.db.utils.OperationalError: FATAL:  password authentication
 failed for user "Admin"

>>> --
>>> 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/cea920f9-7c3d-4eb7-89fc-c61135652807o%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/CAL8t8er20JjYX3oNnZRCeLwe5nyZODgqDsTYpixgYK33ZfLYew%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/CANaPPPLDFEAQ3ZKnEtA7Os5926L7ZOdO0i%2B%2BwkFKgaDgfT1cSg%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/CAL8t8eri9mPL2Lix1ZP592AiFqoj8xF2x7Ud_m2g%3DrdCF3sjOg%40mail.gmail.com.


Re: help

2020-06-23 Thread Kasper Laudrup

Hi Peter,

On 23/06/2020 13.15, Peter Kirieny wrote:

thank you
how do i activate virtual environment please?



https://hostadvice.com/how-to/how-to-create-a-virtual-environment-for-your-django-projects-using-virtualenv/

Was the first result I could find on a Google search.

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/e2af77bb-275e-e52b-6730-c72526825ebe%40stacktrace.dk.


Re: Project Collaboration Team

2020-06-23 Thread Ali Murtuza
I am intrested

On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya 
wrote:

> Hello Everyone,
> I want to make a team in which we will make some very good level projects
> together. These projects will be very helpful in our interview as well.
> Must have prior knowledge about Django/Python. We will do daily meetings
> and discuss our project and we will use Github to team collaborations . If
> someone is interested to join this team please email me on
> shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CA%2BGgMvUBTNo8i7m4M97UG7f201PvMHk%3Dt0JQhBVHZPJbWWk%2BcA%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Famzaa
interested in this...

On Tue, Jun 23, 2020 at 5:20 PM Ali Murtuza  wrote:

> I am intrested
>
> On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya <
> shubhanshuarya...@gmail.com> wrote:
>
>> Hello Everyone,
>> I want to make a team in which we will make some very good level projects
>> together. These projects will be very helpful in our interview as well.
>> Must have prior knowledge about Django/Python. We will do daily meetings
>> and discuss our project and we will use Github to team collaborations . If
>> someone is interested to join this team please email me on
>> shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CA%2BGgMvUBTNo8i7m4M97UG7f201PvMHk%3Dt0JQhBVHZPJbWWk%2BcA%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/CAMLTewmAKrnNvJAcgwLO16ZTtMPhOLs3yxBHWT_YHhr%3DOAgamA%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Deepti sharma
Interested.

On Tue, Jun 23, 2020 at 9:58 AM Famzaa  wrote:

> interested in this...
>
> On Tue, Jun 23, 2020 at 5:20 PM Ali Murtuza 
> wrote:
>
>> I am intrested
>>
>> On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya <
>> shubhanshuarya...@gmail.com> wrote:
>>
>>> Hello Everyone,
>>> I want to make a team in which we will make some very good level
>>> projects together. These projects will be very helpful in our interview as
>>> well. Must have prior knowledge about Django/Python. We will do daily
>>> meetings and discuss our project and we will use Github to team
>>> collaborations . If someone is interested to join this team please email me
>>> on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CA%2BGgMvUBTNo8i7m4M97UG7f201PvMHk%3Dt0JQhBVHZPJbWWk%2BcA%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/CAMLTewmAKrnNvJAcgwLO16ZTtMPhOLs3yxBHWT_YHhr%3DOAgamA%40mail.gmail.com
> 
> .
>
-- 
Regards
Deepti Sharma
Blog: https://deepti96.wordpress.com/
Github: https://github.com/dsdeeptisharma
Gitlab: https://gitlab.com/u/dsdeepti
"Great works are not performed by strength but by perseverance"

-- 
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/CAJOjMFf_JhbCrgmcjfO2AD7fNWwo7fkD9Q6urNC%3DSgb8-K25ag%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread mohamed khaled
I hope that too we can create team together and add
Deepti sharma
Famzaa
Ali Murtuza

On Tue, 23 Jun 2020 at 16:00, Deepti sharma 
wrote:

> Interested.
>
> On Tue, Jun 23, 2020 at 9:58 AM Famzaa  wrote:
>
>> interested in this...
>>
>> On Tue, Jun 23, 2020 at 5:20 PM Ali Murtuza 
>> wrote:
>>
>>> I am intrested
>>>
>>> On Tue, 23 Jun 2020 at 9:14 AM, Shubhanshu Arya <
>>> shubhanshuarya...@gmail.com> wrote:
>>>
 Hello Everyone,
 I want to make a team in which we will make some very good level
 projects together. These projects will be very helpful in our interview as
 well. Must have prior knowledge about Django/Python. We will do daily
 meetings and discuss our project and we will use Github to team
 collaborations . If someone is interested to join this team please email me
 on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CA%2BGgMvUBTNo8i7m4M97UG7f201PvMHk%3Dt0JQhBVHZPJbWWk%2BcA%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/CAMLTewmAKrnNvJAcgwLO16ZTtMPhOLs3yxBHWT_YHhr%3DOAgamA%40mail.gmail.com
>> 
>> .
>>
> --
> Regards
> Deepti Sharma
> Blog: https://deepti96.wordpress.com/
> Github: https://github.com/dsdeeptisharma
> Gitlab: https://gitlab.com/u/dsdeepti
> "Great works are not performed by strength but by perseverance"
>
> --
> 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/CAJOjMFf_JhbCrgmcjfO2AD7fNWwo7fkD9Q6urNC%3DSgb8-K25ag%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/CALvPq4KS%2B9D9UwH_NWidAZ1pCa1m%2BCGE2NrEVZ0Tp0Le54nwLw%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Desh Deepak
Interested

On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, 
wrote:

> Hello Everyone,
> I want to make a team in which we will make some very good level projects
> together. These projects will be very helpful in our interview as well.
> Must have prior knowledge about Django/Python. We will do daily meetings
> and discuss our project and we will use Github to team collaborations . If
> someone is interested to join this team please email me on
> shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread yashwanth .k
I am interested... my Medium publication on Django ---
https://medium.com/django-launcher. Regards. Looking forward to
contributing to your projects.

On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak  wrote:

> Interested
>
> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, 
> wrote:
>
>> Hello Everyone,
>> I want to make a team in which we will make some very good level projects
>> together. These projects will be very helpful in our interview as well.
>> Must have prior knowledge about Django/Python. We will do daily meetings
>> and discuss our project and we will use Github to team collaborations . If
>> someone is interested to join this team please email me on
>> shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%40mail.gmail.com.


Re: Populate choices from existing values in a model field

2020-06-23 Thread Patrick Carra
I'm not directly modifying any code in a .py file I am simply adding a 
value to the database table but I am unable to see the change reflected in 
my drop down lists until I restart the server.  Is there a better way of 
populating choices for my drop down menu?  Or could I simply add a cron job 
that restarts the server periodically(this seems like not a great solution).

On Saturday, June 20, 2020 at 8:39:03 AM UTC-5, Integr@te System wrote:
>
> Hi Patrick,
>
> Plz review for your suitable case:
> https://stackoverflow.com/questions/3742734/django-restart-server-or-httpd
>
> Nice.
>
> On Sat, Jun 20, 2020, 1:32 AM Patrick Carra  > wrote:
>
>> I am trying to read distinct values from a model field and use the tuple 
>> list to populate the choices in a Form.  The problem I have is that every 
>> time a new value is added I must reset the httpd server in order to include 
>> the new value in the form.  I have researched and tried this a few 
>> different ways but so far am unable to come up with a better solution. Any 
>> ideas?
>>
>> *models.py*
>> class Circuitinfotable(models.Model):
>> id1 = models.IntegerField(primary_key=True, blank=True,null=False,
>> unique=True)
>> pathname = models.CharField(max_length=255, blank=True, null=True)
>> segmentname = models.CharField(max_length=255, blank=True, null=True)
>> region = models.CharField(max_length=255, blank=True, null=True)
>>
>>
>>
>>
>>
>> *forms.py*
>> def getList(item_list, keyValue):
>> valueList=[]
>> for each in item_list:
>> valueList.append(each[keyValue])
>> return valueList
>>
>> def listCreator(field, query):
>> newList_query = getList(query, field)
>> sorted_newList = sorted(getUnique(newList_query))
>> sorted_newList.insert(0, ("", ""))
>> return sorted_newList
>>
>>
>> class CircuitinfotableForm(ModelForm):
>>
>>
>> class Meta:
>> pathlistQuery = Circuitinfotable.objects.all().values('pathname'
>> ).exclude(pathname=None).exclude(pathname='None')
>> path_list = listCreator('pathname', pathlistQuery)
>>
>>
>> model = Circuitinfotable
>> fields = ['circuitid', 'pathname', 'segmentname', 'region']
>> widgets = {'circuitid': forms.TextInput(attrs={'size':40}), 
>> 'pathname': forms.Select(choices=path_list), 'segmentname': forms.Select(
>> choices=segment_list),
>>'region':  forms.Select(choices=region_list)}
>>
>> I shortened this code to only include some of the relevant fields and 
>> code for brevity.  Here I created two functions to create a list of tuples 
>> for pathname from the values I retrieve using a query and pass it to the 
>> Select widget using choices.
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/b63b6f32-0040-42ee-9021-e45657e9caf7o%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/66b8fce5-43c6-48a6-a873-2527bdf2b126o%40googlegroups.com.


Re: Project Collaboration Team

2020-06-23 Thread Shubhanshu Arya
Okay, Please join this group. https://t.me/joinchat/AEjSR4Dgtjuw8-Cs3Q

On Tue, Jun 23, 2020 at 7:49 PM yashwanth .k 
wrote:

> I am interested... my Medium publication on Django ---
> https://medium.com/django-launcher. Regards. Looking forward to
> contributing to your projects.
>
> On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
> wrote:
>
>> Interested
>>
>> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
>> shubhanshuarya...@gmail.com> wrote:
>>
>>> Hello Everyone,
>>> I want to make a team in which we will make some very good level
>>> projects together. These projects will be very helpful in our interview as
>>> well. Must have prior knowledge about Django/Python. We will do daily
>>> meetings and discuss our project and we will use Github to team
>>> collaborations . If someone is interested to join this team please email me
>>> on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAFnUNrg4jOcY6wQafpXL7e%2BttDekGf_TArDtspbPvudCS2T3YQ%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread sachinbg sachin
i am interested

On Tue, 23 Jun 2020 at 19:49, yashwanth .k  wrote:

> I am interested... my Medium publication on Django ---
> https://medium.com/django-launcher. Regards. Looking forward to
> contributing to your projects.
>
> On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
> wrote:
>
>> Interested
>>
>> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
>> shubhanshuarya...@gmail.com> wrote:
>>
>>> Hello Everyone,
>>> I want to make a team in which we will make some very good level
>>> projects together. These projects will be very helpful in our interview as
>>> well. Must have prior knowledge about Django/Python. We will do daily
>>> meetings and discuss our project and we will use Github to team
>>> collaborations . If someone is interested to join this team please email me
>>> on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAOs61rzehdWqt_u_kWU7iH9_d6tTW8A4PwqrHe90tbfnYiOB4Q%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Shubhanshu Arya
Okay, Please join this group. https://t.me/joinchat/AEjSR4Dgtjuw8-Cs3Q

On Tue, Jun 23, 2020 at 8:00 PM sachinbg sachin 
wrote:

> i am interested
>
> On Tue, 23 Jun 2020 at 19:49, yashwanth .k 
> wrote:
>
>> I am interested... my Medium publication on Django ---
>> https://medium.com/django-launcher. Regards. Looking forward to
>> contributing to your projects.
>>
>> On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
>> wrote:
>>
>>> Interested
>>>
>>> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
>>> shubhanshuarya...@gmail.com> wrote:
>>>
 Hello Everyone,
 I want to make a team in which we will make some very good level
 projects together. These projects will be very helpful in our interview as
 well. Must have prior knowledge about Django/Python. We will do daily
 meetings and discuss our project and we will use Github to team
 collaborations . If someone is interested to join this team please email me
 on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAOs61rzehdWqt_u_kWU7iH9_d6tTW8A4PwqrHe90tbfnYiOB4Q%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/CAFnUNriJ6vrXAB1dtNPKTqJGKppLV-Gm9bOj087OWT_O9AhwRg%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Kunal Solanke
Yup.I am intrested.

On Tue, Jun 23, 2020, 09:44 Shubhanshu Arya 
wrote:

> Hello Everyone,
> I want to make a team in which we will make some very good level projects
> together. These projects will be very helpful in our interview as well.
> Must have prior knowledge about Django/Python. We will do daily meetings
> and discuss our project and we will use Github to team collaborations . If
> someone is interested to join this team please email me on
> shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAOecAnx8AG947gUv2RB9m7_0Dh-bHFqX8A6SGbRzpcAn6dpckw%40mail.gmail.com.


Re: Project Collaboration Team

2020-06-23 Thread Saikat Pandit
I'm interested too.

On Tuesday, June 23, 2020 at 9:43:46 AM UTC+5:30, Shubhanshu Arya wrote:
>
> Hello Everyone, 
> I want to make a team in which we will make some very good level projects 
> together. These projects will be very helpful in our interview as well. 
> Must have prior knowledge about Django/Python. We will do daily meetings 
> and discuss our project and we will use Github to team collaborations . If 
> someone is interested to join this team please email me on 
> shubhans...@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/f0ab091d-59cc-4a1e-a345-bf5281cefae6o%40googlegroups.com.


Re: Project Collaboration Team

2020-06-23 Thread Ali Murtuza
The link is not working

On Tue, 23 Jun 2020 at 7:31 PM, Shubhanshu Arya 
wrote:

> Okay, Please join this group. https://t.me/joinchat/AEjSR4Dgtjuw8-Cs3Q
>
>
> On Tue, Jun 23, 2020 at 8:00 PM sachinbg sachin 
> wrote:
>
>> i am interested
>>
>> On Tue, 23 Jun 2020 at 19:49, yashwanth .k 
>> wrote:
>>
>>> I am interested... my Medium publication on Django ---
>>> https://medium.com/django-launcher. Regards. Looking forward to
>>> contributing to your projects.
>>>
>>> On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
>>> wrote:
>>>
 Interested

 On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
 shubhanshuarya...@gmail.com> wrote:

> Hello Everyone,
> I want to make a team in which we will make some very good level
> projects together. These projects will be very helpful in our interview as
> well. Must have prior knowledge about Django/Python. We will do daily
> meetings and discuss our project and we will use Github to team
> collaborations . If someone is interested to join this team please email 
> me
> on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAOs61rzehdWqt_u_kWU7iH9_d6tTW8A4PwqrHe90tbfnYiOB4Q%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/CAFnUNriJ6vrXAB1dtNPKTqJGKppLV-Gm9bOj087OWT_O9AhwRg%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/CA%2BGgMvXbEAOeucNLmevqkAi6Bkt2OvGCBDZ6%3DcE-RtDzhBJo-w%40mail.gmail.com.


Re: how to fetch data into a template (table)

2020-06-23 Thread Faith Mwai
Am querying from a table already in production and need data to be real 
time hence the reason of using the raw sql.
Let me modify and see whether it works

On Monday, June 22, 2020 at 10:03:22 PM UTC+3, larry@gmail.com wrote:
>
> On Sat, Jun 20, 2020 at 11:41 AM Faith Mwai  > wrote: 
> > 
> > Am having a challenge of displaying data into my template table, the 
> function is; 
> > 
> > def customers(request): 
> > if request.method == 'POST': 
> > accountno = request.POST['accountno'] 
> > id= request.POST['id'] 
> > Mobilenumber = request.POST['Mobilenumber'] 
> > cursor = con.cursor() 
> > querystring = ("Select Messages, amount, date from Accounts where 
> accountno = 'accountno' or Mobilenumber = 'Mobilenumber' ") 
> > 
> > cursor.execute(querystring) 
> > 
> > rows = cursor.fetchall() 
> > context = {'querystring': querystring} 
> > con.close() 
> > if cursor.rowcount == 0: 
> > return render(request,'kplcapp/customers.html', context) 
> > else: 
> > rows = cursor.fetchall() 
> > return render('kplcapp/customers.html', context) 
> > return render(request, 'kplcapp/customers.html', context) 
> > 
> > if 'print' in request.form: 
> > df = pd.DataFrame(result) 
> > df.to_excel(r"C:\Users\Public\Documents\data3.xlsx") 
> > else: 
> > return render(request, 'kplcapp/customers.html', context) 
>
> Why are you using raw SQL for such a simple query. In any case you 
> need to replace the strings with the variables. 
>
>  querystring = ("Select Messages, amount, date from Accounts where 
> accountno = '%s' or Mobilenumber = '%s' " % (accountno, Mobilenumber)) 
>

-- 
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/0f626f4f-0067-4fd1-a015-2c5493a9ecc9o%40googlegroups.com.


Re: Project Collaboration Team

2020-06-23 Thread mohamed khaled
it's not good way to create a telegram group that doesn't one can type or
send a message

On Tue, 23 Jun 2020 at 16:33, Ali Murtuza  wrote:

> The link is not working
>
> On Tue, 23 Jun 2020 at 7:31 PM, Shubhanshu Arya <
> shubhanshuarya...@gmail.com> wrote:
>
>> Okay, Please join this group.
>> https://t.me/joinchat/AEjSR4Dgtjuw8-Cs3Q
>>
>> On Tue, Jun 23, 2020 at 8:00 PM sachinbg sachin <
>> sachinbgsach...@gmail.com> wrote:
>>
>>> i am interested
>>>
>>> On Tue, 23 Jun 2020 at 19:49, yashwanth .k 
>>> wrote:
>>>
 I am interested... my Medium publication on Django ---
 https://medium.com/django-launcher. Regards. Looking forward to
 contributing to your projects.

 On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
 wrote:

> Interested
>
> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
> shubhanshuarya...@gmail.com> wrote:
>
>> Hello Everyone,
>> I want to make a team in which we will make some very good level
>> projects together. These projects will be very helpful in our interview 
>> as
>> well. Must have prior knowledge about Django/Python. We will do daily
>> meetings and discuss our project and we will use Github to team
>> collaborations . If someone is interested to join this team please email 
>> me
>> on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAOs61rzehdWqt_u_kWU7iH9_d6tTW8A4PwqrHe90tbfnYiOB4Q%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/CAFnUNriJ6vrXAB1dtNPKTqJGKppLV-Gm9bOj087OWT_O9AhwRg%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/CA%2BGgMvXbEAOeucNLmevqkAi6Bkt2OvGCBDZ6%3DcE-RtDzhBJo-w%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

Re: Project Collaboration Team

2020-06-23 Thread yashwanth .k
I am not able to share project idea in this telegram app.

On Tue, Jun 23, 2020 at 7:57 PM Shubhanshu Arya 
wrote:

> Okay, Please join this group. https://t.me/joinchat/AEjSR4Dgtjuw8-Cs3Q
>
>
> On Tue, Jun 23, 2020 at 7:49 PM yashwanth .k 
> wrote:
>
>> I am interested... my Medium publication on Django ---
>> https://medium.com/django-launcher. Regards. Looking forward to
>> contributing to your projects.
>>
>> On Tue, Jun 23, 2020 at 7:38 PM Desh Deepak 
>> wrote:
>>
>>> Interested
>>>
>>> On Tue, 23 Jun 2020, 9:44 am Shubhanshu Arya, <
>>> shubhanshuarya...@gmail.com> wrote:
>>>
 Hello Everyone,
 I want to make a team in which we will make some very good level
 projects together. These projects will be very helpful in our interview as
 well. Must have prior knowledge about Django/Python. We will do daily
 meetings and discuss our project and we will use Github to team
 collaborations . If someone is interested to join this team please email me
 on shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%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/CAJ0m4xhED5x9s1RQGQPC5fzZ_46sqU3ATVeeZ3k%3DaTq1PpctaA%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/CALgTQA%2BoZ1pnvnzUHGyf8ALpRp8W5ogrPwLOkTPX3SLKGCApwQ%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/CAFnUNrg4jOcY6wQafpXL7e%2BttDekGf_TArDtspbPvudCS2T3YQ%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/CALgTQAK2BtvE3P4wJA%3D37dj-U-uHrFEGTo%2Bpmy%3DV1wBpsw_n-Q%40mail.gmail.com.


Custom Primary Key

2020-06-23 Thread Soumen Khatua
Hi Folks,

In Django is there any way to create custom Primark Key like:
M01234GH, M056YUOIP, etc.

Please help me guys.

Thank you in advance

Regards,
Soumen Khatua

-- 
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/CAPUw6WbZ_nrXgk%3DufWfq39%2BZJmN-nmF0DzeuFK9tqgFW-Os3vQ%40mail.gmail.com.


Re: Custom Primary Key

2020-06-23 Thread David Chorpash
Hi Soumen,

Are you looking for this?
https://docs.djangoproject.com/en/3.0/ref/models/fields/#primary-key

You should be able to create a field in your model and set the primary_key
to True


On Tue, Jun 23, 2020 at 1:18 PM Soumen Khatua 
wrote:

> Hi Folks,
>
> In Django is there any way to create custom Primark Key like:
> M01234GH, M056YUOIP, etc.
>
> Please help me guys.
>
> Thank you in advance
>
> Regards,
> Soumen Khatua
>
> --
> 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/CAPUw6WbZ_nrXgk%3DufWfq39%2BZJmN-nmF0DzeuFK9tqgFW-Os3vQ%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/CAL_O_N%2Bg167k9EsJ0z5Gc_EYfWJSWrJrdECY5zwfAfc1Rn_M1g%40mail.gmail.com.


Re: Custom Primary Key

2020-06-23 Thread Soumen Khatua
In the documentation they are specified, How to set Primary Key in Django
model but In my case, I want to generate custom Primary Key?!

On Wed, Jun 24, 2020 at 1:36 AM David Chorpash 
wrote:

> Hi Soumen,
>
> Are you looking for this?
> https://docs.djangoproject.com/en/3.0/ref/models/fields/#primary-key
>
> You should be able to create a field in your model and set the primary_key
> to True
>
>
> On Tue, Jun 23, 2020 at 1:18 PM Soumen Khatua 
> wrote:
>
>> Hi Folks,
>>
>> In Django is there any way to create custom Primark Key like:
>> M01234GH, M056YUOIP, etc.
>>
>> Please help me guys.
>>
>> Thank you in advance
>>
>> Regards,
>> Soumen Khatua
>>
>> --
>> 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/CAPUw6WbZ_nrXgk%3DufWfq39%2BZJmN-nmF0DzeuFK9tqgFW-Os3vQ%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/CAL_O_N%2Bg167k9EsJ0z5Gc_EYfWJSWrJrdECY5zwfAfc1Rn_M1g%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/CAPUw6WaryW%3DkdyRxSdTGa73ggd6r43FU4gH0vD8TfCwtZXxk7A%40mail.gmail.com.


Re: Manage.py not working

2020-06-23 Thread Oleg Kishenkov
Hello, please follow this 
tutorial https://www.jetbrains.com/help/pycharm/creating-django-project.html, 
instead of MyDjangoProject type test1. Make sure a virtual environment is 
created for your project (step 1). Then go to Tools -> Run manage.py Task 
(or press Ctrl+Alt+r), type startapp app1 in the manage.py@test1 window and 
press Enter.

Oleg

-- 
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/9b0181c8-960d-49bb-8860-f8cf52b9273dn%40googlegroups.com.


Re: Custom Primary Key

2020-06-23 Thread Oleg Kishenkov
Hello Soumen, you should use a CharField with the primary_key=True 
attribute for your model. This way no no automatic primary key field is 
generated, your field will be implicitly unique and non-null though. Only 
one primary key is allowed in a model.

class Foo(models.Model)
id = models.CharField(max_length=15, primary_key=True)

Regards,
Oleg

-- 
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/ab8fa10c-dcc4-4b53-ad6c-be04d59affe3n%40googlegroups.com.


Django Reference Manual on what classes can be used with views, urls, etc...

2020-06-23 Thread Dennis Triplett


I have been looking for a Django Reference Manual to let me know what classes, 
or Djanago tools

are allowed in its calling syntax...  Example


from django.urls import path
from MyApplication import views


What I am looking for is an explanation of what things can be imported with 
URLS, VIEWS, HTTP 

There are other classes each can use, but I have not been able to find any 
source or book 

that outlines all the classes or commands that can be used in Django statements 
using...

 From django.xxx import.yyy.


I hope I am making myself understood.


Does anyone have suggestions on sites, documents, or books that I can use as a 
reference source?


Thanks in advance for fielding my newbie question.


-- 
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/4b0e3b5e-3846-49eb-b626-d077ec00776ao%40googlegroups.com.


Re: Custom Primary Key

2020-06-23 Thread Clive Bruton



On 23 Jun 2020, at 23:32, Oleg Kishenkov wrote:

Hello Soumen, you should use a CharField with the primary_key=True  
attribute for your model. This way no no automatic primary key  
field is generated, your field will be implicitly unique and non- 
null though. Only one primary key is allowed in a model.


class Foo(models.Model)
id = models.CharField(max_length=15, primary_key=True)


Just to clarify this, are you indicating that when you create the  
record you generate a unique custom key yourself and insert this?



-- Clive

--
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/E9317D0D-0A25-48CE-9396-5FB181075045%40indx.co.uk.


Oracle 12.0.1 admin not working with django 3+

2020-06-23 Thread ashish goyal
Ho All,

Have created lot of stuff in app, when i try login to admin with superuser name 
and password it shows integrity issue. And there is no row in django_admin_log.
On some posts i found this is an issue with django 3+ version which i am using.

How can i resolve this without hampering my existing code?

Thanks
Ashish

-- 
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/F37ADD66-7F26-4555-8605-2B8359968947%40gmail.com.


Re: Custom Primary Key

2020-06-23 Thread Soumen Khatua
Yes, at the time of add a new record in model, automatically I want to
create a custom ID and insert it into model

On Wed 24 Jun, 2020, 7:18 AM Clive Bruton,  wrote:

>
> On 23 Jun 2020, at 23:32, Oleg Kishenkov wrote:
>
> > Hello Soumen, you should use a CharField with the primary_key=True
> > attribute for your model. This way no no automatic primary key
> > field is generated, your field will be implicitly unique and non-
> > null though. Only one primary key is allowed in a model.
> >
> > class Foo(models.Model)
> > id = models.CharField(max_length=15, primary_key=True)
>
> Just to clarify this, are you indicating that when you create the
> record you generate a unique custom key yourself and insert this?
>
>
> -- Clive
>
> --
> 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/E9317D0D-0A25-48CE-9396-5FB181075045%40indx.co.uk
> .
>

-- 
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/CAPUw6Wb2dEug6QeRrO5hdxTJV-4v4OzkrDajqTV7UNm8q9vGFg%40mail.gmail.com.


Re: help

2020-06-23 Thread Robert Rajendra
to configure virtual environment
1. python -m pip install virtualenv
2. go to project folder and type:- virtualenv 
3. source /bin/activate
4. Once it is activated you will see the name of your project in the left
corner of your terminal enclosed within ()
5. pip install 
6. make sure to create a requirements.txt file after finishing the project
so that you can Deploy and install the dependencies into the server as well

thanks

On Tue, 23 Jun 2020 at 17:05, Kasper Laudrup  wrote:

> Hi Peter,
>
> On 23/06/2020 13.15, Peter Kirieny wrote:
> > thank you
> > how do i activate virtual environment please?
> >
>
>
> https://hostadvice.com/how-to/how-to-create-a-virtual-environment-for-your-django-projects-using-virtualenv/
>
> Was the first result I could find on a Google search.
>
> 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/e2af77bb-275e-e52b-6730-c72526825ebe%40stacktrace.dk
> .
>


-- 

*Robert Rajendra*

Associate Network/Server Support Engineer

ITH

P: +91 863.087.3094 <+91%2086308%2073094>

W: www.ITHands.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/CABbC_KH%3D4E2DaBb%3DovW9-hDBLgV2gBr%3Dax0ycktNFDtNtxtoZw%40mail.gmail.com.


Re: help

2020-06-23 Thread RaviKiran Kk
Hello All,

Any one used django for IoT applications?

Regards
Ravi

On Wed, Jun 24, 2020 at 11:06 AM Robert Rajendra <
robert.rajen...@ithands.biz> wrote:

> to configure virtual environment
> 1. python -m pip install virtualenv
> 2. go to project folder and type:- virtualenv 
> 3. source /bin/activate
> 4. Once it is activated you will see the name of your project in the left
> corner of your terminal enclosed within ()
> 5. pip install 
> 6. make sure to create a requirements.txt file after finishing the project
> so that you can Deploy and install the dependencies into the server as well
>
> thanks
>
> On Tue, 23 Jun 2020 at 17:05, Kasper Laudrup 
> wrote:
>
>> Hi Peter,
>>
>> On 23/06/2020 13.15, Peter Kirieny wrote:
>> > thank you
>> > how do i activate virtual environment please?
>> >
>>
>>
>> https://hostadvice.com/how-to/how-to-create-a-virtual-environment-for-your-django-projects-using-virtualenv/
>>
>> Was the first result I could find on a Google search.
>>
>> 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/e2af77bb-275e-e52b-6730-c72526825ebe%40stacktrace.dk
>> .
>>
>
>
> --
>
> *Robert Rajendra*
>
> Associate Network/Server Support Engineer
>
> ITH
>
> P: +91 863.087.3094 <+91%2086308%2073094>
>
> W: www.ITHands.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/CABbC_KH%3D4E2DaBb%3DovW9-hDBLgV2gBr%3Dax0ycktNFDtNtxtoZw%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/CAPEfQMSLSera%3DXHtR4mLYdQzjJiTdk4jq%3DGz2GJh30%2BZcCjaDQ%40mail.gmail.com.