Skip to content

Latest commit

 

History

History
55 lines (30 loc) · 2.2 KB

README.md

File metadata and controls

55 lines (30 loc) · 2.2 KB

Domain

Heroku gave you a domain, but it's long, hard to remember, and ugly. It'd be awesome to have a domain name that is short and easy to remember, right?

In this chapter we will teach you how to buy a domain and direct it to Heroku!

Where to register a domain?

A typical domain costs around $15 a year. There are cheaper and more expensive options, depending on the provider. There are a lot of companies that you can buy a domain from: a simple google search give hundreds of options.

Our favourite one is I want my name. They advertise as "painless domain management" and it really is painless. We asked them if they wanted to support Django Girls and they gave us a 20% discount code for you! :) Ask organizers or coaches for it!

How to register domain in IWantMyName?

Go to iwantmyname and type a domain you want to have in the search box.

You should now see a list of all available domains with the term you put in the search box. As you can see, a smiley face indicate that the domain is available for you to buy, and a sad face that it is already taken.

We've decided to buy djangogirls.in:

Go to checkout. You should now sign up for iwantmyname if you don't have your account yet. After that, provide your discount code, credit card info and buy a domain!

After that, click into Domains in menu and choose your newly purchased domain. Then locate and click on manage DNS records link:

Now you need to locate this form:

And fill it like this:

  • Hostname: www
  • Type: CNAME
  • Value: your domain from Heroku (for example djangogirls.herokuapp.com)
  • TTL: 3600

Click Add button and Save changes at the bottom.

It can take up to couple of hours for your domain to start working.

Configure domain in Heroku

You also need to tell Heroku that you want to use your custom domain.

Go to Heroku Dashboard, login with your Heroku account and choose your app. Then go into app Settings and add your domain in Domains section and save changes.

That's it!