Re: interpretting urls

2012-06-28 Thread kenneth gonsalves
On Thu, 2012-06-28 at 03:25 -0700, bruno desthuilliers wrote:
> ROOT_URLCONF
> >  setting.
> >
> >
> >
> It's also in the FineManual. If you look at the doc's home page,
> you'll 
> find a very explicit reference to middlewares : 
> 
> https://docs.djangoproject.com/en/dev/#the-view-layer
> 
> Should I mention that there's a "search" feature in the doc too ? 

but that is not yet fixed, it does not do multiword searches - better to
use duckduckgo's site feature.
-- 
regards
Kenneth Gonsalves

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-28 Thread bruno desthuilliers
On Wednesday, June 27, 2012 11:53:56 PM UTC+2, Sam007 wrote:
>
>
> Going thru the doc link you gave, I did not understand the term middleware 
> request processing?
>
> but if the incoming HttpRequest object has an attribute called urlconf (set 
> by middleware *request 
> processing*),
>  
> its value will be used in place of the 
> ROOT_URLCONF
>  setting.
>
>
>
It's also in the FineManual. If you look at the doc's home page, you'll 
find a very explicit reference to middlewares : 

https://docs.djangoproject.com/en/dev/#the-view-layer

Should I mention that there's a "search" feature in the doc too ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/KQ6qET4bU4UJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-28 Thread Jani Tiainen

Hi,

Quote from URL dispatcher documentation:
"To design URLs for an app, you create a Python module informally called 
a URLconf (URL configuration). This module is pure Python code and is a 
simple mapping between URL patterns (as simple regular expressions) to 
Python callback functions (your views).

"

So you need to do your homework and learn how to read and write (Python) 
regular expressions since pretty much everything in url

config is a regular expression.

28.6.2012 1:29, Smaran Harihar kirjoitti:

The doc did not give details for *r'^(?:index/?)?$'*, in

(r'^(?:index/?)?$', 'geonode.views.index')

Thanks,
Smaran

On Wed, Jun 27, 2012 at 4:16 AM, bruno desthuilliers
mailto:bruno.desthuilli...@gmail.com>>
wrote:



On Tuesday, June 26, 2012 6:52:06 PM UTC+2, Sam007 wrote:

Hi,

I am bit confused about what exactly do these urls imply in the
url.py


This is all documented here :
https://docs.djangoproject.com/en/dev/topics/http/urls/


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-27 Thread Smaran Harihar
The doc did not give details for *r'^(?:index/?)?$'*, in

(r'^(?:index/?)?$', 'geonode.views.index')

Thanks,
Smaran

On Wed, Jun 27, 2012 at 4:16 AM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

>
>
> On Tuesday, June 26, 2012 6:52:06 PM UTC+2, Sam007 wrote:
>>
>> Hi,
>>
>> I am bit confused about what exactly do these urls imply in the url.py
>>
>>
> This is all documented here :
> https://docs.djangoproject.com/en/dev/topics/http/urls/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Zo3bjY0ZFvgJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Thanks & Regards
Smaran Harihar

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-27 Thread Smaran Harihar
Going thru the doc link you gave, I did not understand the term middleware
request processing?

but if the incoming HttpRequest object has an attribute called urlconf (set
by middleware *request
processing*),
its value will be used in place of the
ROOT_URLCONF
 setting.

On Wed, Jun 27, 2012 at 4:16 AM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

>
>
> On Tuesday, June 26, 2012 6:52:06 PM UTC+2, Sam007 wrote:
>>
>> Hi,
>>
>> I am bit confused about what exactly do these urls imply in the url.py
>>
>>
> This is all documented here :
> https://docs.djangoproject.com/en/dev/topics/http/urls/
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Zo3bjY0ZFvgJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Thanks & Regards
Smaran Harihar

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: interpretting urls

2012-06-27 Thread bruno desthuilliers


On Tuesday, June 26, 2012 6:52:06 PM UTC+2, Sam007 wrote:
>
> Hi,
>
> I am bit confused about what exactly do these urls imply in the url.py
>
>
This is all documented here : 
https://docs.djangoproject.com/en/dev/topics/http/urls/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Zo3bjY0ZFvgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



interpretting urls

2012-06-26 Thread Smaran Harihar
Hi,

I am bit confused about what exactly do these urls imply in the url.py

urlpatterns = patterns('',
 (r'^(?:index/?)?$', 'geonode.views.index'),
(r'^(?Phelp)/?$', 'geonode.views.static'),
(r'^developer/?$', 'geonode.views.developer'),
url(r'^lang\.js$', 'django.views.generic.simple.direct_to_template',
   {'template': 'lang.js', 'mimetype': 'text/javascript'},
'lang'),
(r'^maps/', include('geonode.maps.urls'))


I know that a simple url syntax like this,

url(r'^data/$', 'geonode.maps.views.browse_data')

implies, that it will execute the function browse_data in views.py in the
maps directory, inside the geonode dir.

But not sure what the above urls imply. I am absolutely new to Django so
can u explain in simple terms.

-- 
Thanks & Regards
Smaran Harihar

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.