[ GSoC2016 ] Integration of django and angular2

1,199 views
Skip to first unread message

Вадим Горбачев

unread,
Mar 9, 2016, 3:33:49 PM3/9/16
to Django developers (Contributions to Django itself)
Hello.

I am a student of the St. Petersburg State Polytechnical University.
But I am also a web-developer .

Now the problem of integration of django and angular2 is very interesting to me.
And I want to submit the application in this direction.

Reason:
 There are many decisions on the basis of django + angularJS, 
 and it is good to aggregate this knowledge that will help many developers not to step on the same rake.
 Very big contribution to the solution of this problem can be found here

 But with an exit of ECMAscript6 and angular2, there is a wish to pass to them somewhat quicker.
 ECMAscript6 is awesome!

Question:
 Whether there will be interestingly this task to community?
 Or to look for a work subject more approximate to the offered list?

thanks in advance!

Tim Graham

unread,
Mar 9, 2016, 7:26:08 PM3/9/16
to Django developers (Contributions to Django itself)
I'm not sure what the end product you have in mind would look like, but I don't think Django (core) is going to adopt tight integration with any JavaScript framework. You pointed to a third-party package... what's the problem with it and how would your proposal differ?

Cristiano Coelho

unread,
Mar 9, 2016, 9:20:58 PM3/9/16
to Django developers (Contributions to Django itself)
In my opinion angular + django + django-rest-framework is a very powerful combo, and using django templates mixed with angular (for anything else than the index page) is really a bad idea due to templates being very slow and rendered by python. Angular must run against a 100% web api with its own template framework running everything client side. If I'm not wrong django-angular uses this angular + django templates aproach, would the one with angular2 be any different?

Вадим Горбачев

unread,
Mar 10, 2016, 5:02:09 PM3/10/16
to Django developers (Contributions to Django itself)
yes. really... bad idea.
I wanted to offer something similar to generation of hello world angular2-app under API.

for example:
we connect django-rest-framework-jwt (https://github.com/GetBlimp/django-rest-framework-jwt) in our project.
And a magic image to us angular service for work with API of authorization/registration and the logician of receiving JWT from the server on the client is generated.

or for example:
we create the test model and does for it rest api.
then (too in a magic way) test-service.ts is generated

Idey was in collecting best-practice of use angular-django and to give to the developer the new level of abstraction.
It can be compared as Django - SQLAlchemy - DataBase <<==>> of angular2 - (the project which I wanted to offer) - Django.

But now I consider that it is senseless and too abstract.
it is necessary to find other task.

четверг, 10 марта 2016 г., 3:26:08 UTC+3 пользователь Tim Graham написал:

bliy...@rentlytics.com

unread,
Mar 10, 2016, 8:10:31 PM3/10/16
to Django developers (Contributions to Django itself)
In terms of a front end application using django views you can totall implement angular, and do whatever you want.  If you're proposing that the backend be rewritten in angular, I think that is probably unnecessary overhead for what the admin is supposed to do, and will make customizing it considerably more difficult.
Reply all
Reply to author
Forward
0 new messages