Skip to content

Day 46 Django urls.py import include #10

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

Closed
ericchou1 opened this issue May 29, 2019 · 6 comments
Closed

Day 46 Django urls.py import include #10

ericchou1 opened this issue May 29, 2019 · 6 comments
Assignees

Comments

@ericchou1
Copy link
Contributor

Just a note, by default project urls.py did not import include method (at least for me when following the steps) so it needs to be explicitly imported.

Default:

from django.urls import path

Add:

from django.urls import path, include

@bbelderbos
Copy link
Collaborator

@ericchou1
Copy link
Contributor Author

Yes, video only, I went back to the source code to see where include() should have been imported from, then saw it was django.urls.

@mikeckennedy
Copy link
Member

mikeckennedy commented May 29, 2019 via email

@ericchou1
Copy link
Contributor Author

Of course, thank you @bbelderbos @mikeckennedy and @hobojoe1848 for the great course. Learning a lot!

@bbelderbos
Copy link
Collaborator

@ericchou1 I just checked " URL routing and your first view" and the include is in there, was it another video perhaps? Cheers

@bbelderbos bbelderbos self-assigned this Jun 8, 2019
@ericchou1
Copy link
Contributor Author

You are right, I must have missed it in the first minute of the video. I will resolve this, thanks for checking!

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

No branches or pull requests

3 participants