Re: Are URL namespaces optional or are they used by default by Django?

2018-01-10 Thread Stodge
an app from Django 1.6.x to 1.10.x and I'm hitting a problem > with URL namespaces. I don't specifically configure any namespaces in my > URLs but Django seems to think that all my app URLs are namespaced. The > documentation seems to imply that namespaces are optional and onl

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
réas >> >> 2017-12-21 17:02 GMT+01:00 Stodge <sto...@gmail.com>: >> >>> I am using a prefix when I include the URLs for each app: >>> >>> for app in settings.SITE_APPS.get_application_list(): >>> url_prefix = r'^%s/' % app >>>

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
URLs for each app: >> >> for app in settings.SITE_APPS.get_application_list(): >> url_prefix = r'^%s/' % app >> urlpatterns += [ >> url(prefix, include(url_include)), >> >> ] >> >> I just assumed this isn't us

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
odge wrote: >> >> I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a problem >> with URL namespaces. I don't specifically configure any namespaces in my >> URLs but Django seems to think that all my app URLs are namespaced. The >> documentation seems to imp

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
the namespace parameter on include()? On Thursday, 21 December 2017 10:38:36 UTC-5, Stodge wrote: > > I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a problem > with URL namespaces. I don't specifically configure any namespaces in my > URLs but Django seems to think

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
app from Django 1.6.x to 1.10.x and I'm hitting a problem >> with URL namespaces. I don't specifically configure any namespaces in my >> URLs but Django seems to think that all my app URLs are namespaced. The >> documentation seems to imply that namespaces are optional and only >

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
to 1.10.x and I'm hitting a problem > with URL namespaces. I don't specifically configure any namespaces in my > URLs but Django seems to think that all my app URLs are namespaced. The > documentation seems to imply that namespaces are optional and only > configured if provided, but m

Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a problem with URL namespaces. I don't specifically configure any namespaces in my URLs but Django seems to think that all my app URLs are namespaced. The documentation seems to imply that namespaces are optional and only

Re: URL namespaces

2016-02-25 Thread James Schneider
ps://docs.djangoproject.com/en/1.9/topics/http/urls/#url-namespaces, > it talks about how to do this, but it always refers to 'applications' > rather than 'models'. > That's because models are only a portion of the functionality of the framework, and usually each app has multiple models ass

Re: URL namespaces

2016-02-25 Thread Alex Heyden
goproject.com/en/1.9/topics/http/urls/#url-namespaces, > it talks about how to do this, but it always refers to 'applications' > rather than 'models'. > > > So can I do: > > *urls.py* > > url(r'^model1/', include('app.urls', appview4model1, > namespace='app.model1'

URL namespaces

2016-02-25 Thread Malik Rumi
Assuming it can be done, what is the proper way to namespace two models in the same app, where both use slugs in the url but have different views and templates? In the docs, https://docs.djangoproject.com/en/1.9/topics/http/urls/#url-namespaces, it talks about how to do this, but it always

Re: URL Namespaces

2014-03-07 Thread anubhav joshi
Thanks. That was quite helpful. Regards Anubhav -- 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+unsubscr...@googlegroups.com. To post to this

Re: URL Namespaces

2014-03-05 Thread Jonathan Baker
ry quickly becomes a reality. Hope this helps, Jonathan On Wed, Mar 5, 2014 at 4:25 AM, anubhav joshi <anubhav9...@gmail.com> wrote: > Can anyone explain how URL Namespaces work in django. > Some examples would be great. > (Apart from those in the docs.) > > Regards, > A

URL Namespaces

2014-03-05 Thread anubhav joshi
Can anyone explain how URL Namespaces work in django. Some examples would be great. (Apart from those in the docs.) Regards, Anubhav Joshi -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Question about URL namespaces

2013-01-07 Thread Amirouche
/latest/api/composite.html#module-composite.views>but the UrlCollection thing is generic enough to be used with any sort of views, at least that's the plan ;) [1] https://developers.google.com/appengine/docs/python/multitenancy/overview When I was reading django's URL document, I com

Re: Question about URL namespaces

2013-01-02 Thread Dae_James
it means a Django application (e.g. django.contrib.admin). > > Cheers, > Ryan > > On 29/12/2012, at 4:44 AM, "Dae James" <daed...@126.com > > wrote: > > When I was reading django's URL document, I come across "URL namespaces". > The raw sentence is &q

Re: Question about URL namespaces

2012-12-29 Thread Ryan Blunden
your question about what "application" means in this context, it means a Django application (e.g. django.contrib.admin). Cheers, Ryan On 29/12/2012, at 4:44 AM, "Dae James" <daeda...@126.com> wrote: > When I was reading django's URL document, I come across "U

Question about URL namespaces

2012-12-29 Thread Dae James
When I was reading django's URL document, I come across "URL namespaces". The raw sentence is "When you need to deploy multiple instances of a single application, it can be helpful to be able to differentiate between instances." I'm very confused here. What the application

Re: How to use URL namespaces in tests?

2012-09-07 Thread e.generalov
Unfortunately in my case, no templates are used. среда, 5 сентября 2012 г., 20:37:06 UTC+6 пользователь Natim написал: > > Ok it is quite easy, you are missing {% load url from future %} in your > template. > > Le jeudi 23 août 2012 09:25:54 UTC+2, e.generalov a écrit : >> >> Url patterns which

Re: How to use URL namespaces in tests?

2012-09-05 Thread Natim
Ok it is quite easy, you are missing {% load url from future %} in your template. Le jeudi 23 août 2012 09:25:54 UTC+2, e.generalov a écrit : > > Url patterns which provided by a django application should be > addressedexternally in > the form of "namespace:name". I guess it will be connected

Re: How to use URL namespaces in tests?

2012-09-05 Thread Natim
I've got the same problem any ideas ? Le jeudi 23 août 2012 09:25:54 UTC+2, e.generalov a écrit : > > Url patterns which provided by a django application should be > addressedexternally in > the form of "namespace:name". I guess it will be connected to the project as > follows: > >

How to use URL namespaces in tests?

2012-08-23 Thread e.generalov
Url patterns which provided by a django application should be addressedexternally in the form of "namespace:name". I guess it will be connected to the project as follows: project/urls.py urlpatterns = patterns('', url('^something/', include('django_something.urls',

Re: Help in understanding URL Namespaces

2009-10-30 Thread Russell Keith-Magee
On Fri, Oct 30, 2009 at 6:03 PM, Continuation <selforgani...@gmail.com> wrote: > > I'm new to Django. Having a great time learning from the doc. > > Normally the doc explains the topics in hand very clearly. But on 1 > subject I'm still confused after going over the doc: UR

Help in understanding URL Namespaces

2009-10-30 Thread Continuation
I'm new to Django. Having a great time learning from the doc. Normally the doc explains the topics in hand very clearly. But on 1 subject I'm still confused after going over the doc: URL Namespaces. Can someone explain to me what URL Namespaces is for and how does it work? Any external articles

Re: {% url %} templatetag and url namespaces

2009-08-03 Thread Daybreaker
Thanks, I just reported and found that ticket with your little help. :) It seems this problem doesn't have trivial solutions -- I think it should be documented clearly, or fixed (improved?) later. On 8월4일, 오전11시59분, Russell Keith-Magee wrote: > 2009/8/4 Daybreaker

Re: {% url %} templatetag and url namespaces

2009-08-03 Thread Russell Keith-Magee
2009/8/4 Daybreaker : > > I've fixed the wrong url templatetag to this: > > {% url lab:bbs:view > url_key=lab_object.url_key,board_id=board.id,article_id=item.id %} The problem here is that namespaces can't contain parameters. For example: urlpatterns =

Re: {% url %} templatetag and url namespaces

2009-08-03 Thread Daybreaker
I've fixed the wrong url templatetag to this: {% url lab:bbs:view url_key=lab_object.url_key,board_id=board.id,article_id=item.id %} ...but still I'm getting the error. On 8월4일, 오전11시37분, Daybreaker wrote: > I've slightly fixed the pasted code for readability, and so

Re: {% url %} templatetag and url namespaces

2009-08-03 Thread Daybreaker
I've slightly fixed the pasted code for readability, and so the url templatetag example should be: {% url lab:bbs:view url_key article_id board_id %} On 8월4일, 오전11시34분, Daybreaker wrote: > Hello, > I just started to use URL namespace that was added in the 1.1 release. >

{% url %} templatetag and url namespaces

2009-08-03 Thread Daybreaker
Hello, I just started to use URL namespace that was added in the 1.1 release. I have a somewhat complex url configurations like this: http://dpaste.com/74963/ And in a template, the following url templatetag is used: {% url myapp1:myapp2:view url_key id1 id2 %} I'm getting an error

Re: Url Namespaces

2009-07-27 Thread Vitaly Babiy
Thanks, I knew it had to be somewhere in the docs. Vitaly Babiy On Sun, Jul 26, 2009 at 7:16 PM, Vasil Vangelovski <vvangelov...@gmail.com>wrote: > > See this: > > > http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces > > On Mon, Jul 27, 200

Re: Url Namespaces

2009-07-26 Thread Joshua Russo
On Sun, Jul 26, 2009 at 9:13 PM, Vitaly Babiy wrote: > How does one go about registering a namespace? Not quite sure what you mean by that, but my guess is that you are assuming you need to register your namespace (modules?) before being able to import them. If this is what

Re: Url Namespaces

2009-07-26 Thread Vasil Vangelovski
See this: http://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces On Mon, Jul 27, 2009 at 12:13 AM, Vitaly Babiy<vbabi...@gmail.com> wrote: > How does one go about registering a namespace? > I can't seem to find it in the docs. > Thanks,

Url Namespaces

2009-07-26 Thread Vitaly Babiy
How does one go about registering a namespace? I can't seem to find it in the docs. Thanks, Vitaly Babiy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to