-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import cleanup + code formatting using black.
- Loading branch information
1 parent
d52f9d9
commit 339ab32
Showing
15 changed files
with
651 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
from django.shortcuts import render | ||
|
||
# Create your views here. | ||
|
||
from django.http import HttpResponse | ||
from django.template import loader | ||
|
||
|
||
def about(request): | ||
template = loader.get_template('about/about.html') | ||
return HttpResponse(template.render()) | ||
template = loader.get_template("about/about.html") | ||
return HttpResponse(template.render()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
from django.shortcuts import render | ||
|
||
# Create your views here. | ||
|
||
from django.http import HttpResponse | ||
from django.template import loader | ||
import os | ||
|
||
|
||
def ai_assistant(request): | ||
template = loader.get_template('ai_assistant/ai_assistant.html') | ||
# The url of the separately deployed AI Assistant web application is included into the render context | ||
# as a env variable: ---- | ||
return HttpResponse(template.render(context={'AI_ASSISTANT_APP_URL': os.environ.get('AI_ASSISTANT_APP_URL')})) | ||
template = loader.get_template("ai_assistant/ai_assistant.html") | ||
# The url of the separately deployed AI Assistant web application is included into the render context | ||
# as a env variable: ---- | ||
return HttpResponse( | ||
template.render( | ||
context={"AI_ASSISTANT_APP_URL": os.environ.get("AI_ASSISTANT_APP_URL")} | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.