Sunday, January 31, 2016

Re: Tutorial part 1 Parent module not loaded

What is your app name? are you sure the name is polls??. The solution i mention works.

On Mon, Feb 1, 2016 at 9:32 AM, jfragos via Django users <django-users@googlegroups.com> wrote:
I tried your solution and had the same results

from django.conf.urls import include, url
from django.contrib import admin
from polls import views

urlpatterns = [
    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', admin.site.urls),
]

RESULTS
Traceback (most recent call last):
  File "urls.py", line 18, in <module>
    from polls import views
ImportError: No module named 'polls'
Press any key to continue . . .



On Sunday, January 31, 2016 at 10:07:21 AM UTC-5, jfr...@yahoo.com wrote:
Hi,
I am very new to Python and Django but not to programming. I have been programming for 30 years. That said I am trying to work my way thru the Django tutorial part 1 and I am confronted with the following error I can't get past:
Traceback (most recent call last):
  File "urls.py", line 3, in <module>
    from . import views
SystemError: Parent module '' not loaded, cannot perform relative import
Press any key to continue . . .

I'm sure you will request additional information but at this point I'm not sure what you will want to see.  I will post whatever you require.I have started over 3 times with the same results.  I believe I have followed the steps faithfully and I have setup the directory structures as you direct.  I didn't change anything. I'm running python 3.5.1 and Django 1.9.1. 

I would appreciate any help getting thru this as its becoming very frustrating

Thanks

--
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+unsubscribe@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/71ee26a4-3d68-46c2-97d4-16cf19976aa6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




--
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+unsubscribe@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/CAPCf-y5-vu-_OfyLtO0Kyzny29_1xFGhWqPDqeiWP3OAAdX_NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment