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
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
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
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
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
5 matches
Mail list logo