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 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5f6f59c4-3230-46bd-a6a0-035ba49a72cd%40googlegroups.com.


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 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bb640851-d9e3-4848-8541-69e3d7a84370%40googlegroups.com.


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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e5028222-8a6b-41a9-a547-b686ea1b513b%40googlegroups.com.


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 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0699a214-f49d-4680-86a5-eb904a99afb9%40googlegroups.com.