#pocoo

/

      • alexband joined the channel
      • chars6 has quit
      • alexband joined the channel
      • chars6 joined the channel
      • melissa666 has quit
      • chars6 has quit
      • chars6 joined the channel
      • tomkralidis has quit
      • chars6 has quit
      • alexband joined the channel
      • chars6 joined the channel
      • KOR_Solidarity joined the channel
      • rsrx has quit
      • p-i- joined the channel
      • }ls{ has quit
      • kotepillar_ joined the channel
      • gid1 has quit
      • divno joined the channel
      • gid1 joined the channel
      • kotepillar_ has quit
      • kotepillar_ joined the channel
      • kotepillar_ has quit
      • gid1 has quit
      • Hasimir joined the channel
      • gid1 joined the channel
      • kotepillar_ joined the channel
      • brunorocha joined the channel
      • tonyseek joined the channel
      • v01d4lph4 joined the channel
      • giskard_ has quit
      • giskard joined the channel
      • keaj joined the channel
      • keaj
        hey, is there a way to use the git protocol with flask?
      • krisfremen
        keaj: not directly, but wrappers around it are sure possible if you write them
      • I'm not aware of any at the moment
      • JesseH has quit
      • jayjo_ has quit
      • divno has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • melissa666 joined the channel
      • melissa666 has quit
      • pi- joined the channel
      • kotepillar_ has quit
      • pi- has quit
      • kotepillar_ joined the channel
      • energizer joined the channel
      • tonyseek has quit
      • pi- joined the channel
      • kotepillar_
        https://dpaste.de/Wn0f Error: find any foreign key relationships between 'parent' and 'child' , I don’t want to use real ForeignKey, so only use primaryjoin
      • anyone have ever encounter this kind matters
      • alexband joined the channel
      • tonyseek joined the channel
      • tonyseek has quit
      • tonyseek joined the channel
      • divno joined the channel
      • JesseH joined the channel
      • tayfun26 joined the channel
      • tvm joined the channel
      • damienxx joined the channel
      • antgel has quit
      • xliiv joined the channel
      • OpenCode joined the channel
      • El_Rolando joined the channel
      • jtay joined the channel
      • MessedUpHare joined the channel
      • tino097 joined the channel
      • linuxson joined the channel
      • briner joined the channel
      • linuxson
        Getting a weird error with flask-mongoengine, even though I strictly following the docs tutorial? When creating the User class with MongoEngine's built-in WTForms module, returns a "Unresolved attribute reference 'StringField' for class MongoEngine"
      • h8R joined the channel
      • ThiefMaster
        just don't use mongo ;)
      • and where are you getting the error? do you have a traceback?
      • antgel joined the channel
      • antgel_ joined the channel
      • tino097 has quit
      • cyp3d has quit
      • linuxson
        ThiefMaster: Lol...yeah yeah, me and Mongo...again. It's not showing in the stack or anything, just a weird error which I am seeing directly in PyCharm's linting, which is weird
      • ThiefMaster
        oh, ignore it.
      • this inspection is utter garbage since it cannot handle anything that's dynamic
      • linuxson
        ThiefMaster: But now I can't really be sure if my form is not working correctly because of that, because even though I fill in all the fields, doesn't seem to validate
      • ThiefMaster: Get directed back to login
      • cyp3d joined the channel
      • ThiefMaster
        stuff like `globals().update(...)` in a module won't be seen by the inspection for example
      • failing csrf validation? dunno.
      • don't redirect on form errors but rather show the errors
      • linuxson
        ThiefMaster: Have done that...returns field empty errors...which I can't figure out why, as the csrf token is included in the form?
      • ThiefMaster: Installing the flask debugtoolbar quick, maybe that'll provide some insights
      • v01d4lph4 has quit
      • tino097 joined the channel
      • gid1 has quit
      • gid1 joined the channel
      • pi- joined the channel
      • ncv__ joined the channel
      • ncv__ joined the channel
      • MessedUpHare has quit
      • v01d4lph4 joined the channel
      • MessedUpHare joined the channel
      • alexband_ joined the channel
      • tdn joined the channel
      • ncrocfer joined the channel
      • ncrocfer has left the channel
      • DasIch joined the channel
      • }ls{ joined the channel
      • ncrocfer joined the channel
      • lcabrera joined the channel
      • ncrocfer has left the channel
      • briner has quit
      • briner joined the channel
      • fmerges joined the channel
      • divno has quit
      • oweissbarth joined the channel
      • bomb-on joined the channel
      • montreal has quit
      • keaj has quit
      • rsrx joined the channel
      • ub joined the channel
      • ramonski joined the channel
      • ramonski
        Hi everyone, I have a short question regarding the SECRET_KEY generation. Do I have any disadvantages if I generate the key in a config object instead of having a static value in there? E.g. doing this: SECRET_KEY = binascii.hexlify(os.urandom(32)).decode("ascii")
      • fleetfox
        you probably don't want differt key on each boot
      • krisfremen
        ramonski: if you restart the app, all the cookies will be invalidated
      • infrared
        not to mention in debug mode the auto reloader will cause rage
      • ramonski
        Thanks for your reply. Indeed any existing cookies will be invalidated and I would just do it for the Production config. However, I'm not sure if invalidated cookies would be that bad. In the worst case, the logged in users would have to re-login...
      • ThiefMaster
        yes it would be bad.
      • infrared
        ramonski: just stop. bad idea.
      • ThiefMaster
        your wsgi container may very well restart its workers after every X handled requests
      • infrared
        ramonski: if you spawn N workers each worker has a different secret
      • ThiefMaster
        to reduce the impact of memory leaks etc
      • ah yes, that as well
      • ramonski
        ah, good point. Thanks for that insight
      • Ok, I just wanted to ensure that a secure secret is set in production mode. But probably I need to check that on startup and raise early an error
      • infrared
        just bash on your keyboard and save it
      • ThiefMaster
        no need to actually check if the secret is garbage or not in your code
      • ramonski
        Yeah, I thought so as well. But as it is open-source and in GitHub, it is not that secure...
      • ThiefMaster
        ummm
      • infrared
        dude
      • terrible
      • ThiefMaster
        you don't put your config files on github.
      • krisfremen
        why would you commit your secret key?
      • ramonski
        The base-config only, and there is something like SECRET_KEY="dev"
      • However, if someone deploys the app, I wanted to be sure that this is overwritten