adamchainz / django-cors-headers

Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Something missing here?

rjoxford opened this issue · comments

Forgive me if this is a total non-issue, I'm just getting into Django.

I've followed the readme instructions but I feel like I'm missing something...

I'm getting the following error:

django.core.exceptions.ImproperlyConfigured: 'My_app.apps' does not contain a class 'My_appConfigcorsheaders'. Choices are: 'My_appConfig'

Is there something I need to add in to the My_app.app file? Thanks

You’re missing a comma between the two app names, so python has combined them in one string.

Boy do I feel like a fool now... Appreciate your help.

No need to feel like a fool! This is a misleading python behaviour imo. I mean to write a blog post warning about it.