Thanks for the help guys; I am glad the books were not so out of date! On Friday, April 27, 2012 7:09:32 PM UTC-7, knowledge_seeker wrote: > > My Django book (from the university library) said to add the label > "@login_required" to views that I wish to restrict user access on. > Django 1.4 does not allow this; obviously the book is dated! Is there > a more modern way to get the same effect? > > Similarly, admin does not allow access to my classes, even when I have > created an Admin class; is this a new security feature? > > Finally, when I tried to create a view that allowed web-based user > creation, the views.py file would not recognize the class "User"; is > there something I need to import?
On Friday, April 27, 2012 7:09:32 PM UTC-7, knowledge_seeker wrote: > > My Django book (from the university library) said to add the label > "@login_required" to views that I wish to restrict user access on. > Django 1.4 does not allow this; obviously the book is dated! Is there > a more modern way to get the same effect? > > Similarly, admin does not allow access to my classes, even when I have > created an Admin class; is this a new security feature? > > Finally, when I tried to create a view that allowed web-based user > creation, the views.py file would not recognize the class "User"; is > there something I need to import? -- 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/-/nV5rR7liHNYJ. 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.