TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What's your development environment in your startup using Django?

6 点作者 ravenkat大约 10 年前
We use Django heavily and we have all the requirements in requirements.txt and we do pip install on it. Lot of times, some requirements are not installed properly and we have to do pip install when we see an error message for particular package.<p>The issue we are facing is whenever we run `python manage.py migrate` after cloning the repo&#x2F;pulling the repo, it takes around 30-50 mins.

4 条评论

philipkimmey大约 10 年前
30-50m for .&#x2F;manage.py migrate seems way too long.<p>Are you collapsing your migrations?<p>Unless you need to maintain multiple production environments with different versions of your software you should be doing so with some regularity.
评论 #9261308 未加载
penguinlinux大约 10 年前
Vagrant and Ansible to provision a vm with nginx python django supervisord.<p>Then if you want to load the database we have a shell script wrapper that can do a few things.<p>Load an sql from an s3 private bucket to refresh your local database, so even if you crash anything you can always fix things with a quick shell command. We also tie things into newrelic and sentry to help us debug code locally before it even gets to sandbox or prod.
lsemel大约 10 年前
Share an SQL dump of the database with your developers, so new developers can just load that instead of going through all the migrations.
cjbprime大约 10 年前
The title is general, but your post question is <i>extremely</i> specific. You should change the title.
评论 #9260258 未加载