Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 26, 2008 21:49:58

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

user authentication permissions


reading chapter 12 of the django book (http://www.djangobook.com/en/1.0/chapter12/) to try and figure out the best way to use the User system to make
sure users are registered and signed in before viewing page content.

I'm currently using date_based generic views, here's my urls.pyhttp://dpaste.com/41463/and the example in the book shows how to use
it with your views.py.

My question is how can I use this with date_based generic views? I
want them to be able to view the archive_index (main page) even
without being logged in, but they must be logged in to view the other
pages....
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 March 26, 2008 22:13:10

Karen T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

user authentication permissions


On Wed, Mar 26, 2008 at 4:49 PM, <> wrote:

>
> reading chapter 12 of the django book (
>http://www.djangobook.com/en/1.0/chapter12/> ) to try and figure out the best way to use the User system to make
> sure users are registered and signed in before viewing page content.
>
> I'm currently using date_based generic views, here's my urls.py
>http://dpaste.com/41463/and the example in the book shows how to use
> it with your views.py.
>
> My question is how can I use this with date_based generic views? I
> want them to be able to view the archive_index (main page) even
> without being logged in, but they must be logged in to view the other
> pages....
>

See "Using functions directly in the URLConf" here:http://www.b-list.org/weblog/2007/nov/06/urlconf/Karen

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 March 27, 2008 01:11:53

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

user authentication permissions


thnx karen.

another related question, currently the site is using paypal for it's
subscriptions, they charge $25/month.

how difficulty would it be to automate the user subscription process?
so when someone pays their $25 and paypal approves the transaction
they're acct is good to go and they can access the premium content.

On Mar 26, 3:13 pm, "Karen Tracey" <> wrote:
> On Wed, Mar 26, 2008 at 4:49 PM, <> wrote:
>
> > reading chapter 12 of the django book (
> >http://www.djangobook.com/en/1.0/chapter12/> > ) to try and figure out the best way to use the User system to make
> > sure users are registered and signed in before viewing page content.
>
> > I'm currently using date_based generic views, here's my urls.py
> >http://dpaste.com/41463/andthe example in the book shows how to use
> > it with your views.py.
>
> > My question is how can I use this with date_based generic views? I
> > want them to be able to view the archive_index (main page) even
> > without being logged in, but they must be logged in to view the other
> > pages....
>
> See "Using functions directly in the URLConf"
> here:http://www.b-list.org/weblog/2007/nov/06/urlconf/>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support