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. …
Author
Released
3/15/2019- 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
Duration
Views
Related Courses
-
Python: Design Patterns
with Jungwoo Ryoo1h 59m Intermediate -
Code Clinic: Python
with Barron Stone1h 51m Intermediate
-
Introduction
-
What you should know1m 44s
-
1. Digital Ocean
-
Digital Ocean account2m 1s
-
Creating a droplet4m 11s
-
Securing your server4m 50s
-
Postgres setup7m 46s
-
Configuring settings files3m 56s
-
Testing deployment5m 3s
-
Gunicorn testing6m 46s
-
NGINX setup5m 24s
-
Connecting your URL4m 3s
-
-
2. AWS
-
AWS account4m 5s
-
Testing your site3m 33s
-
Migrate4m 51s
-
S3 storage setup6m 35s
-
Static and media files9m 48s
-
Custom URL4m 45s
-
-
3. Heroku
-
Heroku account4m 12s
-
Deploying on Heroku5m 55s
-
Database on Heroku5m 25s
-
Static and media files6m 22s
-
Custom URL4m 21s
-
-
4. Azure
-
Database setup3m 43s
-
Configuring settings files2m 56s
-
Testing deployment4m 3s
-
Gunicorn testing4m 59s
-
NGINX setup6m 36s
-
Connecting your URL2m 27s
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Configuring settings files