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 RestaurantLocation(models.Mod
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 t
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 Restaura
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 registration. I came across a
4 matches
Mail list logo