Greetings,
The ESRI "Working with Web Experiences in the Python API" in Class Basics.
It states the following code snipit.
# import the module from the apps folder, and establish a GIS connection.
from arcgis.apps.expbuilder import WebExperience
from arcgis.gis import GIS
gis = GIS(profile="your_online_profile")
# template enum class example
from arcgis.apps.expbuilder import Templates
temp1 = Templates.MONITOR
# if using a notebook, can preview the template by calling preview()
temp1.preview()
When I call my Template, I get an error??
temp1 = Templates.COASTAL
print(temp1)
The Error message.
AGOL LOGIN
CONNECTED to AGOL
Traceback (most recent call last):
File "C:\Users\ci000030\PycharmProjects\DEV\.venv\DEV\Upload_Coastal.py", line 36, in <module>
temp1 = Templates.COASTAL
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\enum.py", line 429, in __getattr__
raise AttributeError(name) from None
AttributeError: COASTAL