In this video, learn how to specify the settings you need for your new database.
- Now there's a few changes we're going to have to make … to our settings file so let's go ahead … and do nano portfolio-project/portfolio/settings. … Inside of this file we're going to edit a couple of things … so the first one is the ALLOWED_HOSTS. … So this is going to say … who can access this website from where. … Well one of them is we want for sure to be able … to be accessible from the IP address. … So you can see at the top of Terminal here … we do have the IP address … so I can go ahead and just type that in. … 13, in my case. Point 82, point 189. … Or seven years will likely be different. … And if you're going to use a customized URL, … this would be your place to add it. … So after ALLOWED_HOSTS here, we're going to add a comma, … then another string and I'll do nickwalter.info, … single quote. … And let's do www.nickwalter.info there as well, … end with the single quotes. … Now we have a list of three strings. … If you don't have a custom domain, … you can just do the first IP address as a string there. …
- Transferring code to a server
- Managing media files
- Creating a custom URL
- Configuring file settings
- Securing a server
- Database setup
- PostgreSQL setup
- Gunicorn testing
- NGINX setup
- Storage setup
Skill Level Intermediate
What you should know1m 44s
1. Digital Ocean
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.