You're not missing something. You should imports. Sorry you don't like the look of it, but that's Python.
On Saturday, August 6, 2016 at 8:42:29 AM UTC-4, Andrew Emory wrote: > > I am having trouble with how I would intuitively get my url patterns to > work, by listing the actual path to the view function. > > So it needs to be a callable, ok. But I don't like having 15+ from > appname import views as appname_view. > > I can add a url.py file in each app and use include(). But then in the > app, I would do a relative view import and import all the functions to that > module... > > Is there a better way to do this? Am I missing something? > > I am watching a tutorial on django 1.9...ha, that is my problem, I assumed > I was working on 1.9. The latest, which is what I have installed, is 1.10. > > My question still stands, would someone please share convention with me on > the best way to do this? > > Thank You. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e1306077-181c-49fc-b3fa-a11b60881271%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.