Application that checks whether the ABNs in a provided spreadsheet are valid. If valid, a call will be made to the Australian Business Register (ABR) API to obtain the entity name and business name(s) associated with the ABN. Automates the task of manually verifying ABNs and searching the ABR website.
1. Clone 'abn_validator' Repository
HTML:
git clone https://github.com/Tomology/abn_validator.git
SSH:
git clone [email protected]:Tomology/abn_validator.git
GitHub CLI:
gh repo clone Tomology/abn_validator
2. Create and Activate Virtual Environment
Create:
virtualenv env
Activate:
source env/Scripts/activate
3. Install Dependencies
Change directories so you are in the folder that contains requirements.txt:
cd abn_validator
Install the project dependencies:
pip install -r requirements.txt
4. Setup Secret Key
In settings.py set the SECRET_KEY variable to the location of your own secret key environment variable or generate one using MiniWebTool.
5. Set DEBUG Value
In settings.py set the DEBUG value to True or False.
6. Register for GUID
To be able to make calls to the ABR API you will need to register for a GUID. You can register for a GUID on the ABR Website.
7. Setup GUID
In the utils.py file assign your GUID to the guid variable.
guid = "your-guid-goes-here"
8. Apply Migrations
Make sure you are located in the directory containing manage.py, then apply migrations:
python manage.py migrate
9. Run Server
python manage.py runserver