Re: How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Thanks Larry for the reply. Nothing is happening after invoking the script(I think, I am doing something wrong in using the python script in Django views). I have tried running the script separately which is working fine and giving the output. On Friday, January 15, 2016 at 8:32:51 PM

Re: How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Thanks Larry for the reply. Nothing is happening after invoking the script(I think, I am doing something wrong in using the python script in Django views). I have tried running the script separately which is working fine and giving the output. On Friday, January 15, 2016 at 8:32:51 PM

Re: Showing BooleanField checkbox on left

2016-01-15 Thread Tony Flury
On Thursday, 14 January 2016 17:55:41 UTC, Sayse wrote: > > Yea I've heard of it. Have they managed to achieve this? I'd be interested > to see how they've done it if so... > > I was hoping to find a way to do this with native django if possible > One way that might work is to subclass the

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Xristos Xristoou
> > and i have DEBUG toolbar if you help you > SettingValueABSOLUTE_URL_OVERRIDES{}ADMINS()ALLOWED_HOSTS[] ALLOWED_INCLUDE_ROOTS()APPEND_SLASHTrueAUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',)AUTH_USER_MODEL'auth.User'

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Xristos Xristoou
now if i delete {% video my_video "large" %} not show me error again but nor show me and video is empty for my template . and again show me this django 1.8.7 finaly that my version. > --

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
I thing the problem its here {% video my_video "large" %} You have a tag inside the other tag The reference https://docs.djangoproject.com/en/1.9/ref/settings/#templates El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > yeah i thing so using django 1.9 help

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Xristos Xristoou
yeah i thing so using django 1.9 help me pls Τη Παρασκευή, 15 Ιανουαρίου 2016 - 8:25:14 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > > 0down votefavorite > > > i want to create a video from

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
Are you using django 1.9 ? TEMPLATE_CONTEXT_PROCESSORS changed in 1.9 I saw the app and it have video tag so test again and check that you do all steps in the doc. El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > > 0down votefavorite > > i want to create a video

Re: django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Luis Zárate
Are you using django 1.9 ? TEMPLATE_CONTEXT_PROCESSORS changed in 1.9 I saw the app and it have video tag so test again and check that you do all steps in the doc. El viernes, 15 de enero de 2016, Xristos Xristoou escribió: > > 0down votefavorite > > i want to create a video

django-embed-video error Unresolved tag 'video'

2016-01-15 Thread Xristos Xristoou
0down votefavorite i want to create a video from youtube url in the django using embed-video 1.step install embed-video pip install django-embed-video 1. step Add embed_video to INSTALLED_APPS in

Re: How do I add permissions in admin for proxy model?

2016-01-15 Thread Simon Charette
Hi Manimaran, I can't help you much with the details you provided. Could you come with an example project to reproduce your issue? Simon Le vendredi 15 janvier 2016 10:41:03 UTC-5, manim...@ishafoundation.org a écrit : > > Hi Simon, > > I am also facing the issue. the thing is Proxy model is

Re: Access denied for MySQL user in Django

2016-01-15 Thread Galil
Hi Fred, The user cdraccess is not the root user and it does not have the rights to access table 'user'. I deleted the guest user as root but nothing changes. The problem was not fixed. On Thursday, 14 January 2016 17:50:21 UTC, Fred Stluka wrote: > > Galil, > > I had a problem like this a

Re: How do I add permissions in admin for proxy model?

2016-01-15 Thread manimaran . k
Hi Simon, I am also facing the issue. the thing is Proxy model is working if the model is in same app. But if the model is imported from another app it is not working. Tried Migrate command. But issue is there. can you help me? Cheers, Manimaran On Thursday, November 12, 2015 at 12:27:18 AM

Writable Nested Serializers

2016-01-15 Thread Ashish Gupta
I am trying to use Writable Nested Serializer with AngularJS. I have image field in the related model. So its something like this: class TrackSerializer(serializers.ModelSerializer): class Meta:

Re: How to run an external python script in my Django view

2016-01-15 Thread Larry Martell
On Fri, Jan 15, 2016 at 9:54 AM, wrote: > Hi, > > I have a script which is running fine and giving output in the form of list > of lists. I want to use that data in my Django view. I am not getting, how > to run a script in django view. > I created a folder utils inside

How to run an external python script in my Django view

2016-01-15 Thread raman . balyan
Hi, I have a script which is running fine and giving output in the form of list of lists. I want to use that data in my Django view. I am not getting, how to run a script in django view. I created a folder utils inside which, I have put the script. Also, I have created __init__.py in the utils

Re: SMTP AUTH extension not supported by server

2016-01-15 Thread François Schiettecatte
See this: https://groups.google.com/forum/#!msg/django-users/w-fqKimJZH4/h1G0Lj2t0iIJ Also plenty of other suggestions if you google for 'django google smtp authentication’ Best regards François > On Jan 15, 2016, at 3:43 AM, achrefsaket2...@gmail.com wrote: > > bnj > > je suis bloqué

Setting a crispy form label from a db model field

2016-01-15 Thread Brad Rice
I'm using Crispy forms for an app that I created. I want to have the labels for the form come from a db entry. Is there a way, and how would you set the label using a model-view variable? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Database Relation: ManyToMany with extra information?

2016-01-15 Thread Balázs Oroszi
I would create a separate model, like VersionedSoftware, which links to Software with ForeignKey (ManyToOne) and includes the version, as I believe the version is related to the software, not the installation event (like a date of installation would for example). The PC would then reference

Re: How to learn Django stepwise Effectively

2016-01-15 Thread ashwoods
If you already know python, I would just start with the tutorial on the website, and then just start hacking on small projects with it. Learn by doing works best for me, but you can also look into two scoops of django if you like reading books. On Thursday, January 14, 2016 at 7:12:31 PM

Database Relation: ManyToMany with extra information?

2016-01-15 Thread maxi . matthe
Hi all, I need some advice regarding the database layout of the following problem: I have a list P of PCs. I have a list S of Software. Both have different fields and are two models.Model subclasses. Now, I want to store for each PC in P, which software from S is installed on it and with which

Django complex relationship

2016-01-15 Thread rakesh
I've created below models as a working solution for an app where I need multiple unique combinations of A and B in C: class A(models.Model): title = models.CharField(max_length=30) class B(models.Model): title = models.CharField(max_length=255) a = models.ManyToManyField(A) class

SMTP AUTH extension not supported by server

2016-01-15 Thread achrefsaket2016
bnj je suis bloqué depuis deux jours sur un problème d'envoie d'un mail avec django enfaite j'ai tous fait a l'aide de documentation django settings.py EMAIL_USER_TLS = True EMAIL_HOST = "smtp.gmail.com" EMAIL_HOST_USER='blabla2...@gmail.com ' EMAIL_HOST_PASSWORD = 'blabla2016' EMAIL_PORT =

django admin search bar add placeholder variable and how to call it in modelAdmin

2016-01-15 Thread superzhang16
I want to add placeholder to search bar .First,I override the template change_list.html and find the search bar ,I know add attribute placeholder ,and I defined a variable placeholder={{'''search_tip'}}to placeholder, as my app has three searchbar in different modelAdmin, I want to change the