CuriousCI
04/24/2022, 6:52 PMAdd the code below to your server's init file.
, but I'm not sure which **init **file to use: the project's __init__.py? The app's __init__.py? Another file I haven't considered?
My next question, is the app_info fields, I'm not sure enough about some fields' meaning:
app_name='', # A generic name, the name of my Django app or the name of my Django project?
api_domain='http://localhost:8000', # I understood this one.
website_domain='https://localhost:3000', # I understood this one too.
api_base_path='/api', # Is this the path of the Django application?
website_base_path='/' # I don't get this one at all... Mind you, I haven't set up the front-end yet, but I've read the documentation about it.
rp
04/24/2022, 6:54 PMCuriousCI
04/24/2022, 6:54 PMrp
04/24/2022, 6:55 PMCuriousCI
04/24/2022, 6:57 PMdjango-admin startproject myproject # This is the command used to create the project.
python manage.py startapp api # This one is for creating the app inside the project.
rp
04/24/2022, 6:59 PMCuriousCI
04/24/2022, 6:59 PMrp
04/24/2022, 7:00 PMCuriousCI
04/24/2022, 7:00 PMrp
04/24/2022, 7:01 PMCuriousCI
04/24/2022, 7:02 PMrp
04/24/2022, 7:03 PMCuriousCI
04/24/2022, 7:04 PMrp
04/24/2022, 7:05 PMCuriousCI
04/24/2022, 7:06 PMrp
04/24/2022, 7:06 PMCuriousCI
04/24/2022, 7:07 PMrp
04/24/2022, 7:08 PMCuriousCI
04/24/2022, 7:08 PMrp
04/24/2022, 7:09 PMCuriousCI
04/24/2022, 7:12 PM