diff --git a/.env.dist b/.env.dist new file mode 100644 index 0000000..6234e55 --- /dev/null +++ b/.env.dist @@ -0,0 +1,3 @@ +REDIS_URL=redis://redis +TRACKER_URL=http://0.0.0.0:8000 +IPSTACK_TOKEN=xxx \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3778dd2..68070d2 100644 --- a/.gitignore +++ b/.gitignore @@ -85,7 +85,6 @@ celerybeat.pid env/ venv/ ENV/ -.env* # Spyder project settings .spyderproject diff --git a/README.md b/README.md index 0d55d6c..223997b 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,14 @@ Keywords: Affiliate Tracking Software, CPA Platform, Affiliate Management Platfo [telegram_badge]: https://img.shields.io/badge/telegram-252850?style=plastic&logo=telegram [telegram_link]: https://t.me/bloogrox + +# Development + +- Copy `project/settings/local.dist.py` to `project/settings/local.py` +- Copy `.env.dist` to `.env` + +``` +docker compose up +``` + +open http://0.0.0.0:8000 \ No newline at end of file diff --git a/project/settings/local.dist.py b/project/settings/local.dist.py new file mode 100644 index 0000000..2f68a1e --- /dev/null +++ b/project/settings/local.dist.py @@ -0,0 +1,16 @@ +import dj_database_url +from .base import * # noqa + + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = '4wsaeuncy$^*l_fycbwqi_2g)5a$b6a%x0@l@6k=xxxxxxxxxx' + +DEBUG = True + +DATABASE_URL = "postgresql://postgres:postgres@postgres/postgres" + +DATABASES = { + 'default': dj_database_url.config( + default=DATABASE_URL, + engine='django.db.backends.postgresql_psycopg2') +}