Relative Content

Tag Archive for django

Django with uwsgi not service static files

I am running a django app using uwsgi and docker. When i open the admin panel, it’s all messed up. I figured it’s because the static files are giving 404. How do i fix this?

Keeping “historical” migrations in Django-south

After a system has gone through many migrations, and evolved enough for a second version, does it make sense to keep the old migrations around? I mean, old versions will use them to upgrade to the new one, sure, but should a fresh install have its database go through all the “historical” changes before arriving at the current shape? My gut feeling is that a fresh install should create the database “as it is”, not go through every mistake that was made in the product lifecycle until reaching a stable condition.

Should one generally develop a client library for REST services to help prevent API breakages?

We have a project where UI code will be developed by the same team but in a different language (Python/Django) from the services layer (REST/Java). The code for each layer exits in different code repositories and which can follow different release cycles. I’m trying to come up with a process that will prevent/reduce breaking changes in the services layer from the perspective of the UI layer.