Hacker News new | ask | show | jobs
by wenbert 3356 days ago
Does Django have an equivalent for Laravel's Homestead?
3 comments

One thing that's similar is https://github.com/django/django-box.

It's a Vagrant box primarily intended for developing Django itself. It includes Postgres, MySQL, Memcached, Sphinx, Pillow, selenium, and multiple versions of Python.

Not sure that's really necessary with Django. Lavarel, like most PHP frameworks, require an HTTP server configured with just the right version of PHP, etc. just for development. Django is much simpler:

- django-admin startproject MyProject - cd MyProject - python manage.py migrate - python manage.py runserver

That should give you a very decent development server without requiring VirtualBox or anything like that. I'd recommend following the official tutorial if you want to give it a spin.

I really think it needs it. Although "start project" works as it is, I can't be bothered installing MySQL and configuring nginx - that takes a bit of time especially if you miss something.

There should be something like this for Django with all the "de facto" tech that a dev might need.

You don't use nginx in dev.
I do. with very similar configuration to production
Why? Not that hard to set up but seems overkill.
I've realized last week these simple steps to run a Django project, but, as I come from Node, I miss npm start.
Why not use a Makefile or Invoke (written in Python) to achieve this?. That's what I have been doing.
What's the difference?
It's not terribly difficult to roll one's own using Vagrant and Ansible. We maintain a project template for this in a git repository, where playbook resources are shared between development and deployment. Other than paths and which configs in Django are used, this makes development and depolyment nearly identical. It also makes spinning up a new project trivial. Just a couple commands.