updating code examples for correct imports#5
Conversation
|
The second commit includes all changes needed for full Django Admin funcionality. Admin did not even start with the code as installed with pip or downloaded from GitHub. |
|
Thanks for your PR! Your additions are very welcome! I need a few things from you to be able to merge this:
|
I'm happy to contribute to something I find quite useful!
I'll do my best to comply. Although I've been using Python since 1992 and Django since 2008 and I did my first contribution to an Open Source project back in 1993 to Wietse Venema's tcp_wrappers, I have to confess that I'm not so proficient in GitHub and this might be my first (maybe second) PR :-) I might need some hand holding :-)
No problem with that, it's not for fame, it's an ancient tradition I instituted thirty years ago when I started leading the university sysadmin team: "leave traces of what you touch so others know who to chase if something breaks" ;-)
I'll check and correct (and learn Sphinx Napoleon format on the way)
Strange, that's what I usually do most of the time. I'll check.
I think I've used blue (I've interacted with Barry Warsaw long ago) on the code, but I might have forgotten. Is blue ok?
Ok. Give me some time for that, as I will have to get acquainted with the demo application before.
That's probably going the part I'll nedd some hand holding, pytest has been my "pending subject" for quite some time.
OK. Any preferred location for this? |
|
Welcome, then, brother! You and I have similar backgrounds. This is my 31st year at Caltech, and I also ran the central sysadmin team for Caltech for many years. For the last 20 years I've been running a DevOps/software engineering team and this is one of our open source packages.
I want to warn you that the current pypi version has some bugs in it so we're not using it in production. I haven't had time to track them down because we're slammed here. |
|
I hope I've done it well. I confess I've cheated because a friend of mine (Pythonist and sysadmin) had been insisting in showing off Claude for some time and we had to meet today, so, we have used his paid license for me to learn about Sphinx Napoleon and unit tests in one morning. I confess that I'm impressed. I now (more or less) understand the format thanks to Claude's comments and have a better understanding of tests creation for Django :-) Docs and demo will be hand crafted :-) ;-) |
|
Claude's review of comments have detected errors in areas of the code I have not touched. I'm more than happy to apply them if you give me green light, meanwhile I'll refrain to touch anything outside my contributions. As mypy refuses to run in my system because it does not like types.py (error below) we also asked Claude to be so kind to run it for us and it gave us a report with needed changes. I'm attaching a PDF (in Spanish, as my friend chats with the thing in Spanish) with the reports, including the results of running the tests for Django Admin integration. It's been a good for me to decide to contribute to django-ldaporm as I'm learning interesting things :-) Error: |
I found that most code usage examples did the wrong import omiting ".models" . This PR fixes them. Thanks for a very useful project.