django oauth2 flow

2015-06-23 Thread Shekar Tippur
Hello, I would like some help with django oauth2 flow. I have created an app: *redirect_uri http://127.0.0.1:8000/accounts/login/ * *client_type public* *authorization_grant_type is authorization code* *name test* I have a client id and a secret. I want to

Issue with mongo in Django

2015-06-23 Thread Ashish Khatkar
Hi, Today I was trying to do user authentication with Django + MongoDB. I was constantly getting "Metadict object has no attribute pk" error. I searched for the fix but nothing helped. In the end, I read the implementation of login function and changed request.session[SESSION_KEY] =

Re: Passing an image to the other url?

2015-06-23 Thread victor rocha
Jeremy, Extending a template do not magically gives you access to the context variables the other template has. The context is set in the view, what's the view for the homepage? You didn't include it in your post. Is the variable images set in there? I recommend using django debug toolbar to

Re: ModelAdmin.save_as integrity error

2015-06-23 Thread Mike Dewhirst
On 24/06/2015 3:24 AM, Luis Zárate wrote: Can I see your Substance save method? Maybe there are something wrong. Luis Thanks for responding. There is/was something wrong. I was creating related objects in the save() method which is fine for a new substance but when [Save as new] happened

Re: Error using django-rest-framework-social-oauth2

2015-06-23 Thread Daniel Grace
OK, my mistake, I ran migrate again and got the neccessary tables. -- 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, send an email to django-users+unsubscr...@googlegroups.com. To

Error using django-rest-framework-social-oauth2

2015-06-23 Thread Daniel Grace
I have installed and set up django-rest-framework-social-oauth2, as per instructions on: https://pypi.python.org/pypi/django-rest-framework-social-oauth2/0.0.4 I did makemigrations and migrate, but there were no extra tables... when I go to "Django administration - Site administration" and

ManyToManyField using specific database

2015-06-23 Thread João Dias de Carvalho Neto
Hi all, I have an application with Django with database routers. Basically I got the request path, split it to get subdomain name and set the database by this way. I do not use default database, so I do not migrate it. This route action It's working very well but I am still facing trouble

Re: conflicts with six.moves

2015-06-23 Thread ctrudeau
After much banging of my head against the brick wall I finally figured this out. It was not django causing the problem. Replying here in case anyone else experiences something similar. There were about a dozen different libraries that use six.py all of which have their own copy instead of

django-rest-auth with django-allauth not what I was expecting

2015-06-23 Thread Daniel Grace
I am trying to write a Django / REST API back end with Facebook authentication, for use with a phone app front end. I installed and configured both django-rest-auth and django-allauth. When testing I can log into Facebook and authorise my app to access my Facebook account, OK. But then I am

Re: ModelAdmin.save_as integrity error

2015-06-23 Thread Luis Zárate
Can I see your Substance save method? Maybe there are something wrong. El martes, 23 de junio de 2015, Mike Dewhirst escribió: > I commented out the save() method in the Substance model (the master model with a number of 1:1 and 1:n relationships) and it started saving

Re: Django Online appointment scheduler

2015-06-23 Thread Great Avenger Singh
On Tue, Jun 23, 2015 at 11:24 AM, SANTHOSH BADAM wrote: > It would be great if someone can direct me to right path where there are > enough resources to understand basic of scheduling calendar events with > django. Did you give it a try?

Re: how to connect django 1.8 to mysql

2015-06-23 Thread Tim Graham
Have you read https://docs.djangoproject.com/en/1.8/ref/databases/#mysql-db-api-drivers ? Which driver are you using and what is the problem? On Tuesday, June 23, 2015 at 8:17:32 AM UTC-4, Arindam sarkar wrote: > > having issue with the db connector please help. > > -- > Regards, > > Arindam >

how to connect django 1.8 to mysql

2015-06-23 Thread Arindam sarkar
having issue with the db connector please help. -- Regards, Arindam Contact no. 08732822385 -- 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, send an email to

Re: Django Online appointment scheduler

2015-06-23 Thread Avraham Serour
Did you complete the tutorial yet? I suggest as a first step following the official tutorial on the django website On Tue, Jun 23, 2015 at 8:54 AM, SANTHOSH BADAM wrote: > Hi, I am new to Django. I want to build web app which allows a user to > schedule appointment by

Django Online appointment scheduler

2015-06-23 Thread SANTHOSH BADAM
Hi, I am new to Django. I want to build web app which allows a user to schedule appointment by looking at a service( business service like Salon, Spa, ) calendar and book a slot which is available. It would be great if someone can direct me to right path where there are enough resources to

Help With Using ETAGS

2015-06-23 Thread Nikunj Badjatya
Hello All, What is the difference between setting ETAGS (USE_ETAGS=True)in django settings file vs setting ETAGS in nginx configuration ? Do one need to set at both the places or just one place is sufficient ? Thanks. -- You received this message because you are subscribed to the Google

Re: Best Queryset Practice

2015-06-23 Thread Paritosh Gupta
Hey, Thanks for your prompt reply *Tim & luisza14*, i have gone through the documentation. From what i have understood: When we get all objects from the queryset = User.objects.all() it cache the result and it is better to filter it from this result than hitting the db on every subsequent

[Partly solved] ModelAdmin.save_as integrity error

2015-06-23 Thread Mike Dewhirst
I commented out the save() method in the Substance model (the master model with a number of 1:1 and 1:n relationships) and it started saving as new successfully. Unfortunately I do a lot of stuff in that save() method so I have to figure out how to do that another way. Mike On 23/06/2015