In, “Password management in Django 
<https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#how-django-stores-passwords>”,
 
it explains that this particular doc is for advanced users, like Django 
admins who need to choose different hashing algorithms.  So it’s not really 
necessary for a beginner user like me to understand.  From the doc:

...depending on your requirements, you may choose a different algorithm, or 
> even use a custom algorithm to match your specific security situation. 
> Again, most users shouldn’t need to do this – if you’re not sure, you 
> probably don’t. If you do, please read on...


I don’t. So I don’t need to continue reading. 

But I do have some questions about dot notation in general as some code 
appears in settings.py. Lines 87 - 100 in this file appear as follows:

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },

    {
        'NAME': 
'django.contrib.auth.password_validation.MinimumLengthValidator',
    },

    {
        'NAME': 
'django.contrib.auth.password_validation.CommonPasswordValidator',
    },

    {
        'NAME': 
'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]



Can someone please identify the first item in this list?  I understand that 
all the items in this list are dictionaries.  The first dictionary is 
named, ‘NAME’.  The key involves libraries, functions, variables, class 
names and more functions.  Which is which? Is `django` the library? What is 
`contrib`? Is this a function name or a class name?  If `contrib` is a 
function name or class name, where is it located in my venv or Django 
project folder? 

What does each word in the dictionary mean or refer to?  Can some one 
please explain the syntax?

Thanks for your attention.

-- 
You received this message because you are subscribed 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/e285f69d-3aad-4d99-b46e-7f6be5ccbffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to