#27016: django-admin.py startproject creates urls.py that raises ImportError -------------------------------------+------------------------------------- Reporter: stemaan | Owner: nobody Type: Bug | Status: closed Component: Core (URLs) | Version: 1.10 Severity: Normal | Resolution: invalid Keywords: startproject, | Triage Stage: ImportError, urls | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by bmispelon):
* status: new => closed * needs_better_patch: => 0 * resolution: => invalid * needs_tests: => 0 * needs_docs: => 0 Comment: Hi, I think there's an issue with your setup where `django-admin.py` uses an older version of Django (1.7 by the looks of it) but your project actually uses a more recent (1.10) Django version. When using Django 1.10, `django-admin.py startproject` will use correct imports. Can yo ucheck what `django-admin.py --version` returns? I'll mark this ticket as `invalid` for now but please reopen it if it turns out my analysis is incorrect. Thanks. -- Ticket URL: <https://code.djangoproject.com/ticket/27016#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.c5850bd1e6ab93d63306be4349992826%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.