django_profiles migration to Django 1.5

2013-07-13 Thread Rachel
The current version of django_profiles isn't compatible with Django 1.5; how have people coped with this? Django_profiles seems to be a dead project; does anyone have suggestions or experience for how to migrate to another module that does something similar? Rachel -- You received this messag

Re: Getting Started with Mac OS X

2013-07-13 Thread Kayode Alayode
Yea I think they wanted you to add this "*django-admin.py startproject mysite*" at the cd commandpromopt I am stuck here as well and don't really know how to proceed as well. On Monday, February 27, 2012 7:36:21 PM UTC-5, JChlipala wrote: > > Hello, > > I am a Django beginner, and am trying t

Re: django dynamic template tag

2013-07-13 Thread Andriyko
Try {{ pagecontent.plugin }} instead of {% pagecontent.plugin %} On Wednesday, July 3, 2013 3:11:08 AM UTC+3, Fadi Samara wrote: > > I try to build a plugins based application, I have created tags and > registered them for each plugin. > > I have a table stores each page plugins, and need to

Re: More robust way of handling login_required decorator?

2013-07-13 Thread shmengie
AUTH_REQUIRED = True/False # default False for backward compatibility Normal behaviour unless assigned a pointer to Login CBV or FBV that returns user to the original URI upon successful login. I suspect this needs to be posted on the Developer forum. -Joe -- You received this message becau

Re: More robust way of handling login_required decorator?

2013-07-13 Thread shmengie
Wouldn't it make sense to add in SETTINGS.py AUTH_REQUIRED = True/False # default False for backward compatibility Then use an @auth_not_required decorator on the few pages it isn't? Does DJANGO SECURE have such a setting? On Saturday, July 13, 2013 6:56:24 AM UTC-4, Some Developer wrote: >

Re: Chapter 5 problems resolved

2013-07-13 Thread Randy Baxley
File > "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", > line 296, in _sqlite_create_connection > self.connection = Database.connect(**kwargs) > OperationalError: unable to open database file > > This one is resolved: 1. not sure why but I had to sudo sglite3 2.

Display error message

2013-07-13 Thread Kakar Arunachal Service
Hi, I have a site, that has a submit form, but one must be logged in for that. And if the user is not logged in, it redirects it to the login page. And this all fine. My question is, what do I do to display the error message, "You must be logged to submit.", if the user is not logged in and tries t

Re: Chapter 5 problems

2013-07-13 Thread Randy Baxley
bump On Fri, Jul 12, 2013 at 4:20 PM, Randy Baxley wrote: > randy@randy-Inspiron-530s:~/dj/mfp/mysite$ sqlite3 > /home/dj/mfp/mysite/mysite/mydb.db > SQLite version 3.7.9 2011-11-01 00:52:41 > Enter ".help" for instructions > Enter SQL statements terminated with a ";" > sqlite> > > but at least

Re: More robust way of handling login_required decorator?

2013-07-13 Thread Some Developer
On 13/07/13 14:50, Peith Vergil wrote: django-braces have a LoginRequiredMixin. Using it is a much cleaner solution to overriding the dispatch method. Thanks for the tip. I'll check it out. -- You received this message because you are subscribed to th

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
Yes, you are right. On Sat, Jul 13, 2013 at 7:07 PM, Victor Rocha wrote: > This is a wild guess but I do not see the login_required decorator on your > view. I think you are getting this error because you are trying to save an > Bookmark object passing an anonymous user as one of your arguments

Re: image rendering on the template

2013-07-13 Thread John
On 12/07/13 22:12, sahitya pavurala wrote: > however if i directly return the value i get the image .But i need to > render the image to a different page . How can i do this ? -- I answered a question a few days ago that was very similar to this that would give you a route to take. Search in this l

Re: More robust way of handling login_required decorator?

2013-07-13 Thread Peith Vergil
django-braces have a LoginRequiredMixin. Using it is a much cleaner solution to overriding the dispatch method. On Sat, Jul 13, 2013 at 6:56 PM, Some Developer wrote: > I make heavy use the login_required decorator and for the most part it is > extremel

Re: 'SimpleLazyObject'

2013-07-13 Thread Victor Rocha
This is a wild guess but I do not see the login_required decorator on your view. I think you are getting this error because you are trying to save an Bookmark object passing an anonymous user as one of your arguments. An anonymous user is a SimpleLazyObject; it is a user but there is no referen

More robust way of handling login_required decorator?

2013-07-13 Thread Some Developer
I make heavy use the login_required decorator and for the most part it is extremely easy to use when using FBVs but when using CBVs one either has to add a dispatch method to the class calling the super classes dispatch method or you need to put the login_required in the url configuration which

Re: 'SimpleLazyObject'

2013-07-13 Thread Kakar Arunachal Service
No, it wont do, it loads another error. But my problem is solved. I just needed to log in. Thanks anyway. On Sat, Jul 13, 2013 at 10:42 AM, Babatunde Akinyanmi wrote: > How about changing this: > > Bookmark.objects.get_or_create( > user = request.user, > link = li