Feb-16-2018, 12:58 AM
(This post was last modified: Feb-16-2018, 01:05 AM by Drone4four.)
In, “Password management in Django”, 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:
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:
What does each word in the dictionary mean or refer to? Can someone please explain the syntax?
Thanks for your attention.
Quote: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 someone please explain the syntax?
Thanks for your attention.