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
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
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)
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
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
>
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
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
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
/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
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
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
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
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
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
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
> 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
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
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
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
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
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
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'))
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.
>
>
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
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
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
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
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
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
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
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
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,
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
33 matches
Mail list logo