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

Reference views by strings in urls.py files #91

Open
treyhunner opened this issue Mar 15, 2014 · 1 comment
Open

Reference views by strings in urls.py files #91

treyhunner opened this issue Mar 15, 2014 · 1 comment

Comments

@treyhunner
Copy link
Member

Currently we recommend import views from myblog and then reference views.home. Django's example uses a string 'blog.views.home' instead. I think we should do that too.

@macro1
Copy link
Member

macro1 commented Nov 4, 2014

I actually reverted the string references to imports where I was able to. I think I read somewhere the import magic is being removed at some point (by Django 2.0?) so I don't think we should encourage its usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants