Uzak sunucumuzua bağlanmak için kendimize bir kullanıcı oluşturuyoruz. Şifresini güçlü oluşturmalıyız.
# adduser yeni_kullanici
<!-- bu blok ilgili formun bulunduğu sayfadan alınmıştır --> | |
<div class="form-group col-md-6 space-30" id="il_div"> | |
<label class="control-label" for="inputemail">İl *</label> | |
<select name="il" id="il_secim" class="form-control" style="color: black;"> | |
{% for il in iller %} | |
<option value="{{ il.ad }}" data-id="{{ il.pk }}">{{ il.ad }}</option> | |
{% endfor %} | |
</select> | |
</div> |
dashboardımızdan web sekmesine tıklıyoruz ve yeni bir app oluşturuyoruz custom seçeneğini seçiyoruz | |
ardından bash console açıyoruz | |
/home/kullanici_adiniz/.virtualenvs -> bu dizin altında virtualenvlerimiz bulunur | |
mkvirtualenv --python=/usr/bin/python3.8 venv -> /home/kullanici_adiniz/.virtualenvs altına venv adında bir virtualenv kurar | |
git repomuzu /home altına klonluyoruz |
function getCookie(name) { | |
var cookieValue = null; | |
if (document.cookie && document.cookie !== '') { | |
var cookies = document.cookie.split(';'); | |
for (var i = 0; i < cookies.length; i++) { | |
var cookie = cookies[i].trim(); | |
// Does this cookie string begin with the name we want? | |
if (cookie.substring(0, name.length + 1) === (name + '=')) { | |
cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); | |
break; |
# Python3 - requests package | |
import requests | |
print(requests.get('https://www.howsmyssl.com/a/check', verify=False).json()['tls_version']) | |
# Python3 - urllib package | |
import json | |
import urllib.request |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
app = dash.Dash() | |
my_input = dcc.Input(id='my-input', # component id'si | |
type='text', # input tipi | |
placeholder='Aramak İstediğiniz Metni Girin...', # input box boş ise ne yazacak |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import plotly.express as px | |
import seaborn as sns | |
import pandas as pd | |
def get_fig(df): | |
return px.scatter(df, x="total_bill", # x eksenindeki değişken |
from decimal import Decimal | |
from django.conf import settings | |
from cart.models import Product | |
class Cart: | |
def __init__(self, request): | |
""" | |
Cart objesi oluşturulurken. | |
""" |
Tablomuzu oluşturacak fonksiyon
import dash_html_components as html
import dash_bootstrap_components as dbc
def get_basic_table(headers, rows, style):
table_header = [
html.Thead(html.Tr([html.Th(f"{header}") for header in headers]))