RSS

Blog

Django: Handling media across development stages

h37 Nov 2011 –  Comments (1)

Comments

I'm struggling to understand your scenario.

You say you are sharing the database, but not content?

That seems very bizarre, and is probably why you got little response from the community. The normal setup would be:

1) You have a development machine, with its own source code, uploaded media files and database.

2) You have a production machine, which is the live site, with its own source code, uploaded media files and database.

3) You deploy from development to production (possibly with 'staging' in between), and this process takes care of updating source code (which includes static media files) and database. You can do it one command, so it is not a chore.

So, if you want to see what the client is doing, you have a look at the production site (or possibly staging) which looks exactly the same for you both, since it is one site.

The development and production should never meet. But it seems like your setup is quite different from this.

I also can't understand why you would be having merge conflicts from user uploaded files. If the file is user uploaded, then the user's version is the only one that counts, so if you want a copy of the live site, you periodically download both a database dump and all the user files, overwriting what you have on development. The only time the developer should be editing media files is if they are 'static' and under source control. If your client is also editing them, you will obviously need to cooperate, but that doesn't seem to be what you are talking about.

[] Luke Plant ~ 3 months, 2 weeks ago at 8:03 a.m.

Copyrighted stuff .. u know.