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
... | |
TELEGRAM_TOKEN = os.environ.get("TELEGRAM_BOT_TOKEN", "") | |
TELEGRAM_CHAT_ID = os.environ.get("TELEGRAM_CHAT_ID", "") | |
TELEGRAM_SEND_MESSAGE_URL_TEMPLATE = ( | |
f"https://api.telegram.org/bot{TELEGRAM_TOKEN}/sendMessage?" | |
f"chat_id={TELEGRAM_CHAT_ID}&text={{}}&disable_web_page_preview=True" | |
) | |
... | |
... |
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
from django.db import models | |
from django.utils.html import format_html | |
from django.utils.translation import gettext_lazy as _ | |
from stdimage import StdImageField | |
from core.models.base import BaseModel | |
class GoalCategory(BaseModel): | |
title = models.CharField(max_length=255) |
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
... | |
try: | |
user = User.objects.get(email=request.data["email"]) | |
except User.DoesNotExist: | |
raise ValidationError(_("No account found with this email")) | |
request.user = user | |
send_email_forgot_password(request) | |
... |
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
{% extends 'admin/base.html' %} | |
{% load static %} | |
{% block title %}Rosetta{% endblock %} | |
{% block extrastyle %} | |
{% endblock %} | |
{% block extrahead %} | |
<script src="//www.google.com/jsapi" type="text/javascript"></script> |
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
Task 1: Create a project jumphost instance | |
Navigation menu > Compute engine > VM Instance | |
Task 2: Create a Kubernetes service cluster | |
gcloud config set compute/zone us-east1-b | |
gcloud container clusters create nucleus-webserver1 |