Skip to content

Instantly share code, notes, and snippets.

@rj76
Created July 28, 2015 06:12
Show Gist options
  • Save rj76/4f12f2706f8051de70fa to your computer and use it in GitHub Desktop.
Save rj76/4f12f2706f8051de70fa to your computer and use it in GitHub Desktop.
Demovibes source cleanup

I looked at the existing codebase and taking into account my experiences with previous Django projects/deployments I would suggest to do the following:

  • Change directory structure to something more modular and structured
  • Lose all old south migrations and create inital ones for 1.8
  • Check all models for changes with 1.8, because there will be
  • Get a mysql slave up on my vps to test the new setup
  • Use nginx as reverse proxy for gunicorn and to serve static content (and node.js if it's used)
  • Use supervisord to keep an eye on processes (gunicorn, node.js, etc.)
  • Integrate existing config in a more generic way of handling configs (dev/staging/live)
  • Start rewriting views (from what I have seen, this should be quite doable with existing packages like django-class-based-auth-views and the work already done)
  • All jinja2 => django templates (yawn, this is going to be the boring part)
  • All ajax and client side JS that needs refactoring
  • Make it deployable via Travis-CI

Like I said, would be cool to be able to do this, but the changes are quite radical, so I forked the repo and will start working on that.

Cheers, Richard

@rj76
Copy link
Author

rj76 commented Jul 30, 2015

Oh yeah, from the changelog of 1.6:

Pillow is now the preferred image manipulation library to use with Django. PIL is pending deprecation (support to be removed in Django 1.8). To upgrade, you should first uninstall PIL, then install Pillow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment