Thank you for the very detailed explanations everyone!
On Saturday, June 20, 2015 at 3:11:34 AM UTC+2, [email protected] wrote: > > This is mostly a cosmetic question, and I could be completely wrong > because I'm fairly new to Django, or it could be that there is a perfectly > logical explanation for this, but here goes: > > It seems the code required to import views in urls.py and models in > views.py is inconsistent (and in the case of urls.py perhaps redudant). > > To import views in urls.py I have to use > > from <appname> import views > > ...while in views.py I can simply write > > from models import * > > Why do I need to reference the appname in urls.py but not in views.py? Or > is there a reason for this? > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7c0f2244-862e-415c-be4a-d5e9120e36f2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

