When I am running http://My_IP:8000 then it is working perfectly but when I am trying to run python manage.py runserver evicharya.com:8000 then it is showing me an error. I am new to deployment, I am working to solve this thing from last 3 days. Once I would run my domain then how I would run it forever ever if I would close my terminal. I have tried to create the Apache server but when I am not able to do it. Will someone please correct me and help me?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Without knowing what the error message you’re a seeing, it’s hard to know the exact problem you’re experiencing. The first thing I would check is that your domain is included in the ALLOWED_HOSTS section of your project’s settings.py file. You’ll likely want it to look like:
ALLOWED_HOSTS = [ 'evicharya.com', 'your.ip.address', 'localhost', '127.0.0.1']
See the Django docs for more information.
When you’re ready to set up your project in a more production-like environment (and not have to run it from the terminal directly), take a look at this tutorial. It should point you in the right direction.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.