Setting up a Django Project on CodeAnywhere

1k Views Asked by At

I am trying to create a running Django project on CodeAnywhere, but i just cant seem to get it running. i am starting in a very basic manner, with the below code

import webbrowser
webbrowser.open('www.bbc.co.uk')

is it even possible to get this to open a new tab in a webbrowser, and will it be on my local machine or within codeanywhere?

Many thanks

1

There are 1 best solutions below

1
On

This can't work. That code will run on the server, not your machine - but the server won't have an environment to open a web browser.

Try actually writing a Django project.