Skip to content

ALERTua/import_tax_calculator

Repository files navigation

Stand With Ukraine Made in Ukraine Stand With Ukraine Russian Warship Go Fuck Yourself

Customs Tax Calculator

This Django project provides a web-based customs tax calculator for calculating import taxes on parcels in Ukraine.

Features

  • Calculates customs taxes based on the price input.
  • Supports both Euro and Dollar currencies with conversion rates.

Django SECRET_KEY

The SECRET_KEY is used for cryptographic signing in Django and is critical for production security.

How to generate it

Using Django's built-in utility:

from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())

Or using Python's secrets module:

import secrets
print(secrets.token_urlsafe(50))

How to use it in Docker run

docker run -e SECRET_KEY=your_generated_secret_key -p 8000:8000 your_image

The SECRET_KEY is configured in config/settings.py using the SECRET_KEY environment variable. In DEBUG mode (development), it falls back to an insecure generated key. In production (DEBUG=False), the environment variable is required.

Do not forget to run with --init for SIGTERM to correctly forward to child processes.

Amazon Userscript

GitHub

https://github.com/ALERTua/import_tax_calculator

About

Import Tax Calculator for Ukraine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors