AutoField & auto-incrementing

2020-02-11 Thread Bruckner de Villiers
Jason,

Thank you.  I have changed the title of this mail.  If I have read the 10 year 
old ticket 8576 correctly, it seems to be a DB restriction and I imagine that 
there are good reasons for this.  However, then I don’t understand the purpose 
of the AutoField given the restrictions and that the Django documentation is 
somewhat ambiguous/vague.

 

The options seem to be:
Your uuid suggestion (which I have never worked with, but will explore)
a function in the model that does the incrementing before committing – (anyone 
have some example code for this?).  The challenge would be to keep track of the 
last used ticket no.  I haven’t thought this through yet, but it does occur to 
me that one could use the id (maybe prefix the id with some starting digits) 
and write the record twice.  Probably barking up the wrong tree.
Regards,

 

Bruckner de Villiers

+27 83 625 1086

 

From:  on behalf of Jason 
Reply to: 
Date: Monday, 10 February 2020 at 14:55
To: Django users 
Subject: Re: Adding a verbose_name to id field

 

Hmm.  TIL about https://code.djangoproject.com/ticket/8576

 

Would a a uuid for this, rather than an integer?  If not, you'll have to 
implement a save override to handle the incrementing yourself.

 

In addition, it might be worthwhile bringing this ticket up for discussion at 
https://groups.google.com/forum/#!forum/django-developers

-- 
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/dc686528-0a8d-43ff-9973-d478cc765959%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/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com.


Re: Django server is slow after moving database to remote VM

2020-02-11 Thread Simen Russnes
Yes, I'm able to get speeds of at least 1500KB/sec between the two, but it only 
really happens when I do large queries like mysqldump for example. Most of the 
time it's at around 300KB/s or less.

On 2/10/20 4:36 PM, Jody Fitzpatrick wrote:
Are the VM's within the same network/hosting company?

On Mon, Feb 10, 2020 at 8:38 AM Simen Russnes 
mailto:si...@bio-me.com>> wrote:
Ever since I separated my server running the Django code (2.2.9), and my
MariaDB server (10.3), there has been a significant lag increase in my
application.

I've tried to limit the number of explicit requests to the server as the
round trip of opening and closing a connection now is obviously going to
be slower, but I've noticed that even when doing things like accessing a
standard ViewSet, serializing a Model the database can be very slow. One
thing in particular that got me worried is that when monitoring the
network traffic, I can see simultaneous upload and download speeds, when
I would expect only a very small sql request being uploaded, but still a
bigger download speed.

Are there any general recommendations I should consider implementing?

--

Regards,

Simen


--
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/2b0e74fb-eb03-1ddf-b77a-893a06e8aac4%40bio-me.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%2B_%2B3iknrTb8h%3DdbgRrrLmKawHYztn7i5qOEgmijtnfxRUKhZw%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/91b85a42-cea7-8b49-506a-a34208489d5c%40bio-me.com.


More than 3 modelforms in inlineformsets

2020-02-11 Thread Zameer Ahmed
Hi,
I have a situation where I need to have more than 3 nested forms for a
model with Foreignkey with child models. Can someone please point me in the
right direction because I've been trying this from last couple of days now.
I can make it work with 1 parent and 2-3 child but not further than that.

Regards,

Zaheer

-- 
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/CAAUw0KqdU_NdgEnUssX-bS3NiX%3Dqz%3DB5otzjXF2TTPnsz66XZQ%40mail.gmail.com.


Invalid Literal for int() with base10 error

2020-02-11 Thread Santhosh sridhar


I have a model called Project,

class Project(models.Model):
name = models.CharField(max_length=50, unique=True)
technology = models.ForeignKey(Technology, 
related_name='projects',on_delete=models.CASCADE)
chipName = models.CharField(max_length=50)
is_swarm = models.NullBooleanField(default=0, blank=True, null=True)
p_state = models.ForeignKey(ProjectStage, related_name='projects', 
default=6,on_delete=models.CASCADE)
project_poc = models.TextField()
bto_date = models.DateField(blank=True, null=True)
mto_date = models.DateField(blank=True, null=True)
description = models.CharField(max_length=500, null=True)
last_updated = models.DateTimeField(auto_now_add=True)


def __str__(self):
return self.name

def save(self, *args, **kwargs):
"""
Overriding base save method to set the default values for few fields 
based on user inputs.
"""

if not self.mto_date:
self.mto_date = self.bto_date + timedelta(days=15)

super().save(*args, **kwargs)

In my views.py, I am trying to get Projects.objects.all() but I get this 
error : ValueError: invalid literal for int() with base 10: b'17 
04:47:27.864928'

What could be the issue? I am using Django 2.2.1 and Python 3.6 versions.

-- 
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/507aa871-5f40-4e87-acef-c5871f742767%40googlegroups.com.


Re: installation of django

2020-02-11 Thread Irfan Khan
Are you getting any error messages?

On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
No. Not an error but getting collecting django. After that installation
didn't start

On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:

> Are you getting any error messages?
>
> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
> shukla.paarull...@gmail.com> wrote:
>
>> heloo guys i m not able to install django please help me it .i m facing
>> issue last 10 days . i m getting collecting django after tht installation
>> not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseiB2H%2BLiHpb1itOnTVORctS6LCXtyv9MMoqiq5bqVUEA%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Please help me out. I m trying to install last 4 days back..

On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
wrote:

> No. Not an error but getting collecting django. After that installation
> didn't start
>
> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>
>> Are you getting any error messages?
>>
>> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
>> shukla.paarull...@gmail.com> wrote:
>>
>>> heloo guys i m not able to install django please help me it .i m facing
>>> issue last 10 days . i m getting collecting django after tht installation
>>> not started
>>>
>>> --
>>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseyuaA0HqkWx1cw-mX3d-e6%2BkyjxddmFThCJ%3DgKxjdqiQ%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Naveen Vadavalasa
Try reinstalling python and check if u have proper internet connection.

On Tue, 11 Feb, 2020, 9:53 PM paarull shukla, 
wrote:

> Please help me out. I m trying to install last 4 days back..
>
> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
> wrote:
>
>> No. Not an error but getting collecting django. After that installation
>> didn't start
>>
>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>>
>>> Are you getting any error messages?
>>>
>>> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
>>> shukla.paarull...@gmail.com> wrote:
>>>
 heloo guys i m not able to install django please help me it .i m facing
 issue last 10 days . i m getting collecting django after tht installation
 not started

 --
 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseyuaA0HqkWx1cw-mX3d-e6%2BkyjxddmFThCJ%3DgKxjdqiQ%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/CAL6FTktj%3DeS4QniSZLpfo8OAwNWVms1qdzSZxF8Q7ZkCTB35Bg%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Gregory Vaks
I would try to open new terminal and see if you somehow already have 
django. 

If not try that pip command again - it should work fine but it may have to 
do with your internet connection...I would try to make sure you have a 
stable connection.

On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>
> Please help me out. I m trying to install last 4 days back.. 
>
> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla,  > wrote:
>
>> No. Not an error but getting collecting django. After that installation 
>> didn't start
>>
>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan, > > wrote:
>>
>>> Are you getting any error messages?
>>>
>>> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla >> > wrote:
>>>
 heloo guys i m not able to install django please help me it .i m facing 
 issue last 10 days . i m getting collecting django after tht installation 
 not started

 -- 
 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%40googlegroups.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Sir. I already reinstal python 7 times. But getting same error again and
again. Connection is fine sir

On Tue, 11 Feb, 2020, 9:58 PM Gregory Vaks,  wrote:

> I would try to open new terminal and see if you somehow already have
> django.
>
> If not try that pip command again - it should work fine but it may have to
> do with your internet connection...I would try to make sure you have a
> stable connection.
>
> On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>>
>> Please help me out. I m trying to install last 4 days back..
>>
>> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
>> wrote:
>>
>>> No. Not an error but getting collecting django. After that installation
>>> didn't start
>>>
>>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>>>
 Are you getting any error messages?

 On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
 wrote:

> heloo guys i m not able to install django please help me it .i m
> facing issue last 10 days . i m getting collecting django after tht
> installation not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%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/CACLQzsdLR86jN8FQK92oKV9S7nAy3npLKeN5fb9baKgCb2iSiA%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Internet connection is fine...

On Tue, 11 Feb, 2020, 10:00 PM paarull shukla, 
wrote:

> Sir. I already reinstal python 7 times. But getting same error again and
> again. Connection is fine sir
>
> On Tue, 11 Feb, 2020, 9:58 PM Gregory Vaks,  wrote:
>
>> I would try to open new terminal and see if you somehow already have
>> django.
>>
>> If not try that pip command again - it should work fine but it may have
>> to do with your internet connection...I would try to make sure you have a
>> stable connection.
>>
>> On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>>>
>>> Please help me out. I m trying to install last 4 days back..
>>>
>>> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
>>> wrote:
>>>
 No. Not an error but getting collecting django. After that installation
 didn't start

 On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:

> Are you getting any error messages?
>
> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
> wrote:
>
>> heloo guys i m not able to install django please help me it .i m
>> facing issue last 10 days . i m getting collecting django after tht
>> installation not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%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/CACLQzsc8FKW-t-3%3D7yrzgdhvYsLc4SfPc2B%2BdoCotxsGc3GYhg%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Desh Deepak
Hi,


If you unable install django till now, you can connect your computer with
my computer then i can solve the problem easily.

Or call on +91 7011101001 for more information.



Thank & regards
Desh Deepak
+91 7011101001

On Tue, 11 Feb 2020, 21:58 Gregory Vaks,  wrote:

> I would try to open new terminal and see if you somehow already have
> django.
>
> If not try that pip command again - it should work fine but it may have to
> do with your internet connection...I would try to make sure you have a
> stable connection.
>
> On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>>
>> Please help me out. I m trying to install last 4 days back..
>>
>> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
>> wrote:
>>
>>> No. Not an error but getting collecting django. After that installation
>>> didn't start
>>>
>>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>>>
 Are you getting any error messages?

 On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
 wrote:

> heloo guys i m not able to install django please help me it .i m
> facing issue last 10 days . i m getting collecting django after tht
> installation not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%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/CAJ0m4xh96GcM_K26A2ixGEtjZoYdXAEhWJ6XgQqU_bHA9X0J2A%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Mohammed Alnajdi
it might be blocked by your antivirus.
example i have kaspersky. it block any pip try to install.

On Tue, Feb 11, 2020 at 7:35 PM Desh Deepak  wrote:

> Hi,
>
>
> If you unable install django till now, you can connect your computer with
> my computer then i can solve the problem easily.
>
> Or call on +91 7011101001 for more information.
>
>
>
> Thank & regards
> Desh Deepak
> +91 7011101001
>
> On Tue, 11 Feb 2020, 21:58 Gregory Vaks,  wrote:
>
>> I would try to open new terminal and see if you somehow already have
>> django.
>>
>> If not try that pip command again - it should work fine but it may have
>> to do with your internet connection...I would try to make sure you have a
>> stable connection.
>>
>> On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>>>
>>> Please help me out. I m trying to install last 4 days back..
>>>
>>> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
>>> wrote:
>>>
 No. Not an error but getting collecting django. After that installation
 didn't start

 On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:

> Are you getting any error messages?
>
> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
> wrote:
>
>> heloo guys i m not able to install django please help me it .i m
>> facing issue last 10 days . i m getting collecting django after tht
>> installation not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%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/CAJ0m4xh96GcM_K26A2ixGEtjZoYdXAEhWJ6XgQqU_bHA9X0J2A%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/CAOu2D2vBt0oMCyOgDiV3WD6LJ5DFH9AFKEvwBxgHA-1PFgjZcQ%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Sure I m just waiting for power.. After tht I m connecting.. Please can u
wait for some time


On Tue, 11 Feb, 2020, 10:05 PM Desh Deepak,  wrote:

> Hi,
>
>
> If you unable install django till now, you can connect your computer with
> my computer then i can solve the problem easily.
>
> Or call on +91 7011101001 for more information.
>
>
>
> Thank & regards
> Desh Deepak
> +91 7011101001
>
> On Tue, 11 Feb 2020, 21:58 Gregory Vaks,  wrote:
>
>> I would try to open new terminal and see if you somehow already have
>> django.
>>
>> If not try that pip command again - it should work fine but it may have
>> to do with your internet connection...I would try to make sure you have a
>> stable connection.
>>
>> On Tuesday, February 11, 2020 at 11:24:26 AM UTC-5, paarull shukla wrote:
>>>
>>> Please help me out. I m trying to install last 4 days back..
>>>
>>> On Tue, 11 Feb, 2020, 9:51 PM paarull shukla, 
>>> wrote:
>>>
 No. Not an error but getting collecting django. After that installation
 didn't start

 On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:

> Are you getting any error messages?
>
> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla 
> wrote:
>
>> heloo guys i m not able to install django please help me it .i m
>> facing issue last 10 days . i m getting collecting django after tht
>> installation not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/decc4513-ea84-46b2-91cc-9465d528c191%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/CAJ0m4xh96GcM_K26A2ixGEtjZoYdXAEhWJ6XgQqU_bHA9X0J2A%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/CACLQzscsy84YVi0bWabo9dHqT__nFhDQNbC_3jd0ZEfqP8Tiqw%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Jatin Agrawal
you must first create a virtual environment and activate it and then
install django in that virtual environment. search for how to create a
virtual environment for django projects on the internet.

On Tue, Feb 11, 2020 at 9:43 PM paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.com
> 
> .
>


-- 
+91 9810916435

-- 
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/CABWk0ReWd0NXzHUO9%3Dt_wWOo-ajU2UJ%2BKGMM6Tk7-G8kiLPWcg%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Jatin Agrawal
read the django documentation for installing it.

https://docs.djangoproject.com/en/3.0/topics/install/

On Tue, Feb 11, 2020 at 9:51 PM paarull shukla 
wrote:

> No. Not an error but getting collecting django. After that installation
> didn't start
>
> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>
>> Are you getting any error messages?
>>
>> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
>> shukla.paarull...@gmail.com> wrote:
>>
>>> heloo guys i m not able to install django please help me it .i m facing
>>> issue last 10 days . i m getting collecting django after tht installation
>>> not started
>>>
>>> --
>>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseiB2H%2BLiHpb1itOnTVORctS6LCXtyv9MMoqiq5bqVUEA%40mail.gmail.com
> 
> .
>


-- 
+91 9810916435

-- 
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/CABWk0Rc5Fm%3DS16kvqui6ASkgGh_Au7VCREnft-fMFqAN1BQ%2BoQ%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Jatin Agrawal
you can install some different version of django also instead of 3.0

On Tue, Feb 11, 2020 at 9:53 PM Jatin Agrawal  wrote:

> read the django documentation for installing it.
>
> https://docs.djangoproject.com/en/3.0/topics/install/
>
> On Tue, Feb 11, 2020 at 9:51 PM paarull shukla <
> shukla.paarull...@gmail.com> wrote:
>
>> No. Not an error but getting collecting django. After that installation
>> didn't start
>>
>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>>
>>> Are you getting any error messages?
>>>
>>> On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
>>> shukla.paarull...@gmail.com> wrote:
>>>
 heloo guys i m not able to install django please help me it .i m facing
 issue last 10 days . i m getting collecting django after tht installation
 not started

 --
 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseiB2H%2BLiHpb1itOnTVORctS6LCXtyv9MMoqiq5bqVUEA%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> +91 9810916435
>


-- 
+91 9810916435

-- 
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/CABWk0ReSy5sgTbTwzJ2Q992DrVnUBpsu%3DVs1wyrX8do7W5e%2B%3Dg%40mail.gmail.com.


Re: Invalid Literal for int() with base10 error

2020-02-11 Thread Sunil H N
Hi Santhosh,

The error is not coming in Projects.objects.all(). The error is occurring when 
you trying to convert some value to by int() but that value is not able to 
convert to int. Please check your logic once.

Regards,

Sunil H N
sunil.kann...@gmail.com 
-sent from MacBook Air











> On 11-Feb-2020, at 19:27, Santhosh sridhar  wrote:
> 
> Projects.objects.all()

-- 
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/15A777E7-B45F-4570-B21B-9B7C5E7DAD7F%40gmail.com.


Re: installation of django

2020-02-11 Thread Jatin Agrawal
you must first create a virtual environment and activate it and then 
install django in that virtual environment. search for how to create a 
virtual environment for django projects on the internet.

On Tuesday, February 11, 2020 at 9:44:28 PM UTC+5:30, paarull shukla wrote:
>
> heloo guys i m not able to install django please help me it .i m facing 
> issue last 10 days . i m getting collecting django after tht installation 
> not started
>

-- 
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/36568b42-477f-4557-a653-ebc2b18931c0%40googlegroups.com.


Re: installation of django

2020-02-11 Thread Jatin Agrawal
https://www.codingforentrepreneurs.com/blog/install-python-django-on-windows

visit thig website and try to follow the instructions given on it.

On Tuesday, February 11, 2020 at 9:44:28 PM UTC+5:30, paarull shukla wrote:
>
> heloo guys i m not able to install django please help me it .i m facing 
> issue last 10 days . i m getting collecting django after tht installation 
> not started
>

-- 
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/0b32e8a0-1bb0-471c-bbdf-d1683afe9174%40googlegroups.com.


Re: installation of django

2020-02-11 Thread JEGATHEESWARAN SUNDARAVADIVEL
Upgrade your pip version

On Tue, 11 Feb 2020 at 21:44, paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.com
> 
> .
>
-- 
JAGATHEESWARAN

-- 
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/CAHM%2BSVpviriMTUu4pDEzdgipUM9wdxS7VegoAuztHCHnEOO7aw%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Ok dear thnks

On Tue, 11 Feb, 2020, 10:24 PM Jatin Agrawal,  wrote:

> you must first create a virtual environment and activate it and then
> install django in that virtual environment. search for how to create a
> virtual environment for django projects on the internet.
>
> On Tue, Feb 11, 2020 at 9:43 PM paarull shukla <
> shukla.paarull...@gmail.com> wrote:
>
>> heloo guys i m not able to install django please help me it .i m facing
>> issue last 10 days . i m getting collecting django after tht installation
>> not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%40googlegroups.com
>> 
>> .
>>
>
>
> --
> +91 9810916435
>
> --
> 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/CABWk0ReWd0NXzHUO9%3Dt_wWOo-ajU2UJ%2BKGMM6Tk7-G8kiLPWcg%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/CACLQzsf%3D0wv6PZZz%2BaMih%2B1LpWJkqun_PPY%3DVySfLck-jda4gw%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Ya rht I already did. 3.7.3 . I installed 3 to 4 version and in everyone I
m facing same problem

On Tue, 11 Feb, 2020, 10:24 PM Jatin Agrawal,  wrote:

> you can install some different version of django also instead of 3.0
>
> On Tue, Feb 11, 2020 at 9:53 PM Jatin Agrawal 
> wrote:
>
>> read the django documentation for installing it.
>>
>> https://docs.djangoproject.com/en/3.0/topics/install/
>>
>> On Tue, Feb 11, 2020 at 9:51 PM paarull shukla <
>> shukla.paarull...@gmail.com> wrote:
>>
>>> No. Not an error but getting collecting django. After that installation
>>> didn't start
>>>
>>> On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,  wrote:
>>>
 Are you getting any error messages?

 On Tue, 11 Feb 2020 at 9:43 PM, paarull shukla <
 shukla.paarull...@gmail.com> wrote:

> heloo guys i m not able to install django please help me it .i m
> facing issue last 10 days . i m getting collecting django after tht
> installation not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CALKGVioTRShH5x6UdqwyT2eCY3UVQ%2BZvP4%2BVdaFE0_H6np5mMg%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/CACLQzseiB2H%2BLiHpb1itOnTVORctS6LCXtyv9MMoqiq5bqVUEA%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> +91 9810916435
>>
>
>
> --
> +91 9810916435
>
> --
> 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/CABWk0ReSy5sgTbTwzJ2Q992DrVnUBpsu%3DVs1wyrX8do7W5e%2B%3Dg%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/CACLQzsd-b4nV2e3A9tY%3D7acgu%3D4VdD%2BemOz-%3DgfC6N19YGwSOg%40mail.gmail.com.


Memcache

2020-02-11 Thread Soumen Khatua
Hi Folks,
Actually I want to implement memcache service into my project but I don't
know How to implement it with proper scalability. If anyone have any idea
or code snippet, please share with me.

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/CAPUw6WbsnhpajNaOFs1xd2f5%3DQ3wzqcRP2vXzrZxNShHPjY7bQ%40mail.gmail.com.


Re: Django server is slow after moving database to remote VM

2020-02-11 Thread Michael Thomas
1500kbps is horrendously slow too, really..

If you're seeing a significant difference between small transfers vs large, you 
might be stumbling into an incorrect MTU size for the network. 

This has popped up a little more often in recent years with the rise of vxlans 
over public connections.

If possible, try reducing the MTU on both servers to see if that helps at all.

-- 
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/fe7b86cd-476d--be2c-faaf49eca223%40googlegroups.com.


Re: installation of django

2020-02-11 Thread Shainny Martinez
Hello! In this direction you can find what you are looking for:
https://tutorial.djangogirls.org/es/django_installation/

El mar., 11 de feb. de 2020 12:54 PM, Jatin Agrawal 
escribió:

> you must first create a virtual environment and activate it and then
> install django in that virtual environment. search for how to create a
> virtual environment for django projects on the internet.
>
> On Tuesday, February 11, 2020 at 9:44:28 PM UTC+5:30, paarull shukla wrote:
>>
>> heloo guys i m not able to install django please help me it .i m facing
>> issue last 10 days . i m getting collecting django after tht installation
>> not started
>>
> --
> 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/36568b42-477f-4557-a653-ebc2b18931c0%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/CACPibpFEtBeFCs1VQcf29vHfz5skUP_xzneVFBF2D3tewgpp5A%40mail.gmail.com.


installation of django

2020-02-11 Thread Naynesh Rathod
Check system environment veriable 

-- 
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/b3ec05e8-913b-42cc-bb51-6548c26d1fc3%40googlegroups.com.


Re: AutoField & auto-incrementing

2020-02-11 Thread Mike Dewhirst

On 11/02/2020 7:06 pm, Bruckner de Villiers wrote:


Jason,

Thank you.  I have changed the title of this mail.  If I have read the 
10 year old ticket 8576 correctly, it seems to be a DB restriction and 
I imagine that there are good reasons for this.  However, then I don’t 
understand the purpose of the AutoField given the restrictions and 
that the Django documentation is somewhat ambiguous/vague.


The options seem to be:

  * Your uuid suggestion (which I have never worked with, but will
explore)
  * a function in the model that does the incrementing before
committing – (anyone have some example code for this?).  The
challenge would be to keep track of the last used ticket no.  I
haven’t thought this through yet, but it does occur to me that one
could use the id (maybe prefix the id with some starting digits)
and write the record twice. Probably barking up the wrong tree.



I have a need for a unique identifier in one of my models. I save the id 
to a separate field in the same model. In my case I don't need to see 
the value. It just needs to be unique and never change. It is used for 
generating the equivalent of a bar-code in a different model.


    def save(self, *args, **kwargs):
    if self.id:
    if not self.formulation_no:
    self.formulation_no = str(self.id)
    super().save(*args, **kwargs)

A downside to this is the formulation number stays blank until the next 
save after creating the record. The upside is that the id isn't going to 
change so uniqueness isn't lost. Another way of doing this is to copy 
the id when it is first required and formulation_no is still blank.


I have also been known to use a weird mechanism for user-resequencing 
records in a display. In that case they are lesson sequences within a 
course and question sequences within a lesson. I use floats and strings 
in a pair of fields so if that is of interest just ask.


Cheers

Mike


 *

Regards,

Bruckner de Villiers

+27 83 625 1086

*From: * on behalf of Jason 


*Reply to: *
*Date: *Monday, 10 February 2020 at 14:55
*To: *Django users 
*Subject: *Re: Adding a verbose_name to id field

Hmm.  TIL about https://code.djangoproject.com/ticket/8576

Would a a uuid for this, rather than an integer?  If not, you'll have 
to implement a save override to handle the incrementing yourself.


In addition, it might be worthwhile bringing this ticket up for 
discussion at https://groups.google.com/forum/#!forum/django-developers


--
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/dc686528-0a8d-43ff-9973-d478cc765959%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/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com 
.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/99dbcba0-22bd-7c1d-5fe6-68984353bfb1%40dewhirst.com.au.


Re: installation of django

2020-02-11 Thread Shubham Mishra
pip3 install Django

On Tue, Feb 11, 2020, 21:43 paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CAGHpP%3DWAQ3hkGrQ_D%3D68RDKMsD1Mw5d2wpv9Pd4mNDBOOA49Qw%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread HyTech Innovating with technology
Try pip install django==2.1.7

On Tue, Feb 11, 2020, 17:13 paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CAE%2BgYmj%2BczQ31aUCwP7AFFry4_Qe4w-zE1gxLUhyM%3DWoFHxCRQ%40mail.gmail.com.


Re: AutoField & auto-incrementing

2020-02-11 Thread Bruckner de Villiers
Jason,

I cracked the uuid option – what an ugly ticket no.!!! - 
0273051c-af54-4baf-91b9-651701d9020c

 

Bruckner de Villiers

083 625 1086

 

From: Bruckner de Villiers 
Date: Tuesday, 11 February 2020 at 10:06
To: 
Subject: AutoField & auto-incrementing

 

Jason,

Thank you.  I have changed the title of this mail.  If I have read the 10 year 
old ticket 8576 correctly, it seems to be a DB restriction and I imagine that 
there are good reasons for this.  However, then I don’t understand the purpose 
of the AutoField given the restrictions and that the Django documentation is 
somewhat ambiguous/vague.

 

The options seem to be:
Your uuid suggestion (which I have never worked with, but will explore)
a function in the model that does the incrementing before committing – (anyone 
have some example code for this?).  The challenge would be to keep track of the 
last used ticket no.  I haven’t thought this through yet, but it does occur to 
me that one could use the id (maybe prefix the id with some starting digits) 
and write the record twice.  Probably barking up the wrong tree.
Regards,

 

Bruckner de Villiers

+27 83 625 1086

 

From:  on behalf of Jason 
Reply to: 
Date: Monday, 10 February 2020 at 14:55
To: Django users 
Subject: Re: Adding a verbose_name to id field

 

Hmm.  TIL about https://code.djangoproject.com/ticket/8576

 

Would a a uuid for this, rather than an integer?  If not, you'll have to 
implement a save override to handle the incrementing yourself.

 

In addition, it might be worthwhile bringing this ticket up for discussion at 
https://groups.google.com/forum/#!forum/django-developers

-- 
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/dc686528-0a8d-43ff-9973-d478cc765959%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/3385BD9A-F8CB-442C-92C0-151139316082%40gmail.com.


Re: AutoField & auto-incrementing

2020-02-11 Thread Bruckner de Villiers
Mike,
Clever.  The save function seems to write a string of the id.  So, 
self.formulation_no = "50-" + str(self.id) could also work?

Bruckner de Villiers
+27 83 625 1086

On 2020/02/12, 00:27, "Mike Dewhirst"  wrote:

On 11/02/2020 7:06 pm, Bruckner de Villiers wrote:
>
> Jason,
>
> Thank you.  I have changed the title of this mail.  If I have read the 
> 10 year old ticket 8576 correctly, it seems to be a DB restriction and 
> I imagine that there are good reasons for this.  However, then I don’t 
> understand the purpose of the AutoField given the restrictions and 
> that the Django documentation is somewhat ambiguous/vague.
>
> The options seem to be:
>
>   * Your uuid suggestion (which I have never worked with, but will
> explore)
>   * a function in the model that does the incrementing before
> committing – (anyone have some example code for this?).  The
> challenge would be to keep track of the last used ticket no.  I
> haven’t thought this through yet, but it does occur to me that one
> could use the id (maybe prefix the id with some starting digits)
> and write the record twice. Probably barking up the wrong tree.
>

I have a need for a unique identifier in one of my models. I save the id 
to a separate field in the same model. In my case I don't need to see 
the value. It just needs to be unique and never change. It is used for 
generating the equivalent of a bar-code in a different model.

 def save(self, *args, **kwargs):
 if self.id:
 if not self.formulation_no:
 self.formulation_no = str(self.id)
 super().save(*args, **kwargs)

A downside to this is the formulation number stays blank until the next 
save after creating the record. The upside is that the id isn't going to 
change so uniqueness isn't lost. Another way of doing this is to copy 
the id when it is first required and formulation_no is still blank.

I have also been known to use a weird mechanism for user-resequencing 
records in a display. In that case they are lesson sequences within a 
course and question sequences within a lesson. I use floats and strings 
in a pair of fields so if that is of interest just ask.

Cheers

Mike

>  *
>
> Regards,
>
> Bruckner de Villiers
>
> +27 83 625 1086
>
> *From: * on behalf of Jason 
> 
> *Reply to: *
> *Date: *Monday, 10 February 2020 at 14:55
> *To: *Django users 
> *Subject: *Re: Adding a verbose_name to id field
>
> Hmm.  TIL about https://code.djangoproject.com/ticket/8576
>
> Would a a uuid for this, rather than an integer?  If not, you'll have 
> to implement a save override to handle the incrementing yourself.
>
> In addition, it might be worthwhile bringing this ticket up for 
> discussion at https://groups.google.com/forum/#!forum/django-developers
>
> -- 
> 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/dc686528-0a8d-43ff-9973-d478cc765959%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/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com
 
> 
.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/99dbcba0-22bd-7c1d-5fe6-68984353bfb1%40dewhirst.com.au.



-- 
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://gro

Re: installation of django

2020-02-11 Thread Mehul Anshumali
Try install virtual environment and in that install django.
You can search - setup Virtual environment and install django .

On Tue, Feb 11, 2020, 9:43 PM paarull shukla 
wrote:

> heloo guys i m not able to install django please help me it .i m facing
> issue last 10 days . i m getting collecting django after tht installation
> not started
>
> --
> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CAL115XzmaW2V-qJbVX8YVWvyQm6_-F3e%3D%3DfKbpwYD8sB93EKbQ%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread paarull shukla
Ok so virtual environment I have  to search in cmd or like google

On Wed, 12 Feb, 2020, 12:50 PM Mehul Anshumali, 
wrote:

> Try install virtual environment and in that install django.
> You can search - setup Virtual environment and install django .
>
> On Tue, Feb 11, 2020, 9:43 PM paarull shukla 
> wrote:
>
>> heloo guys i m not able to install django please help me it .i m facing
>> issue last 10 days . i m getting collecting django after tht installation
>> not started
>>
>> --
>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CAL115XzmaW2V-qJbVX8YVWvyQm6_-F3e%3D%3DfKbpwYD8sB93EKbQ%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/CACLQzse9WTVTopU9jHS2%3DE8OAYB9xW8_WWxVXXum7vyXyWAP8Q%40mail.gmail.com.


Re: installation of django

2020-02-11 Thread Nur Mohsin
Hi, follow this official documentation.

https://docs.djangoproject.com/en/3.0/howto/windows/

let me know if you don't understand any part.

On Wed, Feb 12, 2020 at 1:31 PM paarull shukla 
wrote:

> Ok so virtual environment I have  to search in cmd or like google
>
> On Wed, 12 Feb, 2020, 12:50 PM Mehul Anshumali, <
> mehulanshumali...@gmail.com> wrote:
>
>> Try install virtual environment and in that install django.
>> You can search - setup Virtual environment and install django .
>>
>> On Tue, Feb 11, 2020, 9:43 PM paarull shukla 
>> wrote:
>>
>>> heloo guys i m not able to install django please help me it .i m facing
>>> issue last 10 days . i m getting collecting django after tht installation
>>> not started
>>>
>>> --
>>> 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/879c4e25-5ff9-4858-bf6d-b794bef3aed7%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/CAL115XzmaW2V-qJbVX8YVWvyQm6_-F3e%3D%3DfKbpwYD8sB93EKbQ%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/CACLQzse9WTVTopU9jHS2%3DE8OAYB9xW8_WWxVXXum7vyXyWAP8Q%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/CAM0c9RrjfUZN4kyibK-i%2BnkysgRk%2Bv9gRPA%3DizKNxEsLgr9dbg%40mail.gmail.com.


Re: AutoField & auto-incrementing

2020-02-11 Thread Mike Dewhirst

On 12/02/2020 6:11 pm, Bruckner de Villiers wrote:

Mike,
Clever.  The save function seems to write a string of the id.  So, self.formulation_no = 
"50-" + str(self.id) could also work?


Fact is you can do anything you like. Instead of what I showed you could 
call any method you care to write either before or after the super() 
call in model.save()


You can also use pre_save and post_save signals to do much the same thing.

Where I need to do such things my preference is a model save method 
which looks like this ...


def save(self, *args, **kwargs):
    self._pre_save()    # stuff to be computed pre-save
    super().save(*args, **kwargs)
    self._post_save()   # stuff to be done after the save

Specifically, yes my requirement was to have a models.CharField so 
str(self.id) was the way to satisfy that.


Cheers

Mike



Bruckner de Villiers
+27 83 625 1086

On 2020/02/12, 00:27, "Mike Dewhirst"  wrote:

 On 11/02/2020 7:06 pm, Bruckner de Villiers wrote:
 >
 > Jason,
 >
 > Thank you.  I have changed the title of this mail.  If I have read the
 > 10 year old ticket 8576 correctly, it seems to be a DB restriction and
 > I imagine that there are good reasons for this.  However, then I don’t
 > understand the purpose of the AutoField given the restrictions and
 > that the Django documentation is somewhat ambiguous/vague.
 >
 > The options seem to be:
 >
 >   * Your uuid suggestion (which I have never worked with, but will
 > explore)
 >   * a function in the model that does the incrementing before
 > committing – (anyone have some example code for this?).  The
 > challenge would be to keep track of the last used ticket no.  I
 > haven’t thought this through yet, but it does occur to me that one
 > could use the id (maybe prefix the id with some starting digits)
 > and write the record twice. Probably barking up the wrong tree.
 >
 
 I have a need for a unique identifier in one of my models. I save the id

 to a separate field in the same model. In my case I don't need to see
 the value. It just needs to be unique and never change. It is used for
 generating the equivalent of a bar-code in a different model.
 
  def save(self, *args, **kwargs):

  if self.id:
  if not self.formulation_no:
  self.formulation_no = str(self.id)
  super().save(*args, **kwargs)
 
 A downside to this is the formulation number stays blank until the next

 save after creating the record. The upside is that the id isn't going to
 change so uniqueness isn't lost. Another way of doing this is to copy
 the id when it is first required and formulation_no is still blank.
 
 I have also been known to use a weird mechanism for user-resequencing

 records in a display. In that case they are lesson sequences within a
 course and question sequences within a lesson. I use floats and strings
 in a pair of fields so if that is of interest just ask.
 
 Cheers
 
 Mike
 
 >  *

 >
 > Regards,
 >
 > Bruckner de Villiers
 >
 > +27 83 625 1086
 >
 > *From: * on behalf of Jason
 > 
 > *Reply to: *
 > *Date: *Monday, 10 February 2020 at 14:55
 > *To: *Django users 
 > *Subject: *Re: Adding a verbose_name to id field
 >
 > Hmm.  TIL about https://code.djangoproject.com/ticket/8576
 >
 > Would a a uuid for this, rather than an integer?  If not, you'll have
 > to implement a save override to handle the incrementing yourself.
 >
 > In addition, it might be worthwhile bringing this ticket up for
 > discussion at https://groups.google.com/forum/#!forum/django-developers
 >
 > --
 > 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/dc686528-0a8d-43ff-9973-d478cc765959%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/7C1BE52B-AFAE-4D38-9003-8A454A284A39%40gmail.com
 >