Manage your domains
+{% block homepage_content %}
- {% comment %}
- IMPORTANT:
- If this button is added on any other page, make sure to update the
- relevant view to reset request.session["new_request"] = True
- {% endcomment %}
-
-
-
+ {% comment %}
+ IMPORTANT:
+ If this button is added on any other page, make sure to update the
+ relevant view to reset request.session["new_request"] = True
+ {% endcomment %}
+
+
+ {% comment %}
+ IMPORTANT:
+ If this button is added on any other page, make sure to update the
+ relevant view to reset request.session["new_request"] = True
+ {% endcomment %}
+
diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py
index c05bde21d..5e546e8e7 100644
--- a/src/registrar/views/index.py
+++ b/src/registrar/views/index.py
@@ -9,8 +9,11 @@ def index(request):
if request.user.is_authenticated:
# This is a django waffle flag which toggles features based off of the "flag" table
context["has_profile_feature_flag"] = flag_is_active(request, "profile_feature")
+ context["has_organization_feature_flag"] = flag_is_active(request, "organization_feature")
# This controls the creation of a new domain request in the wizard
request.session["new_request"] = True
+ print('homepage view')
+
return render(request, "home.html", context)
diff --git a/src/registrar/views/index_organizations.py b/src/registrar/views/index_organizations.py
new file mode 100644
index 000000000..4ec15ad59
--- /dev/null
+++ b/src/registrar/views/index_organizations.py
@@ -0,0 +1,19 @@
+from django.shortcuts import render
+from waffle.decorators import flag_is_active
+
+
+def index_organizations(request):
+ """This page is available to anyone without logging in."""
+ context = {}
+
+ if request.user.is_authenticated:
+ # This is a django waffle flag which toggles features based off of the "flag" table
+ context["has_profile_feature_flag"] = flag_is_active(request, "profile_feature")
+ context["has_organization_feature_flag"] = flag_is_active(request, "organization_feature")
+
+ # This controls the creation of a new domain request in the wizard
+ request.session["new_request"] = True
+
+ print('homepage organizations view')
+
+ return render(request, "home_organizations.html", context)