Django urls and Angular ui-router

103 views
Skip to first unread message

ABEL D

unread,
Jul 1, 2015, 6:08:44 AM7/1/15
to django-d...@googlegroups.com
Hi,

I am front end developer in django & angularjs app.  For each templates and partials do i need to define its urls or is there a way to get files from server withour defining the template's url. Without defining its giving 404 error.  It is a pretty big app. So there are lots of templates and partials do i need to define each one of them in django url?

Curtis Maloney

unread,
Jul 1, 2015, 6:22:49 AM7/1/15
to django-d...@googlegroups.com
This question really belongs on django-users ... this list is for discussion about the development _of_ Django, not _with_ django.

That said, it's quite specific in Django that URLs do not map to Templates - they map to View functions.  So, depending on your case you should easily be able to have one url pattern [with arguments] map to a single view that can serve a multitude of templates, based on the arguments.

--
Curtis


On 1 July 2015 at 18:00, ABEL D <abel....@gmail.com> wrote:
Hi,

I am front end developer in django & angularjs app.  For each templates and partials do i need to define its urls or is there a way to get files from server withour defining the template's url. Without defining its giving 404 error.  It is a pretty big app. So there are lots of templates and partials do i need to define each one of them in django url?

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/377bc0ea-6191-408d-8781-48066309b252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages