On Monday, 24 June 2019 19:20:16 UTC+5, Osama imran wrote:
>
> model.py
>
> from django.db import models
>
> # Create your models here.
>
> class Subject(models.Model):
> subject_name = models.CharField('Subject',max_length=20)
>
> def __str__(self):
> return self.subject_name
>
model.py
from django.db import models
# Create your models here.
class Subject(models.Model):
subject_name = models.CharField('Subject',max_length=20)
def __str__(self):
return self.subject_name
class Person(models.Model):
name = models.CharField(max_length=50)
age =
You're welcome,
Tell me if you have any doubts during implementation.
Cheers,
Em seg, 24 de jun de 2019 às 09:28, Amsa escreveu:
> Fantastic. Thanks, Wanderley.
>
> Cheers
> Amsa
>
> On Monday, June 24, 2019 at 5:51:34 PM UTC+5:30, Wandss wrote:
>>
>> Hi there Amsa,
>>
>> Both approaches are
Fantastic. Thanks, Wanderley.
Cheers
Amsa
On Monday, June 24, 2019 at 5:51:34 PM UTC+5:30, Wandss wrote:
>
> Hi there Amsa,
>
> Both approaches are fine, I mean, there's no "right or wrong" since,
> choosing between then is more a personnal / architecture design choice.
> Keep in mind that if y
Hi there Amsa,
Both approaches are fine, I mean, there's no "right or wrong" since,
choosing between then is more a personnal / architecture design choice.
Keep in mind that if you use Django project to deliver your frontend
application as a static file, you will have to create an url pointing to
I am building a DJango Web Application where the back end is the DJango
Rest API and the front end is HTML/JS.
Can I Keep both the API code (DJango project) and the front end code (WWW
folder) in the same server? or Should I move the front end to somewhere
else like AWS?
Also, I am making the