Thanks . It work using both the name and namespaces.
On Thursday, December 4, 2014 8:45:27 AM UTC-5, Collin Anderson wrote:
>
> Hi,
>
> Not sure about namespaces, but you can certainly use name:
>
> urlpatterns = patterns('',
> url(r'^about/', login_required(AboutView.as_view()), name='about')
Hi,
Not sure about namespaces, but you can certainly use name:
urlpatterns = patterns('',
url(r'^about/', login_required(AboutView.as_view()), name='about'),
)
Or better yet, patterns() is deprecated so:
urlpatterns = [
url(r'^about/', login_required(AboutView.as_view()), name='about'),
URL Reversing the view where login is required.
On Tuesday, December 2, 2014 10:05:35 PM UTC-5, Collin Anderson wrote:
>
> Hi,
>
> It's probably possible. Do you mean url reversing the login view, or url
> reversing the view where login is required?
>
> Collin
>
> On Sunday, November 30, 2014 11:
Yes
On Tuesday, December 2, 2014 10:05:35 PM UTC-5, Collin Anderson wrote:
>
> Hi,
>
> It's probably possible. Do you mean url reversing the login view, or url
> reversing the view where login is required?
>
> Collin
>
> On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote:
>>
>> Hi can th
yes
On Tue, Dec 2, 2014 at 10:05 PM, Collin Anderson wrote:
> Hi,
>
> It's probably possible. Do you mean url reversing the login view, or url
> reversing the view where login is required?
>
> Collin
>
> On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote:
>>
>> Hi can this work with url
Hi,
It's probably possible. Do you mean url reversing the login view, or url
reversing the view where login is required?
Collin
On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote:
>
> Hi can this work with url reversing namespaced urls?
> thanks
>
> On Thursday, October 16, 2014 11:54:
Hi can this work with url reversing namespaced urls?
thanks
On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>
> If you are usign class based generic views you can use the decorators in
> the URL config of your app, for example
>
> urlpatterns = patterns('',
> (r'^about/
Thanks.
On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>
> If you are usign class based generic views you can use the decorators in
> the URL config of your app, for example
>
> urlpatterns = patterns('',
> (r'^about/', login_required(AboutView.as_view())),
> )
>
>
> O
If you are usign class based generic views you can use the decorators in
the URL config of your app, for example
urlpatterns = patterns('',
(r'^about/', login_required(AboutView.as_view())),
)
On Thu, Oct 16, 2014 at 12:49 PM, Rootz wrote:
> Can I use both Generic View and the Django.contr
9 matches
Mail list logo