django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Nobin Mathew
Hi, I am writing a django website using django-allauth for facebook authentication. When I sign into facebook(after giving username and passwd) from my local development server( `<`http://127.0.0.1:8001/gallery/`>` ) I get following error: *** Social Network Login Failure An erro

Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Timothy W. Cook
My guess is because FB can't redirect to a localhost URL. You could probably use something like no-ip.org and setup a reachable URL. HTH, Tim On Tue, Dec 24, 2013 at 5:05 AM, Nobin Mathew wrote: > Hi, > > I am writing a django website using django-allauth for facebook > authentication. > > Whe

Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Avraham Serour
facebook can indeed redirect to localhost, I've done it before, the problem is: 1 - you need to use localhost, 12.7.0.0.1 won't work 2 - you need a separate app id for that, just create a general one for localhost development On Tue, Dec 24, 2013 at 11:58 AM, Timothy W. Cook wrote: > My guess i

Mezzanine 3.0 and Cartridge 0.9 released

2013-12-24 Thread Stephen McDonald
Hi all, I've just released Mezzanine 3.0 and Cartridge 0.9 to PyPi. For those unfamiliar with it, Mezzanine (http://mezzanine.jupo.org) is a BSD licensed CMS project built on Django. It resembles tools such as Wordpress that provide an interface for managing hierarchical pages, blog posts, user-b

Re: Mezzanine 3.0 and Cartridge 0.9 released

2013-12-24 Thread Stephen McDonald
Also links to the GitHub repos if you're interested: https://github.com/stephenmcd/mezzanine https://github.com/stephenmcd/cartridge On Tuesday, 24 December 2013 22:48:38 UTC+11, Stephen McDonald wrote: > > Hi all, > > I've just released Mezzanine 3.0 and Cartridge 0.9 to PyPi. > > For those unf

Re: ViewDoesNotExist at /admin/

2013-12-24 Thread Tom Lockhart
On 2013-12-23, at 9:42 PM, Gabriele Stoia wrote: > I think I found the problem...maybe... > > I running my app in the same hosting of another app ... (sorry for my > english..is not my first language... I'm italian…) If you are not using virtualenv and pip to manage each of these installation

Re: Can't Install on Windows 8.1

2013-12-24 Thread Timothy W. Cook
Since it appears that you are not too familiar with Python, this may help: http://www.youtube.com/watch?v=d_W02OwHa38 Using a virtual environment and pip will a long way to solving many of your issues. It is considered best practice 'for a reason'. https://zignar.net/2012/06/17/install-python-o

Re: Can't Install on Windows 8.1

2013-12-24 Thread Malik Rumi
Thank you. One more question before I dive in: I already have python installed. Are you suggesting I remove it and start over? On Tuesday, December 24, 2013 8:04:08 AM UTC-6, Timothy W. Cook wrote: > > Since it appears that you are not too familiar with Python, this may help: > http://www.youtube

Re: Can't Install on Windows 8.1

2013-12-24 Thread Tom Lockhart
On 2013-12-24, at 6:56 AM, Malik Rumi wrote: > Thank you. One more question before I dive in: I already have python > installed. Are you suggesting I remove it and start over? No. What you will find is that virtualenv will pick up whatever python it finds and package it in a new self-containe

Django ORM & DB backend coupling

2013-12-24 Thread Rakan Alhneiti
Hello all, I was discussing the topic with a couple of my friends that Django's ORM is / is not tightly coupled with databases in general. My point of view was that django is not tightly coupled because you can write custom DB backends to deal with other sources of data such as a Restful API se

Re: Django ORM & DB backend coupling

2013-12-24 Thread Andrew Farrell
This seems like it would be a reasonable idea if the API represented a data model that was fundamentally relational in character. However, many are not. An API should be designed such that it is the best way to interact with its data model, so trying to shoehorn it into an ORM's API seems like it w

Question about django-boto and S3

2013-12-24 Thread Chen Xu
I have a private folder under a bucket, which stores all the images, and when I try to access to the image on the web for example: https://s3.amazonaws.com/bucket/folder/img.jpg";> it does not display, and gives my access denied error, I am wondering if there is a way using boto to generate a publ

Re: Django ORM & DB backend coupling

2013-12-24 Thread Rakan Alhneiti
Good points. The case at hand takes place when thinking about developing a django application on top of a service-oriented backend system that provides you with CRUD operations for data and abstracting the DB engine or storage mechanism that this backend is using. It does make sense to integrat

Re: How to deploy a django project in the web?

2013-12-24 Thread Vibhu Rishi
Try Heroku https://devcenter.heroku.com/articles/getting-started-with-django Caveat - just found it the hard way - heroku does not support user uploaded files. So, if your project has that you will need to figure out where to host the files. One suggestion given on the heroku site is AWS S3 https:

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > Hi Russ Magee > Thanks for your answer, but I am confused sort of. I want the total value from the model. "MyModel.objects.filter(mobile_name='xyz')" is this line of code can fetch me the value of total field? Thanks in advance -- You received this message because you are subscribed to th

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
> > Hi Russ Magee > Thanks for your answer. I am confused a little bit. I think "MyModel.objects.filter(mobile_name='xyz')" line of code is like "SELECT * from table-xyz WHERE mobile_name=xyz" but I was looking for the alternative of "SELECT total FROM tablexyz WHERE mobile_name=xyz" Thanks i

Re: Question about django-boto and S3

2013-12-24 Thread Dig
Hi Xu, There are 2 solutions in my opinion: 1. makes your key public, you can do it in S3 admin console or by a CLI/API, 2. use generate_url() method on a boto.s3.key.Key object. please refer to *http://boto.readthedocs.org/en/latest/ref/s3.html

Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
You may easily deploy your Django Apps on Gigapros. See -- http://www.gigapros.com/portal/django-hosting You get full rot access to the server and there's no restrictions at all. :) - Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread C. Kirby
Ali, As a general statement, the django ORM will return an entire instance of a model that you can then read values off of. To print the "total" field for each instance of the model with name "xyz" you would do: for mm in MyModel.objects.filter(mobile_name='xyz'): print mm.total While thin

Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
Hi, Kirby I found something. Is it will work? MyModel.objects.filter(mobile_name='xyz').values(total) Thanks for your support -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, se

Re: Django ORM & DB backend coupling

2013-12-24 Thread Marc Aymerich
On Tue, Dec 24, 2013 at 4:15 PM, Rakan Alhneiti wrote: > Hello all, > > I was discussing the topic with a couple of my friends that Django's ORM is > / is not tightly coupled with databases in general. My point of view was > that django is not tightly coupled because you can write custom DB backen

Re: Which Real Time Communications Protocol

2013-12-24 Thread Branko Majic
On Fri, 20 Dec 2013 08:58:39 -0800 (PST) Mario Osorio wrote: > My app will have to communicate different customers (Linux devices, Windoze > devices, iOS devices and Android devices at least). > > Overall, any of these customer devices will start one of many processes and > some of the other d

Re: Django ORM & DB backend coupling

2013-12-24 Thread Marc Aymerich
On Tue, Dec 24, 2013 at 4:15 PM, Rakan Alhneiti wrote: > Hello all, > > I was discussing the topic with a couple of my friends that Django's ORM is > / is not tightly coupled with databases in general. My point of view was > that django is not tightly coupled because you can write custom DB backen

RE: Can't Install on Windows 8.1

2013-12-24 Thread Semantic Law
Boy, the speedy responses on this thread are great! I can't wait to get home from work so I can put this advice into practice. And now you know what I want for Christmas 😄 - a working installation of django and python to play with. -Original Message- From: "Tom Lockhart" Sent: ‎12/‎24/

Re: How to deploy a django project in the web?

2013-12-24 Thread Timothy W. Cook
On Tue, Dec 24, 2013 at 2:35 PM, Mark Moss wrote: > You may easily deploy your Django Apps on Gigapros. See -- > http://www.gigapros.com/portal/django-hosting > You get full rot access to the server and there's no restrictions at all. > :) > > Hmmm, no PostgreSQL? -- MLHIM VIP Signup: http:

Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
All these 3 DB engines are available: MySQL, PostgreSQL & SQLite. This have now been updated on this page -- http://www.gigapros.com/portal/django-hosting All 3 Db engines run simultaneously and you may choose to selectively shutdown the ones that you don't need. - Mark -- You received this

Re: How to deploy a django project in the web?

2013-12-24 Thread umair
I use nginx with gunicorn to run them. On Saturday, December 21, 2013 10:36:58 AM UTC+5, Pablo Diaz wrote: > > I've finished my django project but I'm only running it locally. I want to > put it on a website > -- You received this message because you are subscribed to the Google Groups "Djang

Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Scot Hacker
On Monday, December 23, 2013 11:05:26 PM UTC-8, Nobin Mathew wrote: > > Hi, > > I am writing a django website using django-allauth for facebook > authentication. > > When I sign into facebook(after giving username and passwd) from my local > development server( > `<`http://127.0.0.1:8001/galler

Re: How to deploy a django project in the web?

2013-12-24 Thread Timothy W. Cook
Great! Thanks. On Tue, Dec 24, 2013 at 5:18 PM, Mark Moss wrote: > All these 3 DB engines are available: MySQL, PostgreSQL & SQLite. This > have now been updated on this page -- > http://www.gigapros.com/portal/django-hosting > > All 3 Db engines run simultaneously and you may choose to select

Django session question.

2013-12-24 Thread Chen Xu
I am working on a voting website, basically i want to be able to track the votes that come from the same person, or the same session, I am wondering does Django have some kinda built in session implementation that I can use to track people 's actions in the same session? Thanks in advance -- ⚡ C

Need Direction for Web App

2013-12-24 Thread zobcloud
I would like to create a web app / interface to manipulate and maintain my server's dhcpd.conf file. *Background in Short:* I was asked a few years back to build a wifi network for approximately 500 users with unlimited devices. With no money (barely any money). Done. The only requirement/restr

Re: Django session question.

2013-12-24 Thread liuerfire Wang
Use the Django authentication system, then you can get current user with `request.user` On Wed, Dec 25, 2013 at 6:30 AM, Chen Xu wrote: > I am working on a voting website, basically i want to be able to track the > votes that come fro