Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics What a View! Running the Server

installing django on go daddy and how to point it to a domain that i have so that it loads my django application

i have the hosting in godaddy..i managed to install python(3.6.2) and django on shared server(vitual env).every thing works fine.. but i have a domain(say: www.xyz.com). i have no idea on how to load those django content when i go to the my domain can anyone help pls

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Who is your domain purchased through? Godaddy, or someone else? You'll need to have DNS records with whoever hosts your domain name, that points to your server IP.

Godaddy should have help articles, and information about what name servers to point to, and your domain provider should also have help articles.

Hi, thanks for the quick response. Yes i have the domain purchased from Godaddy. Unfortunately, godaddy is not having any documentation on django.. domains are all linked but I don't know how to setup django to load when I visit my domain.

it is said that use "do python manage.py runserver 0.0.0.0:8000" here but that is not going to work for me when i am doing it on my hosting plans. i dont where and how the linking happens

Kevin Korte
Kevin Korte
28,149 Points

Yeah, no problem. I'll be honest I know almost nothing about python, and django, but I've set up a few node and ruby servers before, and usually setting up the servers is fairly similar.

The general idea though is that routing a domain name to a server is generally independent of what's on the server, since you're dealing with DNS records. Installing the app at the root of your server, and then changing the DNS records so xyz.com routes to your servers root, is the overall goal.

Does this help you at all? https://stackoverflow.com/questions/12658427/installing-a-django-site-on-godaddy

It seemed similar to what you were trying to do.