Re: Error or stack trace redirection in Django

2020-07-12 Thread Ram
Yes, this error is from our development server and we have DEBUG = True. Thanks for quick answer. We will not turn this on in production server. Best regards, ~Ram On Sun, Jul 12, 2020 at 8:18 PM Christophe Pettus wrote: > > > > On Jul 12, 2020, at 19:08, Ram wrote: > > > > If coding needs to

Re: Error or stack trace redirection in Django

2020-07-12 Thread Christophe Pettus
> On Jul 12, 2020, at 19:08, Ram wrote: > > If coding needs to be changed here to avoid stack trace on the user browsers, > what should be changed here? You have DEBUG = True; that will result in the debugging output you see. You shouldn't ever have it turned on for a production website.

Error or stack trace redirection in Django

2020-07-12 Thread Ram
Hi, When a failure is happened in Django web application, we noticed that the error is returned directly on the web browser as shown in the attached snap. We wanted to understand whether this is expected as per Django FWK or are we doing something wrong in our coding itself? I believe we should

Multiple DB

2020-07-12 Thread Soumen Khatua
Hi Folks, Actually I want to set up multiple Databases like one DB for User-specific table and another DB for Blog Post, But in this case, User should be a Foreign Key in Post table. Is it possible to do that, if it is then How I can write a query(ORM)? Thank you Regards, Soumen -- You

Re: randomizing objects in the view with pagination

2020-07-12 Thread Damanjeet Singh
Hello, I have been using random module (django-random-queryset) for site https://www.euroautozone.com. Performance is not bad. here is the code models.py class product(models.Model): ##Slug objects = RandomManager() Views.py query =

Re: randomizing objects in the view with pagination

2020-07-12 Thread MUGOYA DIHFAHSIH
Am anxiously waiting for the answer to this question cos i would like to do the same for my django web app On Sun, Jul 12, 2020, 19:46 John McClain wrote: > I have a marketplace with many sellers selling the same 3 products in > various values. In all the are 18 product type for sell on the

randomizing objects in the view with pagination

2020-07-12 Thread John McClain
I have a marketplace with many sellers selling the same 3 products in various values. In all the are 18 product type for sell on the platform with hundreds of sellers. I was randomizing the product category page when loaded so that items from all sellers could appear on the page. I was not using

Re: Django deployment on linux rhel 7

2020-07-12 Thread Kasper Laudrup
On July 12, 2020 4:41:31 PM GMT+02:00, Ashish General wrote: >Hi Kasper, > >Thanks that link is good for reference but I just try to run run server >with below command but bootstrap is not getting loaded. Same project on >win10 is loading bootstrap correctly. Can you help > Send your replies to

Re: Django deployment on linux rhel 7

2020-07-12 Thread Ajish Gopinath
Yes, I have installed and its working fine. On Sun, 12 Jul 2020 at 17:47, ashish goyal wrote: > Hi, > > Anyone done django deployment on linux rhel 7 and bootstrap working fine > with below command > python manage.py runserver > > Need help > > Thanks > Ashish > > -- > You received this message

Re: want to take input of datetimefield from my template

2020-07-12 Thread Kasper Laudrup
On July 12, 2020 3:02:00 PM GMT+02:00, Chander shekhar wrote: >starttime=datetimefield() > >i want to take datetimefield from my template but i am not able to do >it. >i have created the form and passed the widget of datetime-local but it >is >not acceptable ,it is giving me error . >Help me to

Re: Django deployment on linux rhel 7

2020-07-12 Thread Kasper Laudrup
On July 12, 2020 2:16:19 PM GMT+02:00, ashish goyal wrote: >Hi, > >Anyone done django deployment on linux rhel 7 and bootstrap working >fine with below command >python manage.py runserver > >Need help >

want to take input of datetimefield from my template

2020-07-12 Thread Chander shekhar
starttime=datetimefield() i want to take datetimefield from my template but i am not able to do it. i have created the form and passed the widget of datetime-local but it is not acceptable ,it is giving me error . Help me to resolve it . It's important -- You received this message because you

Django deployment on linux rhel 7

2020-07-12 Thread ashish goyal
Hi, Anyone done django deployment on linux rhel 7 and bootstrap working fine with below command python manage.py runserver Need help Thanks Ashish -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

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

2020-07-12 Thread Kuntal Paul
Thanks a lot for help. That worked. On Sat, Jul 11, 2020, 11:47 PM oba stephen wrote: > 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 >>