Re: Libraries for Facebook login

2013-11-22 Thread carlos
try https://github.com/omab/python-social-auth Cheers, On Fri, Nov 22, 2013 at 5:00 PM, coded kid wrote: > Use django_social_auth by Arneb. It rocks! > > > On Friday, 22 November 2013 06:02:30 UTC+1, sk wrote: >> >> I have seen few posts on various Facebook libraries

Re: Hello!

2013-11-22 Thread denghuanzhong
Cool. Everyone need google translate if reading the mail. 在 2013年11月22日星期五UTC+8下午8时53分03秒,Darion Yaphet写道: > > bye > > > 2013/11/22 > >> 新人求罩!! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe

Re: django tests

2013-11-22 Thread Arun K Reddy
> > Simple, first create a user model and do the following: from django.contrib.auth import User class UserProfileTestCase(TestCase): def setup(self): self.user = User.objects.filter(pk=1) self.userprofile = UserProfile.objects.create(first_name =

Re: Using a different backend for admin site

2013-11-22 Thread Russell Keith-Magee
On Fri, Nov 22, 2013 at 11:41 PM, wrote: > We have implemented a django based website that uses LDAP as the > authentication backend(using django-auth-ldap library). We have implemented > the following so far: > > 1> We can authenticate a user against the LDAP server > 2> On

Re: how to get at the manytomany fields in for

2013-11-22 Thread Arun K Reddy
Small correction to what Daniel suggested: {% for spec in d.specialism*_set*.all %} {{ spec.field1 }} etc {% endfor %} On Friday, November 22, 2013 4:23:42 PM UTC+5:30, MikeKJ wrote: > > Got this model > class AdviceLevel(models.Model): > advice = models.ForeignKey(Advice) >

Re: How mature is Microsoft SQL Server support by the ORM?

2013-11-22 Thread Fred Stluka
Clifford, Yes, its because the legacy DB has Windows-1252 chars in it, but mis-informs Django that it is all UTF-8 chars. Not a problem with django-pyodbc, which seems to work perfectly. --Fred Fred Stluka --

Re: Libraries for Facebook login

2013-11-22 Thread coded kid
Use django_social_auth by Arneb. It rocks! On Friday, 22 November 2013 06:02:30 UTC+1, sk wrote: > > I have seen few posts on various Facebook libraries that can be used with > Django to allow a user to login using Facebook credentials. Having tried a > few of them, I did not find any examples

Django Files Not Downloading Properly

2013-11-22 Thread coded kid
I want users to be able to download file from my django web app. I wrote the below codes, but when I download a file, the file will turn into an error file. It won't open and the total size of the file would be 0 bytes. Models: class Emov(models.Model):

Bug Tracker System

2013-11-22 Thread Rafael E. Ferrero
Hello, everybody... someone knows if there is a good bug tracker system like Trac or Mantis but django based?? many thanks in advance! -- Rafael E. Ferrero -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: how to get count of each distinct value

2013-11-22 Thread Fatih Tiryakioglu
Thank you. -- 22 Kasım 2013 Cuma 18:07:47 UTC+2 tarihinde larry@gmail.com yazdı: > > On Fri, Nov 22, 2013 at 10:44 AM, Fatih Tiryakioglu > > wrote: > >> Hi all, >> >> How can I get distribution of values in a field? For example, I have the >> scores below: >> >>

Django front end developer with bootstrap experience & JS

2013-11-22 Thread Team UK
*Looking for a** Django front end developer with bootstrap experience & JS* We have been developing a website that sales printing services. The project is now in the final stages. We are now looking for a front end developer with JS backbone and HTML5, Bootstrap experience to help polish up

Re: How mature is Microsoft SQL Server support by the ORM?

2013-11-22 Thread CLIFFORD ILKAY
On 11/22/2013 05:47 AM, Anssi Kääriäinen wrote: > Check out https://bitbucket.org/Manfre/django-mssql/overview - my > understanding is that it is well maintained and supports also 2012. Thank you Anssi. -- Regards, Clifford Ilkay 647-778-8696 Dinamis -- You received

Re: How mature is Microsoft SQL Server support by the ORM?

2013-11-22 Thread CLIFFORD ILKAY
On 11/21/2013 11:41 PM, Fred Stluka wrote: > Clifford, > > I use: > - http://code.google.com/p/django-pyodbc/ > > No problem except that the MS SQL Server DB identifies itself > as using UTF-8, but actually contains Windows-1252 chars, so > we get UnicoeDecodeError a lot and have to repair the

Re: Apache environment variables in Django 1.6

2013-11-22 Thread Jon Dufresne
> With you setup is it possible to run into some race conditions when two > simultaneous request coming for the first time when _application is still > uninitialized? That is a good question, to which I do not have a good answer. If you come across any issues with this solution I'd be

Re: Apache environment variables in Django 1.6

2013-11-22 Thread Mike Starov
Very nice. I have moved import inside the application call but was concerned about evaluating that impot on every request. Looks like you got that covered. With you setup is it possible to run into some race conditions when two simultaneous request coming for the first time when _application

why don;t many to many fields save in a .save(commit=False)

2013-11-22 Thread MikeKJ
Why don't manytomany fields save like this? 112 af = editform.save(commit=False) 113 af.level_1 = level_1 114 af.level_2 = level_2 115 af.level_3 = level_3 116 af.level_4 = level_4 117 af.save()

Re: html to odt

2013-11-22 Thread Tom Lockhart
On 2013-11-21, at 9:34 PM, Harjot Mann wrote: > I want to save my html django templates to odt file. Is there any way > to do this? Not sure what you actually want to do. If you are trying to capture your final html, you might be able to script something, possibly

Re: how to get count of each distinct value

2013-11-22 Thread Larry Martell
On Fri, Nov 22, 2013 at 10:44 AM, Fatih Tiryakioglu wrote: > Hi all, > > How can I get distribution of values in a field? For example, I have the > scores below: > > (score) > (raw1)1 > (raw2)1 > (raw3)3 > (raw4)4 > (raw5)4

how to get count of each distinct value

2013-11-22 Thread Fatih Tiryakioglu
Hi all, How can I get distribution of values in a field? For example, I have the scores below: (score) (raw1)1 (raw2)1 (raw3)3 (raw4)4 (raw5)4 (raw6)5 (raw7)8 (raw8)8 (raw9)9 (raw10)10 I want to have a

Using a different backend for admin site

2013-11-22 Thread spk265
We have implemented a django based website that uses LDAP as the authentication backend(using django-auth-ldap library). We have implemented the following so far: 1> We can authenticate a user against the LDAP server 2> On succesful login, an entry is created in the AUTH_USER table, if it does

Re: Libraries for Facebook login

2013-11-22 Thread spk265
Looks more promising. Thank you! I will give it a try. On Friday, November 22, 2013 9:43:09 AM UTC-5, vicherot wrote: > > AllAuth work just fine to me... ill follow a tutorial that i find on > google and work ok with django 1.5 > > > 2013/11/22 > >> I have seen few posts on

Re: Libraries for Facebook login

2013-11-22 Thread Rafael E. Ferrero
AllAuth work just fine to me... ill follow a tutorial that i find on google and work ok with django 1.5 2013/11/22 > I have seen few posts on various Facebook libraries that can be used with > Django to allow a user to login using Facebook credentials. Having tried a > few of

Re: CreateView and get_context_data()

2013-11-22 Thread Timothy W. Cook
THanks Lucas and Daniel, On Fri, Nov 22, 2013 at 11:38 AM, Daniel Roseman wrote: > On Friday, 22 November 2013 13:13:46 UTC, Timothy W. Cook wrote: > You've added it to kwargs, but you haven't passed kwargs as the template > context - you've simply hard-coded that to

Re: how to get at the manytomany fields in for

2013-11-22 Thread Daniel Roseman
On Friday, 22 November 2013 10:53:42 UTC, MikeKJ wrote: > > Got this model > class AdviceLevel(models.Model): > advice = models.ForeignKey(Advice) > organisation = models.ForeignKey(Organisation) > specialism = models.ManyToManyField(Specialism, null=True, blank=True) >

Re: CreateView and get_context_data()

2013-11-22 Thread Daniel Roseman
On Friday, 22 November 2013 13:13:46 UTC, Timothy W. Cook wrote: > > Lucas, > > On Fri, Nov 22, 2013 at 9:58 AM, Lucas Magnum > > wrote: > > Timothy, > > The "get_context_data" is called in get method, once you override it > > "get_context_data" isn't called anymore. >

Re: CreateView and get_context_data()

2013-11-22 Thread Timothy W. Cook
Lucas, On Fri, Nov 22, 2013 at 9:58 AM, Lucas Magnum wrote: > Timothy, > The "get_context_data" is called in get method, once you override it > "get_context_data" isn't called anymore. > Right. So my thought process was that if I override it and place additional

Re: Hello!

2013-11-22 Thread Darion Yaphet
bye 2013/11/22 > 新人求罩!! > > -- > 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 post to

Re: 'python manage.py migrate' command gives error even after installing south

2013-11-22 Thread Nigel Legg
Check the documentation for south and go through the tutorial at http://south.readthedocs.org/en/latest/tutorial/part1.html - you need to do an initial migration, and then an auto migration. Also, the taceback you posted says there is a syntax error in the question model Cheers, Nigel 07914

Re: 'python manage.py migrate' command gives error even after installing south

2013-11-22 Thread James Turley
line 5, models.py - you've capitalised Class. It should just be 'class', all lower case. JT On Fri, Nov 22, 2013 at 4:41 AM, puneet pandey wrote: > I was going through Django tutorials and found the command - 'python > manage.py migrate' to give output as 'unknown

Hello!

2013-11-22 Thread cyc870830
新人求罩!! -- 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 post to this group, send email to

Re: Tango with Django Tutorials

2013-11-22 Thread Amimo Benja
Thanks Felipe Coelho, it worked perfectly... At least now I don't have to worry about the internet being there or not. On Fri, Nov 22, 2013 at 2:15 PM, Felipe Coelho wrote: > On Nov 22, 2013 7:01 AM, "Amimo Benja" wrote: > > > > Does anyone know

Re: prefetch_related() failure in django 1.6

2013-11-22 Thread Anssi Kääriäinen
This will be fixed in next minor version of Django 1.6. -Anssi On Friday, November 22, 2013 2:52:29 AM UTC+2, Rhett G. wrote: > > Trying to migrate our Django 1.5 application to 1.6. I hit what I think is > a bug, or at the very least very confusing behavior. > Imagine some models like the

Libraries for Facebook login

2013-11-22 Thread spk265
I have seen few posts on various Facebook libraries that can be used with Django to allow a user to login using Facebook credentials. Having tried a few of them, I did not find any examples that worked. Does anyone know of any such libraries they have recently used and worked fine? Any code

'python manage.py migrate' command gives error even after installing south

2013-11-22 Thread puneet pandey
I was going through Django tutorials and found the command - 'python manage.py migrate' to give output as 'unknown command' . So i searched for it and found that its most probably due to 'south' not installed. i checked it on python shell by giving the command - 'import south' which resulted in

Re: How mature is Microsoft SQL Server support by the ORM?

2013-11-22 Thread Anssi Kääriäinen
Check out https://bitbucket.org/Manfre/django-mssql/overview - my understanding is that it is well maintained and supports also 2012. - Anssi On Thursday, November 21, 2013 8:20:02 PM UTC+2, CLIFFORD ILKAY wrote: > > Hello, > > There is an upcoming project where support for an existing

Re: prefetch_related() failure in django 1.6

2013-11-22 Thread tim
It may be https://code.djangoproject.com/ticket/21410? If so, that'll be fixed in 1.6.1. On Thursday, November 21, 2013 7:52:29 PM UTC-5, Rhett G. wrote: > > Trying to migrate our Django 1.5 application to 1.6. I hit what I think is > a bug, or at the very least very confusing behavior. >

Re: CreateView and get_context_data()

2013-11-22 Thread Lucas Magnum
Timothy, The "get_context_data" is called in *get* method, once you override it "get_context_data" isn't called anymore. You can see in http://ccbv.co.uk/projects/Django/1.4/django.views.generic.edit/CreateView/ []'s Lucas Magnum. 2013/11/22 Timothy W. Cook > I am

Re: Tango with Django Tutorials

2013-11-22 Thread Felipe Coelho
On Nov 22, 2013 7:01 AM, "Amimo Benja" wrote: > > Does anyone know how I can convert the entire Tango with Django Tutorials from online to an offline website that I can store and use on my hard disk? Please help I desperately need to use this site while am offline The

CreateView and get_context_data()

2013-11-22 Thread Timothy W. Cook
I am trying to setup some context variable for use in a template when I execute a create view. class ReviewTitleCreateView(CreateView): model = Review form_class = ReviewTitleCreateForm template_name = 'papers/review_title.html' def get_context_data(self, **kwargs):

Re: Tango with Django Tutorials

2013-11-22 Thread Rafael E. Ferrero
Httrack doesn't help you?? 2013/11/22 Amimo Benja > Does anyone know how I can convert the entire Tango with Django Tutorials > from online to an offline website that I can store and use on my hard disk? > Please help I desperately need to use

how to get at the manytomany fields in for

2013-11-22 Thread MikeKJ
Got this model class AdviceLevel(models.Model): advice = models.ForeignKey(Advice) organisation = models.ForeignKey(Organisation) specialism = models.ManyToManyField(Specialism, null=True, blank=True) service_restriction = models.TextField(null=True, blank=True) in the view

Re: django tests

2013-11-22 Thread Xavier Ordoquy
Hi, Tests are regular Python code using Django. The code shouldn’t be different from what you write elsewhere. You’ll find some example about using foreign key by the end of the first tutorial page. In your case, it looks like you’ll need to create a user and add it to the model you are

Tango with Django Tutorials

2013-11-22 Thread Amimo Benja
Does anyone know how I can convert the entire Tango with Django Tutorials from online to an offline website that I can store and use on my hard disk? Please help I desperately need to use this site while am offline -- You received this message because you are subscribed to the Google

Re: How do I use mathematical calculations on my forloop Article/Publication list?

2013-11-22 Thread DJ-Tom
Am Donnerstag, 21. November 2013 18:53:00 UTC+1 schrieb Pepsodent Cola: > > 1.) > I managed to make my View calculate my variables but I'm getting the same > result *"0.6"* for each forloop. > What am I doing wrong with my variables calculation? > You are passing only a *single* value for

Re: django tests

2013-11-22 Thread Harjot Mann
On Fri, Nov 22, 2013 at 1:47 PM, Xavier Ordoquy wrote: > I feel like you are trying to get too fast into Django. > It looks like you should take some time and read the Django’s documentation. > It is written like a book and would give an accurate view of what’s going on. >

Re: django tests

2013-11-22 Thread Xavier Ordoquy
Hi, I feel like you are trying to get too fast into Django. It looks like you should take some time and read the Django’s documentation. It is written like a book and would give an accurate view of what’s going on. If things are still not clear after that, we’d be interested to hear from it and