Django tutorial on remote server: how to view in my browser? -


i'm getting started django tutorial, , i've run snag. having created sample "mysite" on usual domain, want able display in browser. tutorial points me http://127.0.0.1:8000. however, that's not going work, i'm doing remotely.

[background information]

what have done, apparently successfully, django-admin.py startproject mysite (created mysite directory containing 4 files) python manage.py runserver (validating models... 0 errors found, etc.)

the absolute path /home/toewsweb/public_html/pythonlab/mysite url should able use bring in browser?

i put mysite @ /home/toewsweb/mysite (since it's not supposed go in publicly accessible directory) url should able use in case?

this virtual private server, have access httpd.conf. have downloaded , installed mod_wsgi , have added apache configuration. did set subdomain documentroot of /home/toewsweb/public_html/pythonlab/mysite; however, when point browser subdomain, directory listing.

[/background information]

right now, want know how view i'm working on in browser.

thanks!

for development purposes, there's no need mess configuring wsgi (although it's useful know, need production). start dev server listens external port:

./manage.py runserver 0:8000 

this binds external ip address, can access django site via port 8000 on server:

http://whatever.my.ip.is:8000 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -