PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 18, 2022

[FIXED] django virtual host

 February 18, 2022     django, mamp, virtualhost     No comments   

Issue

I'm new to django and am coming from the MAMP and PHP world. How do you setup virtual hosts in django for a site? For example, when you run the server, instead of going to 127.0.0.1:8000, I'd like to go to mysite.dev locally? I keep reading about wsgi for Apache, but am unsure if this is the easiest way.

Basically, how do you setup virtual hosts for django? Any links or code is appreciated!


Solution

Keep in mind that unlike PHP, you don't need Apache and virtual hosts to develop and test django applications as django comes with a built-in development server.

You would only need Apache when you are ready to deploy your application, and to set that up you should read how to deploy with wsgi.



Answered By - Burhan Khalid
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,214,210

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing