Django’s all about two things: efficiency, and accessibility. Once you’ve gotten started on it, you’ll find yourself settling into a routine pretty quick. It’s just slick like that.
Still, you might find yourself wondering just what sort of workflow is the very slickest – in this day and age, we’re ever looking for ways to be more efficient. Here’s a few pointers to help you find your way toward which Django workflow will flow the fastest.

  • Create a new project and a new app
  • Edit settings and fix the following:
    • Database settings
    • Installed apps
    • Media and admin paths
    • Add CSS and JS paths
  • Edit url.py in the project folder
    • uncomment the admin paths
  • Create a new url.py in the mainapp folder
    • create a path which will display a view called home
  • Django Workflow basicsCreate a folder for new templates
  • Create a base.html file within the templates folder
  • Edit the views.py file
  • Create a media folder within the project folder (this is one level up from the mainapp folder)
  • Edit the mdoels.py file
  • Run syncdb
  • It’s at this point that you should be able to access both your homepage, as well as your admin page, which will output your work by running the development server

Sure, this is just the basic stuff; but it should be applicable to any Django project which you’re getting started on; get this out the way, and you can knuckle down to the actual coding within your views.py file.  Of course, once you’ve gotten started, stuff like changing the database structure might prove a bit less simple; but on the whole, a workflow like this should set you well on your way toward – so sorry – tangoing with Django.

Still, ultimately, it all comes down to personal approach – programming’s an art in that sense. So tell us in the comments what sort of workflow works for – and, of course, any issues you’ve had with Django. We sing its praises a lot here; but nothing’s perfect.

Categories: Sites, Solutions

Leave a Reply