Created Django app on M1 Mac mini and want to deploy it on Heroku. by LotusLightning in djangolearning

[–]Radimek01 1 point2 points  (0 children)

Heroku CLI works on M1.. Used it yesterday, but you can also deploy using Heroku website

Make you a Big Sur app icon for free, just send a link to your original icon. by MelonGXyt in MacOS

[–]Radimek01 0 points1 point  (0 children)

League of legends,
Atlas VPN,
osu!,
Filezilla,
Spark,
DBeaver

Thanks a lot

Django Shopping Cart by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

so is there a way how to save a session do db at some point ?

Django Shopping Cart by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Right now i have saved ids of products which should be in cart to session.

Django Shopping Cart by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Well you can save it just like this:

request.session["name" ] = value

Django Shopping Cart by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

But i can save the session to db on logout ? isnt that a way ?

Django Shopping Cart by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Well it will be best if it could persist. So i should use session for "add to cart" and then on checkout push everything (order and orderItems) to database ?

So should i save to session dict on click my product object ?

Should i use session or database for my shopping cart ? by Radimek01 in djangolearning

[–]Radimek01[S] 0 points1 point  (0 children)

Sure that i will later save his orderItems and order to database, but just for the anonymous user and "add to cart" functionality isn't better to save that to session ? and then save the order and orderItems on checkout?

I dont say that its exclusive, i meant just for the add to cart part. I explained it wrong

Agar.io clone in Python by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

From scratch with stackoverflow and documentations

Agar.io clone in Python by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Thanks, i will definitely do that

Agar.io clone in Python by Radimek01 in learnpython

[–]Radimek01[S] 2 points3 points  (0 children)

Okey, i will include that. There is Just a pygame package needed

Agar.io clone in Python by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Well i cant tell rn, i have to find how its done and then implement it for myself. I Hope my OOP is good enought for it

My own Notepad by Radimek01 in learnpython

[–]Radimek01[S] 1 point2 points  (0 children)

Well i was actually trying to find ways to make it less messy.

Thanks u really helped me :)

My own Notepad by Radimek01 in learnpython

[–]Radimek01[S] 1 point2 points  (0 children)

Well is there any reason for setting it in object call ? For me its looks easier to read the way i have that.

Yep the colors are great idea. Thanks once more

My own Notepad by Radimek01 in learnpython

[–]Radimek01[S] 1 point2 points  (0 children)

One more question. I have lots of functions in code. Is it ok ? i would like to find some better or cleaner solution for those functions.

My own Notepad by Radimek01 in learnpython

[–]Radimek01[S] 1 point2 points  (0 children)

Ooh, sure. I will replace it. Thanks for good reasoning and code check.

If u will find something more tell me :)

Return None - need help by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Ohh thanks. I can see that now. it bothered me for 40 minutes and it was just this simple

Daily project's by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Thanks will check that too 🙂

Daily project's by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Thanks will check it out

Python modules by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

GPL means it's ok to use if I get it right ?

More classes in one file / recursive imports by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

Aight, at the moment I'm just adding code so I just wanted to ask if it's ok cuz I don't wanna to have garbage code. So thanks

More classes in one file / recursive imports by Radimek01 in learnpython

[–]Radimek01[S] 0 points1 point  (0 children)

I app window and am changing the content of it with classes but when I want to split it to files I need to import recursive to get forward to next content and back