Change site address http://127.0.0.1:8000/ to something like http://www.rajSite.com in Django

348 views Asked by At

I have tried python manage.py runserver www.rajSites.com but didnt work I searched in google for more than 1 hr. No info is available. I am using the development server that comes with Django. How to change https://127.0.0.1 to https://rajSites.com(Own Url).. Please Share your Ideas regarding this... Advance Thanks for helping...

1

There are 1 answers

0
Rahul K On

If you just need to test on your local machine add a host entry in your hosts file (Usually /etc/hosts on Unix and C:\Windows\System32\drivers\etc\hosts on Windows), for example:

0.0.0.0 www.rajsites.com

Now if you open www.rajsites.com on your computer you'll be accessing your localhost