|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Web-Apps on Flask: How to Deal With Cyclic Imports[^]
Repost: Web-Apps on Flask: How to Deal With Cyclic Imports[^]
SimbirSoft - Professional Profile
Compare it to this: Flask web applications: how to deal with cyclic imports - Prog.world[^]
And it's pretty obviously copy'n'paste'n'tweak-to-hide-it
He was getting pretty bored with it by the second section:
Stolen: Instead of using the standard routing method described in the documentation, you can use the classy approach. With this approach, you don't have to manually write routing for view: it will be configured automatically based on names of your classes and methods. This approach allows to improve the structure of a code, as well as to create view without app object. As a result the problem with cyclic import is solved.
The example of the project structure while working with the flask-classful library:
Original: Instead of the standard routing method described in the documentation, you can use classy. With this approach, you do not need to manually write routing for view: it will be configured automatically based on the names of your classes and methods. This allows you to increase the structure of the code, as well as declare a view without an app object. As a result, it is possible to solve the problem of cyclical imports.
Example project structure when using a library flask-classful.
Coincidence? I don't think so ...
[edit]
@Sean-Ewington
Sean, can you reverse the plagiarism / troll votes on this one, please?
[/edit]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
modified 22-Apr-20 14:12pm.
|
|
|
|
|
But the Author of the source on prog.world seems to be SimbirSoft or where I'm wrong?
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I didn't - and still don't - see any attribution on the original - where did you find it?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Maybe I'm wrong, but the first picture in the source at least shows SimbirSoft.
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Looking at the page source, the Prog.world article seems to be a translation of a Russian article from the Simbirsoft blog:
Web-приложения на Flask: как бороться с циклическими импортами / Блог компании SimbirSoft / Хабр[^]
<div class="post__text post__text-html" id="post-content-body" data-io-article-url="https://habr.com/ru/company/simbirsoft/blog/486112/">
All three versions link to the same project on GitHub, which is owned by Simbirsoft.
Possibly the wrong type, but it's not plagiarised.
@sean-ewington Could you have a look and if necessary revert the kicks on the user please.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That's some next rate investigation. Thank you kindly. All fixed.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
|
Thanks for the heads-up
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
I'm not at all sure what you do with it - and Google Translate didn't help with that - you might eat it, drink it, smear it on, wear it, or stick it somewhere. But it "sculpts you body" apparently: androsciencetilaus - Professional Profile[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Asking for help to crack MD5 Hashes
cyrusTT - Professional Profile[^]
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
modified 22-Apr-20 14:23pm.
|
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|