pub_date field is not visible in admin panel, even after configuring the app made migrations i tried every way possible from my side

2023-05-31 Thread Likhith K.P.
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length = 500) pub_date = models.DateTimeField(auto_now_add = True) def __str__(self): return self.question_text class Choice(models.Model): question

Re: Finding Help in getting started in Django

2023-05-31 Thread RANGA BHARATH JINKA
Hi, Go through this quick start tutorial and understand. You can do this. It is very easy. https://www.django-rest-framework.org/tutorial/quickstart/ Thanks and Regards J. Ranga Bharath Cell: 9110334114 On Wed, 31 May 2023, 2:16 pm DieHardMan 300, wrote: > I'd like to give some advice befor

Re: Django inside WSL cannot connect to host database

2023-05-31 Thread DieHardMan 300
Are you set "ALLOWED_HOSTS" in settings.py for "172.21.48.1" ? ในวันที่ วันพุธที่ 31 พฤษภาคม ค.ศ. 2023 เวลา 14 นาฬิกา 38 นาที 48 วินาที UTC+7 Robbi Nespu เขียนว่า: > > Hello, > I am using windows machine to develop django project but now i want to > make my program run on WSL and keep the DB a

Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django project configurations -- Before Start Django -- 1. master Python "class" bacause you might use django class-based view a lot, learn "decorator" and standard library "datetime" and "re" 2. choose "Python vers

Re: Finding Help in getting started in Django

2023-05-31 Thread DieHardMan 300
I'd like to give some advice before start your Django journey and Django project configurations -- Before Start Django -- 1. master Python "class" bacause you might use django class-based view a lot, learn "decorator" and standard library "datetime" and "re" 2. choose "Python vers

Django inside WSL cannot connect to host database

2023-05-31 Thread Robbi Nespu
Hello, I am using windows machine to develop django project but now i want to make my program run on WSL and keep the DB are running on host (windows machine), This mean the Django program inside WSL will try to connect to postgresql on WINDOWS. > $ cat /etc/resolv.conf | grep name > name