This file contains hidden or 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
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| working_dir="$(dirname ${0})" | |
| GREEN='\033[01;32m' | |
| echo -e "\e[37mINFO\e[0m: createing migration archives ..." | |
| for f in "$@" |
This file contains hidden or 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 connection, reset_queries | |
| import time | |
| import functools | |
| def query_debugger(func): | |
| @functools.wraps(func) | |
| def inner_func(*args, **kwargs): | |
| reset_queries() |
This file contains hidden or 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
| version: "3.7" | |
| volumes: | |
| psql_data: | |
| networks: | |
| wize_project: | |
| services: | |
| web: |
This file contains hidden or 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
| kind: pipeline | |
| name: wize_project_ci | |
| type: docker | |
| platform: | |
| os: linux | |
| arch: amd64 | |
| workspace: | |
| path: /drone/app |
This file contains hidden or 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
| # [email protected] | |
| version: "3.7" | |
| services: | |
| drone-server: | |
| image: drone/drone:1 | |
| container_name: drone-server | |
| ports: | |
| - 4021:80 |
This file contains hidden or 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 wize/python-service:latest | |
| RUN apt-get update && \ | |
| apt-get install -y unixodbc-dev && \ | |
| apt-get install -y unixodbc-bin && \ | |
| apt-get install -y unixodbc-dev |
This file contains hidden or 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
| version : '3' | |
| services: | |
| mysql: | |
| image: mysql:latest | |
| container_name: dev_mysql | |
| environment: | |
| MYSQL_USER: wize | |
| MYSQL_PASSWORD: 987654321 | |
| MYSQL_ROOT_PASSWORD: 123456789 |
This file contains hidden or 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
| MIDDLEWARE = [ | |
| 'app.custommiddleware.ProcessViewNoneMiddleware', | |
| 'django.middleware.security.SecurityMiddleware', | |
| 'django.contrib.sessions.middleware.SessionMiddleware', | |
| 'django.middleware.common.CommonMiddleware', | |
| 'django.middleware.csrf.CsrfViewMiddleware', | |
| 'django.contrib.auth.middleware.AuthenticationMiddleware', | |
| 'django.contrib.messages.middleware.MessageMiddleware', | |
| 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
This file contains hidden or 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 datetime import datetime | |
| class BaseMiddleware(object): | |
| def __init__(self, get_response): | |
| self.get_response = get_response | |
| def __call__(self, request): | |
| return self.get_response(request) | |
| class ProcessViewNoneMiddleware(BaseMiddleware): |
This file contains hidden or 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.contrib import admin | |
| from django.urls import path | |
| from app.views import Home | |
| urlpatterns = [ | |
| path('admin/', admin.site.urls), | |
| path('', Home) | |
| ] |
NewerOlder