-
-
Notifications
You must be signed in to change notification settings - Fork 26
Common Debugging Help
Thanks to this little gem in stack overflow, I found that there was an errant init.py
Here's how to get the healthcheck in your url: `get the V1.0.0 code from jobhopper. Start the server (assuming you've followed the README.md steps).
(venv) C:\Users\jedpi\OneDrive\Documents\GitHub>python jobhopper/manage.py runserver Watching for file changes with StatReloader Performing system checks...
System check identified no issues (0 silenced). September 22, 2020 - 21:37:18 Django version 3.1, using settings 'jobhopper.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [22/Sep/2020 21:37:24] "GET /api/v1/health HTTP/1.1" 200 308
Go to this url and you'll get some json back: http://127.0.0.1:8000/api/v1/health
Here's a working copy of my .env file: SECRET_KEY='ABx133o5tex' DB_NAME='jobhopperdatabase' DB_USER='jobuser' DB_PASSWORD='jobuser' DB_HOST='127.0.0.1
Here's a working copy of my test run: `(venv) C:\Users\jedpi\OneDrive\Documents\GitHub>python jobhopper/manage.py test Creating test database for alias 'default'... System check identified no issues (0 silenced). ..
Ran 2 tests in 0.047s
OK Destroying test database for alias 'default'... `