Re: django/mysite/polls tutorial error

2018-10-02 Thread 'ginost7' via Django users
now i get a different error!!! path('', views.index, name='index'), AttributeError: module 'polls.views' has no attribute 'index' On Tuesday, 2 October 2018 14:24:35 UTC+1, ginost7 wrote: > > Hello > > I am trying the django/mysite/polls tuto

Re: django/mysite/polls tutorial error

2018-10-02 Thread 'ginost7' via Django users
Hello apparently in polls/urls.py i changed the dot : from django.urls import path from .import views # PLEASE NOTE THERE IS NO SPACE BETWEEN DOT AND IMPORT!!! On Tuesday, 2 October 2018 14:46:52 UTC+1, ginost7 wrote: > > > > On Tuesday, 2 October 2018 14:29:12 UTC+1, Joel wrote

Re: django/mysite/polls tutorial error

2018-10-02 Thread 'ginost7' via Django users
lpatterns = [ path('', views.index, name='index'), ] > > > > > On Tue, 2 Oct 2018 at 18:55, 'ginost7' via Django users < > django...@googlegroups.com > wrote: > >> Hello >> >> I am trying the django/mysite/polls tutori

django/mysite/polls tutorial error

2018-10-02 Thread &#x27;ginost7' via Django users
Hello I am trying the django/mysite/polls tutorial. After typing, actually copying and pasting this: from django.contrib import adminfrom django.urls import include, path urlpatterns = [ path('polls/', include('polls.urls')), path('admin/', admin.site.urls),] Running this command ( i am

django-admin.py not working

2010-07-31 Thread ginost7
Im using ubuntu I managed to get through the poll project working on the django tut. then tried another project At the prompt i get g...@gino-laptop:~/djangoDEV$ django-admin The program 'django-admin' is currently not installed. You can install it by typing: sudo apt-get install python-django