Question

I'm a front-end developer but I need to work with a Python/Django developer on a web project in the summer. I don't necessarily want to learn Django but I want to become competent in learning how to navigate myself around and know the best practices in editing the front-end for a Django project. I know HTML/CSS/JS. I have some experience in editing front-end on a RoR framework.

How long should I expect the learning curve to take? Any resources you would recommend?

General advice would be greatly appreciated.

Was it helpful?

Solution

Start by going through the templating section of the manual to be familiar with the design language. The rest of the manual is also very light reading, but not necessary for your needs.

Since you have some exposure to rails, you should know that unlike rail's default template engine, django's does not allow Python in the template. This is by design. There are lots of built-in filters and tags that provide most of the logic you would need. Developers can always write custom filters and tags, and some django applications ship with their own tags and filters. For your needs, you just need to know what the built-in ones are and how to apply them.

Unlike ruby, there is no strict concept of "asset pipeline" and built-in javascript libraries. Django's admin site (the CRUD front end) ships with jquery but its namespaced so you won't run into conflicts. Basically, in django - use whatever javascript/front end library tickles your fancy.

I found django's template language to be very easy to understand and you should not have any problems - especially with your familiarity with rails.

OTHER TIPS

I think the best introduction to Python using the Django framework is simply following the Django tutorial found on their website:

Django Tutorial

The key here is to not simply copy-paste and breeze through the tutorial to get to the end product. Really try to understand each step of the process. The tutorial covers pretty much all the basics of what you'll want to know.

After that, there are several titles

Best way to learn Django I found was through, The Django Book http://www.djangobook.com/en/2.0/index.html

You can start reading it, specially chapter three (views) and four (templates) will help you figure out how front end is handled in Django.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top