How can I create Django web page to connect Facebook login and registration?

2011-03-17 Thread Nge Nge

Hi All!
I want to create Django web project. I have to connect from my Django
project to Facebook via login and registration when user login or
register on my web site.
Please guide what need for me because I am a beginner on Django and
Python.
Although I read via online about Django connect facebook, I confuse
how to apply plug in Django library on my project.
How can I get user data from Facebook after user permission?

Thanks
Nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How should I solve?

2011-03-20 Thread Nge Nge
Hi everyone !

I am trying to connect facebook from django web page with login and
registartion.
I already try with the Django-Socialauth. I am facing the following
error. How can I solve?
Please help me. I am running with python 2.6 on aptana studio 3.


http://127.0.0.1:8080/facebook_login/

NameError at /facebook_login/

name 'complete' is not defined

Request Method: GET
Request URL: http://127.0.0.1:8080/facebook_login/
Django Version: 1.2.3 SVN-15765
Exception Type: NameError
Exception Value:

name 'complete' is not defined

Exception Location: /home/mya/FBWorkSpace/FBTestSocialauth/
FBTestSocialauth/Django-Socialauth/socialauth/urls.py in ,
line 23
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path: ['/home/mya/FBWorkSpace/FBTestSocialauth/
FBTestSocialauth', '/usr/local/lib/python2.6/dist-packages/
pyfacebook-1.0a2-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/
pip-0.8.3-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/
virtualenv-1.5.2-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/
plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-
old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-
packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/
dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/
lib/pymodules/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.6/gtk-2.0']
Server time: Sun, 20 Mar 2011 09:46:07 -0500

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Error on django program with django-socialregistration....

2011-03-21 Thread Nge Nge
Hi All!

I am already tried to login from my django form via facebook login.
I am testing with django-socialregistration from (
https://github.com/flashingpumpkin/django-socialregistration.git).
I am facing the following error when I run my program.
Please help  me.. How should I do??

Nge

AttributeError at /

'module' object has no attribute 'get_user_from_cookie'

Request Method: GET
Request URL:http://127.0.0.1:8080/
Django Version: 1.2.5
Exception Type: AttributeError
Exception Value:

'module' object has no attribute 'get_user_from_cookie'

Exception Location: /home/mya/FBWorkSpace/FacebookTest/FacebookTest/
django-socialregistration/socialregistration/middleware.py in
process_request, line 24
Python Executable:  /usr/bin/python
Python Version: 2.6.6
Python Path:['/home/mya/FBWorkSpace/FacebookTest/FacebookTest', '/
usr/local/lib/python2.6/dist-packages/pyfacebook-1.0a2-py2.6.egg', '/
usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg', '/usr/
local/lib/python2.6/dist-packages/virtualenv-1.5.2-py2.6.egg', '/usr/
local/lib/python2.6/dist-packages/django_social_auth-0.3.8-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-
py2.6.egg', '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.167-
py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Django-1.2.5-
py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/
usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/
python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/
usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/
PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/
python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/
pymodules/python2.6/gtk-2.0']
Server time:Mon, 21 Mar 2011 15:19:17 -0500

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error on django program with django-socialregistration....

2011-03-21 Thread Nge Nge
Hi Vikalp,

Now I already install Python-SDK in my Python Path.
But I got this error.
If possible, please guide me in details how should I do.

Thanks
Nge

On Mar 21, 7:09 am, vikalp sahni  wrote:
> https://github.com/facebook/python-sdk
>
> You have to use this.  As the method giving error is implemented on Facebook
> Python-SDK.
>
> Regards
> //Vikalp
>
> On Mon, Mar 21, 2011 at 4:15 PM, Calvin Spealman wrote:
>
> > Do you possibly have a module or package in your project named "facebook"?
> > One of the requirements for django-socialauth is the facebook python
> > library, but if you have another module by the same name, that could be
> > imported instead.
>
> > On Mon, Mar 21, 2011 at 4:23 AM, Nge Nge  wrote:
>
> >> Hi All!
>
> >> I am already tried to login from my django form via facebook login.
> >> I am testing with django-socialregistration from (
> >>https://github.com/flashingpumpkin/django-socialregistration.git).
> >> I am facing the following error when I run my program.
> >> Please help  me.. How should I do??
>
> >> Nge
>
> >> AttributeError at /
>
> >> 'module' object has no attribute 'get_user_from_cookie'
>
> >> Request Method:         GET
> >> Request URL:    http://127.0.0.1:8080/
> >> Django Version:         1.2.5
> >> Exception Type:         AttributeError
> >> Exception Value:
>
> >> 'module' object has no attribute 'get_user_from_cookie'
>
> >> Exception Location:     /home/mya/FBWorkSpace/FacebookTest/FacebookTest/
> >> django-socialregistration/socialregistration/middleware.py in
> >> process_request, line 24
> >> Python Executable:      /usr/bin/python
> >> Python Version:         2.6.6
> >> Python Path:    ['/home/mya/FBWorkSpace/FacebookTest/FacebookTest', '/
> >> usr/local/lib/python2.6/dist-packages/pyfacebook-1.0a2-py2.6.egg', '/
> >> usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg', '/usr/
> >> local/lib/python2.6/dist-packages/virtualenv-1.5.2-py2.6.egg', '/usr/
> >> local/lib/python2.6/dist-packages/django_social_auth-0.3.8-py2.6.egg',
> >> '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-
> >> py2.6.egg', '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.167-
> >> py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Django-1.2.5-
> >> py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/
> >> usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/
> >> python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/
> >> usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/
> >> PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/
> >> python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/
> >> pymodules/python2.6/gtk-2.0']
> >> Server time:    Mon, 21 Mar 2011 15:19:17 -0500
>
> >> --
> >> 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
> >> django-users+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/django-users?hl=en.
>
> > --
> > Read my blog! I depend on your acceptance of my opinion! I am interesting!
> >http://techblog.ironfroggy.com/
> > Follow me if you're into that sort of thing:
> >http://www.twitter.com/ironfroggy
>
> >  --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error on django program with django-socialregistration....

2011-03-21 Thread Nge Nge


On Mar 21, 6:45 am, Calvin Spealman  wrote:
> Do you possibly have a module or package in your project named "facebook"?
> One of the requirements for django-socialauth is the facebook python
> library, but if you have another module by the same name, that could be
> imported instead.
>
>
>
> On Mon, Mar 21, 2011 at 4:23 AM, Nge Nge  wrote:
> > Hi All!
>
> > I am already tried to login from my django form via facebook login.
> > I am testing with django-socialregistration from (
> >https://github.com/flashingpumpkin/django-socialregistration.git).
> > I am facing the following error when I run my program.
> > Please help  me.. How should I do??
>
> > Nge
>
> > AttributeError at /
>
> > 'module' object has no attribute 'get_user_from_cookie'
>
> > Request Method:         GET
> > Request URL:    http://127.0.0.1:8080/
> > Django Version:         1.2.5
> > Exception Type:         AttributeError
> > Exception Value:
>
> > 'module' object has no attribute 'get_user_from_cookie'
>
> > Exception Location:     /home/mya/FBWorkSpace/FacebookTest/FacebookTest/
> > django-socialregistration/socialregistration/middleware.py in
> > process_request, line 24
> > Python Executable:      /usr/bin/python
> > Python Version:         2.6.6
> > Python Path:    ['/home/mya/FBWorkSpace/FacebookTest/FacebookTest', '/
> > usr/local/lib/python2.6/dist-packages/pyfacebook-1.0a2-py2.6.egg', '/
> > usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg', '/usr/
> > local/lib/python2.6/dist-packages/virtualenv-1.5.2-py2.6.egg', '/usr/
> > local/lib/python2.6/dist-packages/django_social_auth-0.3.8-py2.6.egg',
> > '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-
> > py2.6.egg', '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.167-
> > py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Django-1.2.5-
> > py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/
> > usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/
> > python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/
> > usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/
> > PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/
> > python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/
> > pymodules/python2.6/gtk-2.0']
> > Server time:    Mon, 21 Mar 2011 15:19:17 -0500
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
> --
> Read my blog! I depend on your acceptance of my opinion! I am 
> interesting!http://techblog.ironfroggy.com/
> Follow me if you're into that sort of thing:http://www.twitter.com/ironfroggy

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error on django program with django-socialregistration....

2011-03-21 Thread Nge Nge
Hi Calvin

How can I install the facebook python library to my project?

Thanks
Nge

On Mar 21, 6:45 am, Calvin Spealman  wrote:
> Do you possibly have a module or package in your project named "facebook"?
> One of the requirements for django-socialauth is the facebook python
> library, but if you have another module by the same name, that could be
> imported instead.
>
>
>
> On Mon, Mar 21, 2011 at 4:23 AM, Nge Nge  wrote:
> > Hi All!
>
> > I am already tried to login from my django form via facebook login.
> > I am testing with django-socialregistration from (
> >https://github.com/flashingpumpkin/django-socialregistration.git).
> > I am facing the following error when I run my program.
> > Please help  me.. How should I do??
>
> > Nge
>
> > AttributeError at /
>
> > 'module' object has no attribute 'get_user_from_cookie'
>
> > Request Method:         GET
> > Request URL:    http://127.0.0.1:8080/
> > Django Version:         1.2.5
> > Exception Type:         AttributeError
> > Exception Value:
>
> > 'module' object has no attribute 'get_user_from_cookie'
>
> > Exception Location:     /home/mya/FBWorkSpace/FacebookTest/FacebookTest/
> > django-socialregistration/socialregistration/middleware.py in
> > process_request, line 24
> > Python Executable:      /usr/bin/python
> > Python Version:         2.6.6
> > Python Path:    ['/home/mya/FBWorkSpace/FacebookTest/FacebookTest', '/
> > usr/local/lib/python2.6/dist-packages/pyfacebook-1.0a2-py2.6.egg', '/
> > usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg', '/usr/
> > local/lib/python2.6/dist-packages/virtualenv-1.5.2-py2.6.egg', '/usr/
> > local/lib/python2.6/dist-packages/django_social_auth-0.3.8-py2.6.egg',
> > '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5-
> > py2.6.egg', '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.167-
> > py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Django-1.2.5-
> > py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/
> > usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/
> > python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/
> > usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/
> > PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/
> > python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/
> > pymodules/python2.6/gtk-2.0']
> > Server time:    Mon, 21 Mar 2011 15:19:17 -0500
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
> --
> Read my blog! I depend on your acceptance of my opinion! I am 
> interesting!http://techblog.ironfroggy.com/
> Follow me if you're into that sort of thing:http://www.twitter.com/ironfroggy

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to check the text field values are in my database or not ?

2011-03-31 Thread Nge Nge
Hi All!

How can I check the text field value in my database ?
For example, I type user name and password from text box on my web
page. Then I want to check these values are in my database or not.
How should I do? I am using postgresql database.


Thanks
Nge Nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to create django custom login page?

2011-04-01 Thread Nge Nge
Hi All

I saved the registered user data into my postgresql database.
Now I have to create login page. I have to check the requested user
name and password are in my database. If user name and password are in
my database, redirect to success.html.  How should I do? Pls advise
me.

Thanks
nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to draw line charts in Django?

2011-05-05 Thread Nge
Hi everyone !

I want to know. How can I create line charts in Django?
Then I have to take data from postgresql for x-axis and y-axis.
So how should I do? How can apply django, postgres, graph and ajax?
Pls share your knowledge.

Thanks
Nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to draw line charts in Django?

2011-05-05 Thread Nge
Hi KG!

I already created a view and can extract data from database.But I have
a problem. I don't know how to send to template and how to create js/
ajax. Can you share me sample?

Thanks
Nge

On May 5, 3:44 am, Kenneth Gonsalves  wrote:
> On Thu, 2011-05-05 at 00:28 -0700, Nge wrote:
> > I want to know. How can I create line charts in Django?
> > Then I have to take data from postgresql for x-axis and y-axis.
> > So how should I do? How can apply django, postgres, graph and ajax?
>
> create a view - extract the data you want and send it to the template
> where you use js/ajax to display the graph
> --
> regards
> KGhttp://lawgon.livejournal.com
> Coimbatore LUG roxhttp://ilugcbe.techstud.org/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How Django render the various templates?

2011-06-12 Thread Nge
Hi Everyone!

How can I create Django tablet site program?
How can decide Django redirect the web site or mobile site or tablet
site?
Does there has separately browser detection?

Thanks
Nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



I want to get facebook uid to my python function.

2011-04-05 Thread Nge
Dear All !

I am creating Django user login page via facebook.
Now I am using the facebook JavaScript SDK and facebook login button.
I can login and get the facebook user's uid. I want to compare this
facebook uid with my database on python function.
How should I do? Now I can not take the facebook uid to python
function.

Thanks
Nge

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.