Re: Pop-up forms

2019-01-09 Thread shiva kumar
As i am new to django i dont know about pop-up forms.
can you give an overview of it please.


On Tue, Jan 8, 2019 at 7:34 PM DrTen  wrote:

> Hi Did you ever solved this issue, its 2019 and I still can't find a
> working solution.
>
> On Monday, October 9, 2006 at 3:31:19 PM UTC-5, hernan43 wrote:
>>
>> You wouldn't happen to know a good resource of where I can learn more
>> of how to create a form like this would you? I'd like to implement a
>> similar capability and would like to read up on how to do it.
>> --Ray
>>
>> --
> You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d66a086e-5ac0-4dbf-a1e0-c4a6ff64940c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMsYeuExU7DDYHWt6%3DHuB5FZNK%3D-%3DpNMKP4j1nX2B1msQkk9GQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installing and using django registration – backends

2019-01-09 Thread Yuval Bachrach
my latest response failed to make it - SO I am trying again (converted some
text to jpg - the contect of dirs() and "ls" in shell)

The package is installed (pip) and migration is clean. Next steps at the
documents: Adding to urls at urlpatterns but I get error messages (details
below). So I am stacked at the very beginning. As a Django beginner, I
would be happy to get some help.



The issues are with “backaends” that exists on the file system (with the
required content) but Django can’t find it.

django_registration project was added to INSTALLED_APPS as instructed.



On:

urlpatterns = [

url(r'^accounts/',
include('django_registration.backends.activation.urls')),

url(r'^accounts/', include('django.contrib.auth.urls')),



I had to comment out the first url as backends due to an error:

  File "", line 965, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'django_registration.backends'


[image: django registration backends.jpg]

There were suggestions at web to install django_registration using --user
flag of pip install: Tried that: It does not help



On Wed, Jan 2, 2019 at 8:02 PM Yuval Bachrach 
wrote:

> Installing and using django registration – backends
>
> The package is installed (pip) and migration is clean. Next steps at the
> documents: Adding to urls at urlpatterns but I get error messages (details
> below). So I am stacked at the very beginning. As a Django beginner, I
> would be happy to get some help.
>
> The issues are with “backaends” that exists on the file system (with the
> required content) but Django can’t find it
>
>
>
> *Details:*
>
> Ø  The urls added:
>
> urlpatterns = [
>
> url(r'^accounts/',
> include('django_registration.backends.activation.urls')),
>
> url(r'^accounts/', include('django.contrib.auth.urls')),
>
> .
>
> .
>
> ]
>
> o   In here there is an error message (from runserver) ended with:
>
>   File "", line 965, in
> _find_and_load_unlocked
>
> ModuleNotFoundError: No module named 'django_registration.backends'
>
>
>
> Ø  Commenting out the first url out of the two makes the error go away
>
> Ø  Adding (inside url.py prior to urlpattern declaration):
>
> from django_registration import backends
>
> is resulted with the following error message:
>
> ImportError: cannot import name 'backends' from 'django_registration'
> (C:\Users\yuval\OneDrive\pythonWorkDir\django\tutor1\ybsite\django_registration\__init__.py)
>
> (I did not think this line is to be added but wanted to see the
> response…). I commented it out.
>
>
>
> Ø  This is the case both when in settings.py INSTALLED_APPS I have or
> don’t have the following:
>
>  'django_registration',   # <= This one is OK
>
> Ø  Trying to add
>
>  'django_registration.backends',
>
>  #   <= This one is NOT OK : error message:
>
> oduleNotFoundError: No module named 'django_registration.backends'
>
> (I did not think this line is to be added but wanted to see the
> response…). I commented it out.
>
>
>
> So now I don’t have an error message but also not having Django
> registration ready to use…
>
> --
>
> Yuval B
>
>

-- 

Yuval B

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD16PYTu%2BKLoXN9zz5Uh5Zn3iRujTtX0620Gjrb5gKK7EqdWsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Get the maximum possible ID value for a primary key?

2019-01-09 Thread Stodge
Is there a way to get the maximum value that an ID can be for a model that 
uses AutoField for its primary key? For example, in PostgreSQL I could do:

SELECT maximum_value FROM information_schema.sequences WHERE sequence_name = 
'my_sequence_id_seq';

 maximum_value 
---
 9
(1 row)



I'm looking through the model meta data and the AutoField but I don't see 
anything.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6c5d3bfc-b2ef-4ff1-b589-2f7b3ee07e0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get the maximum possible ID value for a primary key?

2019-01-09 Thread shiva kumar
can you explain it indetail


On Wed, Jan 9, 2019 at 7:18 PM Stodge  wrote:

> Is there a way to get the maximum value that an ID can be for a model that
> uses AutoField for its primary key? For example, in PostgreSQL I could do:
>
> SELECT maximum_value FROM information_schema.sequences WHERE
> sequence_name = 'my_sequence_id_seq';
>
>  maximum_value
> ---
>  9
> (1 row)
>
>
>
> I'm looking through the model meta data and the AutoField but I don't see
> anything.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6c5d3bfc-b2ef-4ff1-b589-2f7b3ee07e0a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMsYeuETr9OqywfEAFNZz8QDRTCrPKSFUECHk9bmL-tTsfkSwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How & Where are Django View Functions Called?

2019-01-09 Thread Alejandro Reyes
Hi,

Suppose I have a standard views.py module in my Django app and that app has 
a simple function:

def home(request):
   form =request.POST['form']


Where exactly in the Django framework does it specifically call 'home' with 
the correctly typed parameter 'request'? I want to know this for Static 
Code Analysis purposes. Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f6b7c91d-1597-42f2-9675-43f87f9adaeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How & Where are Django View Functions Called?

2019-01-09 Thread Lachlan Musicman
On Thu, 10 Jan 2019 at 14:36, Alejandro Reyes  wrote:

> Hi,
>
> Suppose I have a standard views.py module in my Django app and that app
> has a simple function:
>
> def home(request):
>form =request.POST['form']
>
>
> Where exactly in the Django framework does it specifically call 'home'
> with the correctly typed parameter 'request'? I want to know this for
> Static Code Analysis purposes. Thanks.
>
> When you define your URLs. Each URL, when visited, has a view it triggers.
Hence the URL syntax

Cheers
L.


-- 
--
"The fact that you're still saying something like 'feminism gone mad'
suggests that feminism hasn't gone mad ENOUGH yet."

Helen Zaltzman / @HelenZaltzman
https://twitter.com/HelenZaltzman/status/1065384934846545920

-- 
You received this message because you are subscribed 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGBeqiP8dBJnQQrotSaYOe1RkqU-TwvwSpwCPFJXA75xdnYtxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SPAM sent via this list?

2019-01-09 Thread Lachlan Musicman
I just got a spam email from the account

aphiso...@gmail.com

That is threaded to my previous response to Alejandro Reyes's email

Here's the raw header


Delivered-To: data...@gmail.com
Received: by 2002:ab0:59f2:0:0:0:0:0 with SMTP id k47csp1496731uad;
Wed, 9 Jan 2019 20:15:11 -0800 (PST)
X-Received: by 2002:a17:906:e2c9:: with SMTP id
gr9-v6mr7444893ejb.108.1547093711410;
Wed, 09 Jan 2019 20:15:11 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1547093711; cv=none;
d=google.com; s=arc-20160816;
b=Uk1KEWZpXj57NrLSw/NrkYofbu7/WAxFBbuzEY7jMIpScKUGzLMh6hxFd89RhPMo7/
 7eMRsfWxvPeVAknN7Ghc+A+jK+ZidGjRsv/DsKiCJYWLE4m/B2w2i5PpL0jPCTD/cJ7Q
 /A3FbBDkoaegCbDZzBHwy1RF2lejE8joiT7VaIUKxINQ1Tq4Z0IGyCPdPjI/ThKWU+FU
 xn+laGAltdoUG3WbvIueNXA8jChxUagFoMlns0yDr1FETv1ymUgcLefeqi7F5F65r9vo
 9Rz6kyp33FSo5tqGRf1ZBmcSd4cXiIUwcEPTFMisEPxBLUTpspNcedop625YpWljG8sb
 PRvw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=arc-20160816;
h=to:subject:message-id:date:references:in-reply-to:mime-version:from
 :dkim-signature;
bh=Azuv04E2o8dshX5o1BJ8WGQr6D9cswM1D1HqW5tXEoo=;
b=UCngM/tm+Rg242qMf/EbLYW8Cw+DpPvskZ1KVvBfqS7xDOqGg6vNHwKh+eJ/BZAjvS
 gaLZFT2Z4uCt5BSeuQTclwi5Uw0NkZ3OrEwXSbm9dAe7k5dJ5vGv9XQFNncxd3BAx5AS
 SE26fuct4nn3chaXCKmzZlaIYIlO0jfZ5uBgnpQFEGWAyAVYo6sUnhswLw5dPpKuckh/
 dCGq1TIvd0hRrcqNw4jAIh4L6qyB96TlKbJSO/7nTbb7dN5/a5VxKXM/tT4/qkqfNW/D
 bnmXoa7nHxKFFe9/WlY4ktFRo1ovndNqE2D/xZtptOEEneY46CaFvzI6ODFYbjMR5io/
 SS8w==
ARC-Authentication-Results: i=1; mx.google.com;
   dkim=pass header.i=@gmail.com header.s=20161025 header.b=dd8veXeU;
   spf=pass (google.com: domain of aphiso...@gmail.com designates
209.85.220.41 as permitted sender) smtp.mailfrom=aphiso...@gmail.com;
   dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Return-Path: 
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id e44sor3343283ede.13.2019.01.09.20.15.11
for 
(Google Transport Security);
Wed, 09 Jan 2019 20:15:11 -0800 (PST)
Received-SPF: pass (google.com: domain of aphiso...@gmail.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
Authentication-Results: mx.google.com;
   dkim=pass header.i=@gmail.com header.s=20161025 header.b=dd8veXeU;
   spf=pass (google.com: domain of aphiso...@gmail.com designates
209.85.220.41 as permitted sender) smtp.mailfrom=aphiso...@gmail.com;
   dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=from:mime-version:in-reply-to:references:date:message-id:subject:to;
bh=Azuv04E2o8dshX5o1BJ8WGQr6D9cswM1D1HqW5tXEoo=;
b=dd8veXeUlee7ACSL3xnZk1RzWT44ZXlifjzUuqnUVlxZu5S0dkUgoVSsT8MaevKOGe
 WorIqWc4/K6XFuz6caxwn+U+sWrYiESrusvkXsNAZAXzQ1G0e4tAc8uvh77AnoYUPstk
 K2ZQyTRB42EuREJN94GArD6E0D+3cYk86eYF2BdXD1s59r7z97+LHNUJLE/EErHTiQ9B
 TE3+AzAKpSgJF5a49sSIeFDGzF5O64qFqIr2wHL3ZuYYk0+LDP3mLIOtCEU1kmcpfRxS
 mxyFqQ5t1XjkcZRuMVc0jvxsMTBeTSMs73i5PVmmWkmeXykc9YOPNFSXEg9+QeCduOEC
 /yIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:mime-version:in-reply-to:references:date
 :message-id:subject:to;
bh=Azuv04E2o8dshX5o1BJ8WGQr6D9cswM1D1HqW5tXEoo=;
b=cFU5b8+MRXUtvTznVlGZLohfDDKdWCWXLdsPcP8TSYKGINSy+80JnJI5GL9Ogh6vQk
 VDJyuuXsarPxBhew98u5kpThsAAQ6L92S2vA6b5I08S9KR4xIL6W+CsTa4bS3RZo17Ev
 C4fP8wHwpCmylgqOVO2Kwp39HXgXg3mySVv9HyZ2JzzwgXF9bhqFeOWVXdWzHK4WdF1v
 5S0/1Cr/8vIkjpOkD4NVtBp3frWUgDFIJN7wpukYdhcpc2FNpRJY15RKtBCv8MXOBGlA
 FF/4uQXnGeyAiLd0yaGTROuR9cSzBzMlW+YWtXn4Xc3b8fYLZ9u4OwK2ty58NfAGMlPH
 yJCQ==
X-Gm-Message-State:
AJcUukfvXzy9WecRe6/K4iC0iWtIxysbNXeBqUtF2Kd2ps8N/L8fOOHe
40EtFgLtrpivvrGCWt4YnGRlV/Rdh2ioyee6AZX45w==
X-Google-Smtp-Source:
ALg8bN40FdsN8UjLFM7ESJPXEvdSS/UpieqzzaYvx8rwlAn8+JpAg1Nnt5kHhcXV47odMIri/HcQiFHsBIykx26t1P0=
X-Received: by 2002:a50:94f4:: with SMTP id
t49mr8318854eda.24.1547093710815; Wed, 09 Jan 2019 20:15:10 -0800
(PST)
Received: from 930449438146 named unknown by gmailapi.google.com with
HTTPREST; Wed, 9 Jan 2019 20:15:10 -0800
From: aphiso...@gmail.com
Mime-Version: 1.0
In-Reply-To: 

References: 
X-Auto-Response-Suppress: All
Date: Wed, 9 Jan 2019 20:15:10 -0800
Message-ID: 
Subject: Re: Re: How & Where are Django View Functions Called?
To: data...@gmail.com
Content-Type: multipart/alternative; boundary="1143da057f12d3c1"



--
--
"The fact that you're still saying something like 'feminism gone mad'
suggests that feminism hasn't gone mad ENOUGH yet."

Helen Zaltzman / @HelenZaltzman
https://twitter.com/HelenZaltzman/status/1065384934846545920

-- 
You received this message because you are sub