Python Forum
Question about dot notation syntax (Django source)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about dot notation syntax (Django source)
#2
Hello.. May I make a suggestion that you look inside the directory where you have your venv setup. And browse that directory. For example on my system
/usr/local/venv/wurst is where I stored my virtualenv, from there I can see that there is a folder structure of /lib/python3.6/site-packages Inside there you will find your python modules, such as django. I am not providing any answers here but giving you some ideas of things you might want to look at to try to get a better understanding for stuff that django is talking about.

On your system the paths will be different depending on where you created your virtualenv and what version of python you have in that environment. On my system there is a file /usr/local/venvs/wurst/lib/python3.6/site-packages/django/contrib/auth/password_validation.py which looks like what the dictionary values are pointing to. I would sugest looking at that file in read only mode. If you use vim that would be vim -R <filename> But whichever editor you use, make sure you are not changing anything in this file but try to get an idea of what is happening. Form some ideas in your head. When I was learning C programming my instructor told us to read some of the .h files so that we could understand what was happening even if we did not understand the contents of the file itself.

Modules can have many parts. Just giving you some food for thought instead of answering the question because I think you will get more value out of this.
Reply


Messages In This Thread
RE: Question about dot notation syntax (Django source) - by knackwurstbagel - Feb-16-2018, 01:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,392 Jun-30-2019, 12:21 AM
Last Post: scidam
  Python requests.get() returns broken source code instead of expected source code? FatalPythonError 3 3,750 Sep-21-2018, 02:46 PM
Last Post: nilamo
  Django syntax mepyyeti 2 2,523 Feb-16-2018, 05:03 AM
Last Post: Drone4four
  Django question tony1812 1 3,339 Aug-28-2017, 01:13 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020