Look at "Sites" in the admin. On Thu, Aug 6, 2015 at 5:03 PM, Malik Rumi <malik.a.r...@gmail.com> wrote:
> I have 1 model from my django project up and running on django. Before > adding more models and content, I wanted to use my actual domain name, > instead of whatever.herokuapp.com. So after I got that straight, I > realized that while the home page was mysite.com, the links were still > mystite.herokuapp.com, which I think is a problem. But I also thought > there had to be an easy fix for this, especially after I saw a post while I > was searching for solutions that said django only cares about the stuff > that comes *after* the domain name. So the first thing I did was change a > hardcoded link in my navbar from mysite.herokuapp/newpage to mysite/newpage > in my dev site. But testing it the url still said > mysite.herokuapp.com/newpage. Then I got an idea, and I just manually > changed the url to mysite/newpage and what do you know, it came up > correctly. then I clicked around and suddenly all the pages on my model are > coming up that way, which they were not half an hour ago. So the question: > What did I do right? > > Here are my working theories: > > 1. The dns change, which I also did half an hour ago, worked for the home > page immediately (I tested it at the time) but needed to propagate more for > the other pages to work, which they do now. > > 2. By changing the url manually, django just fed the pages as requested > without concern about the domain part of the url. If I start from > mysite.herokuapp.com home page, the links still come up with that domain > name. > > But how do I make this both universal and permanent? > > A. I could change allowed hosts setting, taking the herokuapp part out > > B. Do nothing, it works now and I should leave well enough alone. > > C. ????? Your answer here ... > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3ded9a89-b20f-489d-aadb-667ab62fdb53%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3ded9a89-b20f-489d-aadb-667ab62fdb53%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0tts4pc%2B0EL7iKmpJZ6T2w8qDUqeyk_FteGOyR%3DKF5DMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.