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
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
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
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
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
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
6 matches
Mail list logo