#20191: No Module Named App Name
--------------------------------+--------------------
Reporter: johnsonshara@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Python 2 | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------
I have Created the Project and App using Python And Django.
This is My Model in my model.py
--------------------------------------------------------------------------------------
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
--------------------------------------------------------------------------------------
Now When run import Poll though python shell , it gives no module name
Poll.
Project Structure :
mysite [project name]
manage.py
mysite
files under mysite
polls [my app]
__init__
models
views
tests
--
Ticket URL: <https://code.djangoproject.com/ticket/20191>
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.