django-social-auth problem with facebook

2013-04-14 Thread Jeff Hsu
Hi, I just pip installed django-social-auth from omab today on github(beginner here). I think I can almost get it to work with facebook login, but I always have this "InternalError: Exception Value: current transaction is aborted, commands ignored until end of transaction block", after I log i

Re: Understanding users auth in Django

2013-04-14 Thread Nora Olsen
On Monday, April 15, 2013 8:46:37 AM UTC+8, Russell Keith-Magee wrote: > > >> Should I be using the Admin Site? But the organization admin is really >> not a super user/staff member of the app. >> > > This question is orthogonal to your other questions. Django's Admin site > isn't intended as

Django-Registration/Custom Authentication Issue

2013-04-14 Thread Lee Hinde
I'm trying to do a 'simple' registration with just a user email and password required to create an account. I'm using django-registration with django 1.5.1 and have created a custom model and the custom model manager. I can hit all the registration forms just fine and have copied the example from

Re: Understanding users auth in Django

2013-04-14 Thread Venkatraman S
I've done something similar for my own personal project and i can share how i did it: I used the Django User. And then created a ProfileDetails model that has a OneToOneField with User. An Organization Model An Employee Model - Contains FK to Organization and User Also, i did implemented my own p

Re: Understanding users auth in Django

2013-04-14 Thread Russell Keith-Magee
On Mon, Apr 15, 2013 at 12:44 AM, Nora Olsen wrote: > Hi, > > I'm using Django 1.5 and I have looked at guardian / Userena / pinax user > accounts but I'm not sure how they work with the authentication mechanism > in Django. > > I'm creating a site that typically have the following the groups : >

Re: Newbie CSRF protection questions

2013-04-14 Thread Russell Keith-Magee
On Sun, Apr 14, 2013 at 4:59 AM, Tom Christie wrote: > One minor correction worth pointing out... > > "The first defense against CSRF attacks is to ensure that GET requests are >>> side-effect free." What's meant by "side effect free"? >> >> > > It means that the request must be idempotent - that

Re: ViewDoesNotExist at /admin/

2013-04-14 Thread Russell Keith-Magee
Hi Daniel, The error you've described isn't related to the admin site at all -- the problem lies somewhere else in your codebase. django.views.generic.list_detail.object_list was one of the old function-based generic views; it was deprecated in Django 1.3, and removed entirely in Django 1.5. You

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
using uWSGI 1.0.4 for reference On Sunday, April 14, 2013 1:43:26 PM UTC-6, budl...@gmail.com wrote: > > I think this is more likely the real bug, I saw an increase in database > connections as well. > > > https://groups.google.com/forum/?fromgroups=#!topic/django-users/FxTD5M0x-G8 > > On Tues

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
I think this is more likely the real bug, I saw an increase in database connections as well. https://groups.google.com/forum/?fromgroups=#!topic/django-users/FxTD5M0x-G8 On Tuesday, April 9, 2013 8:06:18 AM UTC-6, Andy Dustman wrote: > > You know, I had another report of this, which seemed co

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-14 Thread budlight
Odd how one guy in thread says 1.5.1 fixed it, another says SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED, which really shouldn't fix it unless django is already persisting database connections per thread in 1.5, which isn't supposed to happen until 1.6. The original op doesn't even agree

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Mustafa Tulu
Thank you! Installing system wide did actually solve the problem. On Sun, Apr 14, 2013 at 8:29 PM, Sanjay Bhangar wrote: > On Windows, I'd strongly recommend just installing the pre-compiled > binaries for these sort've things, unless you're experienced with compiling > software / making this so

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Avraham Serour
I usually try to compile the packages on my win7 machine, just so I can use pip install inside my virtualenv. psycopg2 was the only one so far that I couldn't, eventually I installed the pre compiled binaries on my root python installation and then copied the files/folder necessary for psycopg2 fro

Re: Dynamic runtime modeling: which is the best choice?

2013-04-14 Thread Max Demars
Hi Alessandro, How your searches are going so far? Have you found something interresting with Dynamic-Models such Django-Mutant? I am exactly looking for the same thing you mentioned in this post, a solution that will allow Django ORM to manipulate uploaded shapefiles. So far, I have found a ge

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Sanjay Bhangar
On Windows, I'd strongly recommend just installing the pre-compiled binaries for these sort've things, unless you're experienced with compiling software / making this sort've thing work on Windows .. So, install something like http://www.stickpeople.com/projects/python/win-psycopg/ and then, make

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Serdar Dalgic
On Sun, Apr 14, 2013 at 5:45 PM, Mustafa Tulu wrote: > Hi All, Hi; > > When I try to install the package into my virtualenv in pycharm, it tries to > compile the source into binaries, it fails at linking stage, giving errors > like: > Creating library build\temp.win32-2.7\Release\psycopg\_psyco

Understanding users auth in Django

2013-04-14 Thread Nora Olsen
Hi, I'm using Django 1.5 and I have looked at guardian / Userena / pinax user accounts but I'm not sure how they work with the authentication mechanism in Django. I'm creating a site that typically have the following the groups : 1. Super Admin: Myself 2. Organization admin. This is created by

Re: Reading xpath value error - Lxml

2013-04-14 Thread no body
Wow, thank you so so much for reminding me about the "tbody". This works well now !!! On Sun, Apr 14, 2013 at 7:27 PM, Tom Evans wrote: > On Sun, Apr 14, 2013 at 10:29 AM, wrote: > > Hi all, > > > > I am trying to crawl the information from this link > > > > > http://muaban.net/mua-ban-nha-qu

PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Mustafa Tulu
Hi All, I am very new on the subject. Trying to run a postgresql backend with django. (sqllite3 is said to cause problems) My google searches do not reveal useful links on how to do it. I met problems with "pip install psycopg2". When I try to install the package into my virtualenv in pycharm,

How to take ForeignKey fields as TextInputs in Forms

2013-04-14 Thread surya
# models.py class Model1 (models.Model): a = models.CharField() b = models.CharField() class Model2 (models.Model): c = models.CharField() ab = models.ForeignKey(Model1) # forms.py class Form(ModelForm): class Meta: model = Model2 fields = ('ab')

Re: django form

2013-04-14 Thread Harjot Mann
done with it.thnks On Sun, Apr 14, 2013 at 12:09 PM, Enator24 wrote: > > > On Saturday, 13 April 2013 20:25:00 UTC+5:30, Harjot Mann wrote: >> >> I have made a form in models.py file and displayed using html and i want >> that when i submit after filling, it should refer to another html file >

Re: Reading xpath value error - Lxml

2013-04-14 Thread Tom Evans
On Sun, Apr 14, 2013 at 10:29 AM, wrote: > Hi all, > > I am trying to crawl the information from this link > > http://muaban.net/mua-ban-nha-quan-thu-duc-l5924-c32/quan-thu-duc-ban-nha1lau-2mt-truoc-sau-dg-ng-cong-tru-p-hiep-phu-q9-dt-4x21-5m--id15946781 > > and this is the code I use > >> link =

Re: Reset Demo Database Data (with Dates)

2013-04-14 Thread Joey Espinosa
Well I'll be giving this a shot maybe this week. You might be getting some pull requests ;) -- Joey "JoeLinux" Espinosa Python Developer http://about.me/joelinux On Apr 14, 2013 8:09 AM, "Tom Evans" wrote: > On Sun, Apr 14, 2013 at 7:15 AM, Joey Espinosa > wrote: > > > > Did you just write that

Re: Reset Demo Database Data (with Dates)

2013-04-14 Thread Tom Evans
On Sun, Apr 14, 2013 at 7:15 AM, Joey Espinosa wrote: > > Did you just write that or you happened to find what my own Google Fu could > not? If the former, then I owe you a beer. I'll definitely give this a shot > on Monday. Thanks! > Yeah, I got intrigued :) It's only 60 lines or so, and I thi

Reading xpath value error - Lxml

2013-04-14 Thread bubufff
Hi all, I am trying to crawl the information from this link http://muaban.net/mua-ban-nha-quan-thu-duc-l5924-c32/quan-thu-duc-ban-nha1lau-2mt-truoc-sau-dg-ng-cong-tru-p-hiep-phu-q9-dt-4x21-5m--id15946781 and this is the code I use link = > "http://muaban.net/mua-ban-nha-quan-thu-duc-l5924-c3