Ana-Niko-byte / zenlist

This is a fullstack Django framework project aimed at improving task tracking.
1 stars 0 forks source link

Housework : Test Scrum Page #18

Open Ana-Niko-byte opened 2 months ago

Ana-Niko-byte commented 2 months ago

Add Python testing for Scrum Project functionality.

AC1 If user not logged in, check correct display of banner variation.

AC2 Test Views. AC3 Test Contact Page + Email Submission. AC5 Test Reviews Form + Submission to Review Page.

Ana-Niko-byte commented 1 month ago

Error: django.db.utils.OperationalError: near "None": syntax error keeps cropping up during any page testing in VSC.

Attempted to clear all migrations files + flush sql but to no avail. Reloaded many times + sought help in Stack Overflow, Medium, GeeksforGeeks, Django Documentation and ChatGPT (that also didn't understand why). Threw all python code into CodeInstitute Pep8 Linter to no avail. Double checked all field validation.

Will attempt this in Gitpod post all functionality implementation.

Ana-Niko-byte commented 1 month ago

Update: issue solved. Problem in database configuration. Setting from :

DATABASES = { 'default': dj_database_url.parse( os.environ.get("DATABASE_URL")) }

to:

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', } }