These are chat archives for django/django

3rd
Jan 2018
mounikeshmintu
@mounikeshmintu
Jan 03 2018 02:37
@avocadosarelife what is the purpose of importing BASE_DIR
Shobhit Jain
@Shobhit1610
Jan 03 2018 13:48
Hi guys . Actually i am working on a ml project in python and want to delpoy it on a website using django but dont know how. Any suggestions
Anjansrivathsav
@anjansrivathsav
Jan 03 2018 16:56
@avocadosarelife try this it may work
from django.conf import settings
print(settings.BASE_DIR
)
Peter Bittner
@bittner
Jan 03 2018 16:59
@avocadosarelife @mounikeshmintu Some settings in Django need absolute paths. If you want to make that relative to your project settings location (which is generally a good idea) you can determine the "base path" and reuse that in all affected settings. That's why BASE_DIR has been invented. It's not an "official" setting. See e.g. https://docs.djangoproject.com/en/2.0/ref/settings/#media-root
Anjansrivathsav
@anjansrivathsav
Jan 03 2018 17:05
@mounikeshmintu mention in the view the templatename and run the for loop in the template your data would be able to view the data