Re: Django Saving a form with Imagefield on shared host

2020-07-11 Thread Stanley Valentin
J'arrive pas à comprendre! Tu parles français. Si ça marche pas il est possible que tu a fait une erreur Le 15 juin 2020 14:55, "Kelvin Sajere" a écrit : > Did you specify a folder to use for media when you deployed your app? If > so, then make sure it's where you are supposed to have your

Re: Django Saving a form with Imagefield on shared host

2020-07-11 Thread Mostaq mahmud
It's about Mod_Security issue. Contact to the hosting support and tell them to disable Mod_Security. On Thursday, June 18, 2020 at 11:30:30 AM UTC+6, MUGOYA DIHFAHSIH wrote: > > @Mangla, essentially what i want to do is to serve uploaded images on a > shared host through the media directory in

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread oba stephen
It should work. Try the link Damanjeet shared. If you still get an error, share the error message. On Sat, Jul 11, 2020 at 6:57 PM Damanjeet Singh wrote: > Please check this answer > https://stackoverflow.com/questions/16824004/django-conditional-login-redirect > > On Sat, 11 Jul 2020, 18:22

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Gabriel Araya Garcia
Kuntal: I have resolved that issue, but we can make interchange of information: I need the Ajax code where I can evaluate in onblur text html if one patient is found or not. The field key in the text box is RUT (each person have one in my country) for example, my rut is 7841349-2, and it's only,

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Damanjeet Singh
Please check this answer https://stackoverflow.com/questions/16824004/django-conditional-login-redirect On Sat, 11 Jul 2020, 18:22 Kuntal Paul, wrote: > Thank you for your response. I did this way and it was giving me a 405 > error. I couldn't find my mistake. I was saving both of them as

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
Thank you for your response. I did this way and it was giving me a 405 error. I couldn't find my mistake. I was saving both of them as student and as teacher separately from auth.user. Also, do I have to provide a separate temple for that view? On Sat, Jul 11, 2020, 10:41 PM oba stephen

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread oba stephen
You can consider redirecting to a URL that handles the request. That is a View function that checks if the user is a student or teacher, then renders the respective profiles. Regards On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul wrote: > The *LOGIN_REDIRECT_URL* only allowing to redirect to a

Re: Performance queries helps

2020-07-11 Thread damanjeet kaur
{% for news7 in newscat7 %} {{news7.name }} {{news7.date|date:'Y-m-d'}} {{news7.body|safe|truncatewords:20}} {{news7.category.all.0}} Read More {% endfor %} On Sat, Jul 11, 2020 at 10:46 AM carlos wrote: > Hi, i need any advice for performance queries >

HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread Kuntal Paul
The *LOGIN_REDIRECT_URL* only allowing to redirect to a particular profile page. But in scenarios like where there are *students* and *teachers*, both of them need their specific profile page after login. Using* LOGIN_REDIRECT_URL*, both the teachers and the students are getting redirected

Re: 'Sandboxed' Template engine/context

2020-07-11 Thread Integr@te System
Hi Michael, Plz look at https://pypi.org/project/django-template-engines/ And see in Django doc for your use case as very detail with builtin jinja2 engine and must config backend enviroment to use https://docs.djangoproject.com/en/3.0/topics/templates/#django.template.backends.jinja2.Jinja2

Re: Performance queries helps

2020-07-11 Thread Budi Hermansyah
di you ever try an elastic search for indexing our categories product to speed up? On Sat, Jul 11, 2020 at 12:16 PM carlos wrote: > Hi, i need any advice for performance queries > i have a model name Post > post have m2m categories and fk author > > the index page show 7 categories in