Angular 2 + Django + Postgresql

78 views
Skip to first unread message

yeddu.j...@gmail.com

unread,
May 8, 2017, 7:08:04 AM5/8/17
to Django users
Dear Experts, 

I am planning to build an application using this stack. Any blogs / videos / Links that can help me understand how these three connect will be a great help.

Specific questions I am trying to answer are.

  1. Will I be able to integrate Django with Angular easily. Does this need to be done using DRF? Will the angular interpolation cause clashes with Django if I use Django interpolation?
  2. Can I drop Angular and develop the same Single Page Application capabilities with HTML5+Bootstrap? Need to ensure I have ability to refresh a specific blocks / regions / components like you can do in Angular SPA.
  3. I am using Windows 10 and looking for some document to make my Django setup work with Postresql
  4. Can I create my tables in Postgresql first, create the models in Django and then run migrate so the app is in Sync with the database.

Matthew Pava

unread,
May 8, 2017, 9:11:01 AM5/8/17
to django...@googlegroups.com

There is a third-party app for Django and Angular called Djangular:

https://github.com/appliedsec/djangular

 

I have used neither Angular nor Djangular.

 

I do use Windows 10 with PostgreSQL without any problems.  You don’t need to create tables in PostgreSQL.  Just run the migrate command.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/af508944-b3a3-4ee5-9841-ac7b796d7e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elorm Koku

unread,
May 8, 2017, 10:26:44 AM5/8/17
to django...@googlegroups.com
My best bet: expose django with drf and use angular as a frontend. 

On May 8, 2017 1:10 PM, "Matthew Pava" <Matthe...@iss.com> wrote:

There is a third-party app for Django and Angular called Djangular:

https://github.com/appliedsec/djangular

 

I have used neither Angular nor Djangular.

 

I do use Windows 10 with PostgreSQL without any problems.  You don’t need to create tables in PostgreSQL.  Just run the migrate command.

 

From: django...@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of yeddu.j...@gmail.com
Sent: Monday, May 8, 2017 12:00 AM
To: Django users
Subject: Angular 2 + Django + Postgresql

 

Dear Experts, 

 

I am planning to build an application using this stack. Any blogs / videos / Links that can help me understand how these three connect will be a great help.

 

Specific questions I am trying to answer are.

 

  1. Will I be able to integrate Django with Angular easily. Does this need to be done using DRF? Will the angular interpolation cause clashes with Django if I use Django interpolation?
  2. Can I drop Angular and develop the same Single Page Application capabilities with HTML5+Bootstrap? Need to ensure I have ability to refresh a specific blocks / regions / components like you can do in Angular SPA.
  3. I am using Windows 10 and looking for some document to make my Django setup work with Postresql
  4. Can I create my tables in Postgresql first, create the models in Django and then run migrate so the app is in Sync with the database.

--
You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Yeddu J Prasad

unread,
May 8, 2017, 11:16:48 AM5/8/17
to django...@googlegroups.com

Thank you Matthew. I will check this out.

 

The only reason I wanted to create the tables first in PostgreSQL is to ensure that I have all the relations right. The schema is quite complex with multiple levels of hierarchical relations & constraints. If this is not possible, I will go the Django way and use migrate.

 

Thank You.

Yeddu J Prasad

unread,
May 8, 2017, 11:19:08 AM5/8/17
to django...@googlegroups.com

Thank you Elorm.

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of Elorm Koku
Sent: Monday, May 8, 2017 7:56 PM
To: django...@googlegroups.com
Subject: RE: Angular 2 + Django + Postgresql

 

My best bet: expose django with drf and use angular as a frontend. 

On May 8, 2017 1:10 PM, "Matthew Pava" <Matthe...@iss.com> wrote:

There is a third-party app for Django and Angular called Djangular:

https://github.com/appliedsec/djangular

 

I have used neither Angular nor Djangular.

 

I do use Windows 10 with PostgreSQL without any problems.  You don’t need to create tables in PostgreSQL.  Just run the migrate command.

 

From: django...@googlegroups.com [mailto:django...@googlegroups.com] On Behalf Of yeddu.j...@gmail.com
Sent: Monday, May 8, 2017 12:00 AM
To: Django users
Subject: Angular 2 + Django + Postgresql

 

Dear Experts, 

 

I am planning to build an application using this stack. Any blogs / videos / Links that can help me understand how these three connect will be a great help.

 

Specific questions I am trying to answer are.

 

  1. Will I be able to integrate Django with Angular easily. Does this need to be done using DRF? Will the angular interpolation cause clashes with Django if I use Django interpolation?
  2. Can I drop Angular and develop the same Single Page Application capabilities with HTML5+Bootstrap? Need to ensure I have ability to refresh a specific blocks / regions / components like you can do in Angular SPA.
  3. I am using Windows 10 and looking for some document to make my Django setup work with Postresql
  4. Can I create my tables in Postgresql first, create the models in Django and then run migrate so the app is in Sync with the database.

--
You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.


To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

marcin....@gmail.com

unread,
May 9, 2017, 5:11:24 AM5/9/17
to Django users
From my personal experience:
  • make frontend (angular) almost 100% separate from backend (django)
  • if you want to build truly restful service, avoid DRF (more precisely -- avoid whole "magical" model views, which implements CRUD antipattern)
  • focus on hypermedia (i.e. use Hydra, or start with something custom -- going restful is a process)
  • avoid django forms if possible (use Colander, for example)
 
DRF will give you big community, rich features, more skilled devs and rapid developemnt (especially at the initial stage), but later it may introduce limitations. 
Just my 5 cents.

Marcin
Reply all
Reply to author
Forward
0 new messages