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

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

2017-12-21 Thread Andréas Kühne
gt; Hope I have explained it good enough :-) >> >> Regards, >> >> Andréas >> >> 2017-12-21 17:02 GMT+01:00 Stodge : >> >>> I am using a prefix when I include the URLs for each app: >>> >>> for app in settings.SITE_APPS.get_applicatio

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

2017-12-21 Thread Stodge
12-21 17:02 GMT+01:00 Stodge >: > >> 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 >> urlpatterns += [ >> url(prefix, include(url_include)

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

2017-12-21 Thread Andréas Kühne
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 that all my app

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

2017-12-21 Thread Stodge
e I'm not using 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 >

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

2017-12-21 Thread Stodge
y optional - you don't have to use it if you don't > want to. > > What is happening that makes you think otherwise? What errors are you > seeing? > > Regards, > > Andréas > > 2017-12-21 16:38 GMT+01:00 Stodge >: > >> I am porting an app from D

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

2017-12-21 Thread Andréas Kühne
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 my experienc

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 optiona

Re: URL namespaces

2016-02-25 Thread James Schneider
/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 associa

Re: URL namespaces

2016-02-25 Thread Alex Heyden
o? On Thu, Feb 25, 2016 at 2:45 PM, Malik Rumi wrote: > > 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.c

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 group

Re: URL Namespaces

2014-03-05 Thread Jonathan Baker
n the potential for naming collisions very quickly becomes a reality. Hope this helps, Jonathan On Wed, Mar 5, 2014 at 4:25 AM, anubhav joshi wrote: > Can anyone explain how URL Namespaces work in django. > Some examples would be great. > (Apart from those in the docs.) > > Regard

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
mposite views<https://django-composite.readthedocs.org/en/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/mult

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" > > wrote: > > When I was reading django's URL document, I come across "URL namespaces". > The raw sentence is "Whe

Re: Question about URL namespaces

2012-12-29 Thread Ryan Blunden
nswer 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" wrote: > When I was reading django's URL document, I come across "URL namespaces&quo

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 appl

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 p

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 t

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: > > project/urls

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', namespace='something'))

Re: Help in understanding URL Namespaces

2009-10-30 Thread Russell Keith-Magee
On Fri, Oct 30, 2009 at 6:03 PM, Continuation 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: URL Namespaces. > >

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 externa

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 : > > > > > I've fixed the wro

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 = patterns('myproject.lab.views', url(ur

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 the url > templatetag exam

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. > > I have a somewhat comp

{% 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 continuou

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 wrote: > > 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 wr

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 you are asking, you

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 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 djan