Media Filename Manipulation

2020-06-04 Thread Desmond Nyamador
Hi, I have my images uploaded to Google Cloud Storage which invokes a function to provide three variations of my image. I'd like to know how I can manipulate my image name in the template from the default say {{ foo.image.url }} that results in media/foo.jpg to media/foo_200x200.jpg -- You re

How to glue Django and React together?

2020-05-06 Thread Desmond Nyamador
Hi, what you're trying to do is called server side rendering. Django does this out of the box with it's templating language , however since you want to use an SPA (React) I suggest you look into Nextjs. It's built like this out of the box. -- You received this message because you are subscr

is there a WYSIWYG for Django

2020-02-08 Thread Desmond Nyamador
Hi I suggest you try out Django summernote. Easy to setup for your admin and frontend -- 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...@

Django

2020-01-30 Thread Desmond Nyamador
Hi Mick, I suggest you create a slug field in your model which will be used to filter your model rather than an id.If an object get saved with a title of foo bar, the slug field would handle the slugification of that title to "foo-bar" -- You received this message because you are subscribed to

SSL Certification, an issue with Django Python Daphne Server, Certbot, and Let's Encrypt

2019-04-10 Thread Desmond
Hello All, This is the first time I've ever posted in the group so forgive me if this question is too broad for Django. If so, if you could please direct me to another user group, I would be delighted. I've been working on a project that was previously set up by an old contractor. They set up

Django

2018-05-26 Thread ade desmond
How do i handle audio streaming with python and django any libraries or related tutorials will be greatly appreciated -- 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 em

Re: Making/Creating a verified user for unit test (django-allauth)

2017-08-20 Thread Desmond Lim
Thanks Vijay. It works. On Thursday, 17 August 2017 18:20:48 UTC+8, Desmond Lim wrote: > > Hi there, > > I'm wonder, how do we create a verified user for testing purpose > > I have this line that creates a user > > *cls.user = get_user_model().objects.create_user(

Making/Creating a verified user for unit test (django-allauth)

2017-08-17 Thread Desmond Lim
7;,}) self.assertRedirects(response, '/accounts/testuser/')* I keep getting the error that it redirects to /accounts/confirm-email/ (which is the verification page). I'm wondering, how can I make the user verified or create a verified user, so that I can test th