- Python 3.9
- Postgres 14.1
Program downloads and saves campaigns first, then process ad groups and search terms. if a data has a related object that doesn't exist on database, the data will be ignored until related data is created
-
to get all data use this command
$ python manage.py update_search_terms
-
this command pull campaigns, ad groups and search terms in order
-
To create an superuser account, use this command:
$ python manage.py createsuperuser
For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.
Running type checks with mypy:
$ mypy bidnamic
To run the tests, check your test coverage, and generate an HTML coverage report:
$ coverage run ./manage.py test .
$ coverage html
$ open htmlcov/index.html
$ python manage.py test .
This app comes with Celery.
To run a celery worker:
cd bidnamic
celery -A config.celery_app worker -l info
Please note: For Celery's import magic to work, it is important where the celery commands are run. If you are in the same folder with manage.py, you should be right.
The following details how to deploy this application.