How to create an constant in django?



How to create an constant in django?..

Answer / Rajvir Kumar

{n "method": "Using settings.py",n "example": "DJANGO_CONSTANT = 'This is a constant'",n "description": "In Django, you can define constants in the settings.py file and access them anywhere in your project."]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Django Python Interview Questions

What is the django orm?

1 Answers  


What is the list of backends supported by django ?

1 Answers  


How you can setup static files in django?

1 Answers  


What is the python interpreter prompt ?

1 Answers  


What is a http request?

1 Answers  


Can i use django apis in mobile application development ?

1 Answers  


How to handle urls in django?

1 Answers  


Is django secure?

1 Answers  


How do I make a python script executable on unix ?

1 Answers  


What is whitenoise django?

1 Answers  


Give a brief about ‘django-admin’.

1 Answers  


What is __ init __ method do in models?

1 Answers  


Categories