#17540: Errors in 1.3 Writing your first Django app part 1 and 2 Ubuntu 11.10
-------------------------------+--------------------------------------
Reporter: eric.fish@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.3
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by lukeplant):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
In the first case, the comma at the end is not required.
In the second case, doing "from polls.models import Poll" will work fine,
and is definitely preferred over "from models import Poll" (which is using
implicit relative imports, which are going away). It is likely your Python
path has been incorrectly set up. The setup for 1.3 and earlier is a bit
confusing due to Python path hacking that was done in those older versions
of Django, but has now been corrected.
Tutorial 1 does indeed document what the project structure will look like.
--
Ticket URL: <https://code.djangoproject.com/ticket/17540#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.