Buradan Youtube video linkine ulaşabilirsiniz.
Kullandığımız teknolojiler:
- Python
- Docker
- Jenkins
- Nginx
- GitHub
Buradan Youtube video linkine ulaşabilirsiniz.
Kullandığımız teknolojiler:
var hr_bar_data = {{hr_bar_data|safe}}; // Django template language syntax | |
var bar_trace = { | |
x: [], | |
y: [], | |
name: 'HR Bar', | |
orientation: 'h', | |
marker: { | |
color: '#5058B8', | |
width: 1 |
Django admin sayfalarının görünümlerini döndürürken öncelikle settings.py içerisinde set ettiğimiz templates klasörüne gider ve buradaki admin klasörünün altına bakar. Eğer bu yolu (path) bulamazsa (admin klasörü eklememişsek) default olarak kendi görünümlerini döndürür.
Django ile birlikte gelen admin sayfasının formları default olarak şu yapıdadır. Modellerimize özel form sayfalarını özelleştirirken bu sayfaları extend edeceğiz.
admin/change_list.html
admin/change_form.html
admin/delete_confirmation.html
function debug_to_console($data) { | |
$output = $data; | |
if (is_array($output)) | |
$output = implode(',', $output); | |
echo "<script>console.log('Debug Objects: " . $output . "' );</script>"; | |
} |
# This is a basic workflow to help you get started with Actions | |
name: Kodları push edildiğinde sunucuya aktar. | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] |
# My aliases | |
alias gs='git status -sb' | |
alias gaa='git add --all' | |
alias gc='git commit -m $2' | |
alias gp='git push' | |
alias gpo='git push origin' | |
alias gpl='git pull' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias ga='git add $2' | |
alias gb='git branch' |
version: "3.9" | |
services: | |
db: | |
image: postgres | |
container_name: dwh-db | |
restart: unless-stopped | |
ports: | |
- "5432:5432" |
{% if messages %} | |
{% for message in messages %} | |
<script> | |
new Toast({ | |
message: '{{ message }}', | |
type: '{{ message.tags }}' | |
}); | |
</script> | |
{% endfor %} |
.PHONY: help | |
help: | |
@echo "{{ project_name }} Projects" | |
@echo "~~~~~~~~~~~~~~~" | |
@echo "" | |
@echo "check : Health check" | |
@echo "coverage : Make test coverage" | |
@echo "docup : Run docker compose services" | |
@echo "docdown : Stop docker containers" |
pip list -o --format columns| cut -d' ' -f1|xargs -n1 pip install -U |