Python, I have a question. If you look to the left, the folder structure is displayed. By the way, if you import from views, you will see a warning sign if you do from login.forms import * Running the program does not cause errors and works well. But from...login.forms import * (Content: Get forms from the parent directory login in views) A warning message appears when you do, but an error occurs when you run it. Why is that? Or can't we get rid of the error message?
python django
It is right to import by app name, not by directory concept. Since login is the app name, login.forms
is correct.
Maybe settings.Isn't py not including login in INSTALLED_APPS?
581 PHP ssh2_scp_send fails to send files as intended
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.