Re: Django bootstrap calendar

2020-01-20 Thread Muhammed Rafi A
Refer this https://simpleisbetterthancomplex.com/tutorial/2019/01/03/how-to-use-date-picker-with-django.html On Mon, Jan 20, 2020 at 8:15 PM Perceval Maturure wrote: > Dear All > Is there anyone who has used the djangobootrstrap calendar in Django 2.xxx > project? > > -- > You received this mes

Re: Primary Key

2020-01-20 Thread Muhammed Rafi A
import uuid uuid.uuid4().hex[:8] or from django.utils.crypto import get_random_string get_random_string(8).lower() def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): On Mon, Jan 20, 2020 at 2:31 PM Soumen Khatua wrote: > Hi Fo

Re: select field(s) from myytable;

2020-01-10 Thread Muhammed Rafi A
Mytable.objects.values('f1', 'f2') On Fri, Jan 10, 2020, 7:22 PM Klaus Laube wrote: > I'm not sure if I got your question right, but I guess `values()` is what > you are looking for: > https://docs.djangoproject.com/en/3.0/ref/models/querysets/#values > > From the documentation: > >> The values(

Django integration with node js

2020-01-09 Thread Muhammed RAFI A
Django integration with node js for any reference -- 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 discuss

Re: Multi return values in single function

2020-01-04 Thread Muhammed Rafi A
return render(request, 'index.html', content) On Sat, Jan 4, 2020, 8:09 PM nrupesh08 wrote: > hi, > I design cms design on the company profile website. > 5 pages on the website: > index, about, services, projects, contact. > > the problem is, > to display easily DB to frontend expect index pag

Re: Hi everyone I am new in django and postgresql. Actually I am getting following error when i run the project, Although I am putting right password and username. Please Help me....

2020-01-03 Thread Muhammed Rafi A
password is not correct, check them or reset the password ones more On Fri, Jan 3, 2020 at 2:58 PM shailendra singh wrote: > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/3.8/l