Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Try: pip install mysqlclient==1.3.4 and if this command does not work, try it: pip install --only-binary :all: mysqlclient Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:04, Rodrigo Zayit wrote: > Have you installed MySQL? > > Att., > Rodrigo de Oliveira > > > On

Re: Not able to install mysql for pyhton.

2018-09-06 Thread Rodrigo Zayit
Have you installed MySQL? Att., Rodrigo de Oliveira On Thu, 6 Sep 2018 at 09:01, Django Lover wrote: > *I am getting following error when i am running pip install > mysql-python Comand . Please help??* > > > > [image: asd.png] > > -- > You received this message because you are subscribed

Re: Best django domain host for signup page

2015-02-26 Thread Rodrigo Zayit
If you know how to setup a server, I recommend DigitalOcean - They have tutorials to help you to setup the server. Cheers, Rodrigo Atenciosamente, Rodrigo de Oliveira On Thu, Feb 26, 2015 at 10:25 AM, Harish Pentapalli

Re: how to put files in different dirs

2015-02-26 Thread Rodrigo Zayit
Yeah! Or you can write your own method to upload_to. It is easy too. I've made a simple example: https://gist.github.com/rodrigo-zayit/604da297d9c30e7d This example save the pictures in: media/images/products/1/product-slug/randomstring.ext Where "1" is the id of the product'

Re: Using Signals - request_finished

2015-02-26 Thread Rodrigo Zayit
12:55:29 PM UTC-5, Rodrigo Zayit wrote: >> >> If it is being loaded and it is not working, try to do by this way: >> >> from django.core.signals import request_finished >> from django.dispatch import receiver >> >> @receiver(request

Re: Using Signals - request_finished

2015-02-25 Thread Rodrigo Zayit
If it is being loaded and it is not working, try to do by this way: from django.core.signals import request_finished from django.dispatch import receiver @receiver(request_finished) def request_finished_callback(sender, **kwargs): # . . . On Wednesday, 25 February 2015 14:01:24 UTC-3, Rootz

Re: django deployment in a virtual machine.

2015-02-25 Thread Rodrigo Zayit
anywhere Atenciosamente, Rodrigo de Oliveira On Wed, Feb 25, 2015 at 2:19 PM, dk wrote: > thanks guys, I installed Apache and I am setting everything, does my > project really need to be in /etc/www/ > > or I can put anywhere in the computer? just making sure the

Re: how to put files in different dirs

2015-02-25 Thread Rodrigo Zayit
Hi! I didn't understand your question. You don't need to put all your files in the same dir... you can create folders like "images", "images/products", "css", "js", etc Or are you asking about "media files"? I mean, files that will be uploa

Re: Delete the file related on the FileField

2015-02-25 Thread Rodrigo Zayit
method: def delete(self, *args, **kwargs): self.field_name.storage.delete(self.field_name.path) return super(ModelName, self).delete(*args, **kwargs) Best regards, Rodrigo Zayit On Tuesday, 24 February 2015 22:30:53 UTC-3, Karim Gorjux wrote: > > I'm using a form that get an