7 ms·
Does Django have an equivalent for Laravel's Homestead?
by wenbert 9y ago
Does Django have an equivalent for Laravel's Homestead?
- collinmanderson 9y agoOne thing that's similar is https://github.com/django/django-box 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.
- dguaraglia 9y agoNot 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.
- GoodbyeEarl 9y agoI've realized last week these simple steps to run a Django project, but, as I come from Node, I miss npm start.
- wenbert 9y agoI 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.
- brianwawok 9y agoYou don't use nginx in dev.
- Walkman 9y agoI do. with very similar configuration to production
- brianwawok 9y agoWhy? Not that hard to set up but seems overkill.
- teilo 9y agoIt'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.