Skip to content

Fix Django WSGI entrypoint syntax - #7

Open
venkatranabothu wants to merge 1 commit into
mainfrom
fix/restore-django-settings-env
Open

venkatranabothu wants to merge 1 commit into
mainfrom
fix/restore-django-settings-env

Conversation

@venkatranabothu

Copy link
Copy Markdown
Owner

Summary

  • restore the valid os.environ.setdefault call in the Django WSGI entrypoint
  • fix the syntax error introduced by commit b728be9

Validation

  • python3 -m py_compile app.py sampleproject/manage.py sampleproject/api/*.py sampleproject/sampleproject/*.py
  • python3 sampleproject/manage.py check
  • endpoint smoke tests for /, /health, /api/users, /api/stats, and /api/echo
  • gunicorn app:application --check-config

Django emits only the existing non-blocking warning about the missing staticfiles/ directory.

@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy Preview for sample-python ready!

Name Link
🔨 Latest commit a657132
🔍 Latest deploy log https://app.netlify.com/projects/sample-python/deploys/6a9a836e81ddde0008afaf7e
😎 Deploy Preview https://deploy-preview-7--sample-python.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant