Re: When to use get_user_model()

2018-02-18 Thread Mukul Agrawal
The answer on this link can also help you in why and when to use get_user_model(). https://stackoverflow.com/questions/24629705/django-using-get-user-model-vs-settings-auth-user-model On Feb 18, 2018 4:11 AM, "tango ward" wrote: Hi, I am playing around with user

what is the use of get_queryset

2018-01-25 Thread Mukul Agrawal
I have two snap of code below. I want to know that in the first one I used template_name='restaurants/restaurants_list.html' which is obvious if I want to use a template but in the second one I have not specified the template name even then it shows the correct web page.How? class

confusion in models in django

2017-12-18 Thread Mukul Agrawal
I am a bit confused that is it necessary to write the name of the app in the INSTALLED_APPS in settings.py. Because whether I write it or not, I am able to successfully run my project. Then what is the difference between the two method. -- You received this message because you are subscribed

having trouble with django models

2017-12-16 Thread Mukul Agrawal
Hello, I am newbie to django. I was trying my hand on models. When i used the below code in models.py, "timestamp" and "updated" are not able visible on admin site. Is something wrong with the code? ''' from django.db import models # Create your models here. class