Skip to content

Commit

Permalink
how to run project in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bloogrox committed Dec 19, 2023
1 parent 09113e9 commit 154be4c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REDIS_URL=redis://redis
TRACKER_URL=http://0.0.0.0:8000
IPSTACK_TOKEN=xxx
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ celerybeat.pid
env/
venv/
ENV/
.env*

# Spyder project settings
.spyderproject
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,14 @@ Keywords: Affiliate Tracking Software, CPA Platform, Affiliate Management Platfo
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[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
16 changes: 16 additions & 0 deletions project/settings/local.dist.py
Original file line number Diff line number Diff line change
@@ -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')
}

0 comments on commit 154be4c

Please sign in to comment.