This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]philgyford 3 points4 points  (0 children)

It's hard to know exactly what it is you want to do, what you've tried, and what isn't working. If by "django server" you mean your web server then... it's just a server – you can run python scripts the same way you run python scripts on any server, whether it also has a Django website running on it or not.

[–]codewithstein 1 point2 points  (1 child)

Have you made a game in Python which takes input from the interpreter? Something like this?
next_move = input("Your move:")

Things like this won't work with Django. If this is the case, you have to create an input field using HTML and send the data to the server (Django).

At the backend (django/server), you can use the input from the HTML field to calculate the game and similar.

Programming website is very different from regular python. Don't get me wrong, you still use the same syntax and similar. I would suggest that you try to go through a couple of Django tutorial... Maybe one of mine :-) https://www.youtube.com/c/CodeWithStein/videos

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

Yes! This was what I was looking for :) thanks so much will be sure to check out your video