Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nawal #91

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Nawal #91

wants to merge 10 commits into from

Conversation

nawalragih
Copy link
Collaborator

problem with api, the portfolio saving component isnt working
files are not being processed/found according to terminal response
keep getting errors of saving

Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
style ❌ Failed (Inspect) Dec 2, 2024 7:14am

IslamiTP and others added 5 commits November 19, 2024 16:54
## Summary of Changes

### Project Structure and Configuration Updates:
- **Refactored Firebase Initialization**:
  - Centralized the Firebase configuration into `firebase_config.py` to avoid multiple initializations across different `views.py` files.
  - Ensured proper import paths for Firebase functions in `profiles`, `appointments`, and `saving` modules.

### Module and App Adjustments:
- **Resolved Import Errors**:
  - Addressed `ModuleNotFoundError` by confirming correct import paths and relative/absolute imports in the `views.py` files.
  - Verified that `__init__.py` files were present in relevant directories to mark them as Python packages.

- **Added `INSTALLED_APPS` Entries**:
  - Included missing apps like `saving` in the `INSTALLED_APPS` section of `settings.py` to register them properly with Django.

### CORS Configuration:
- **Fixed `CORS_ALLOWED_ORIGINS` Issue**:
  - Corrected the format of `CORS_ALLOWED_ORIGINS` in `settings.py` to be a list, resolving the `corsheaders.E006` system check error.

### Database Migrations:
- **Migration Handling**:
  - Identified 35 unapplied migrations and ran `python manage.py makemigrations` and `python manage.py migrate` to apply them, ensuring database schema consistency.

### Outcome:
- Successfully resolved errors and ensured smooth server operation with correct configurations and imports.

Now I have to work the last few steps of connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants