If you are not using a virtual env, did you install pip3? If so, since you
are using puthon3 -V to get that python version, try running
$ pip3 install django
And see if you get a different result
I think what is happening is when you run pip install it’s referencing
another python version, not pyt
Thank you for all your answers
I know my problem with version
So for me it's very strange...
python3 -V
Python 3.5.3
pip install Django==2.0.5
Collecting Django==2.0.5...
Could nt find a version... 1.2.1, 1.2.2 etc and the last one 1.11.13
No matching distribution found fot Django==2.0.5
Another option to get the current version of Django is to create a file
called requirements.txt. In this file enter django on a line, and other
requirements on other lines. You can also specify a specific version
with django==1.11 or any other version by changing the number after the
==. If t
You need to follow the CORRECT tutorial:
https://docs.djangoproject.com/en/1.11/
In the urls.py file, instead of:
from django.contrib import adminfrom django.urls import include, path
urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),]
you need this:
Your problem is right here:
> django-admin --version 1.11.13
You are using Django 1.11. The documentation you are using refers to a
newer version of Django, version 2.0.
Use the right documentation for your version of Django:
https://docs.djangoproject.com/en/1.11/
You are seeing this specific
Thank
But (I use debian 9)
Apt-get update
Apt-get install python python3 python-django
django-admin --version 1.11.13
Where is the problem ?
Le 17/05/2018 à 21:01, Fidel Leon a écrit :
You are using the wrong combination of Django and tutorial: “include”
is available in Django 2 and up, bu
From which package you have imported "include "
You are using Django 1.11 with the tutorial written for Django 2.0. Therr
should be a version picker on the bottom right of the tutorial.
You are seeing this error because the way to import ‚include’ has changed from
1.11 to 2.0
Hope that helps,
Daniel
> Am 17.05.2018 um 19:34 schrieb Tristan
You are using the wrong combination of Django and tutorial: “include” is
available in Django 2 and up, but you’re using Django 1.11.
Fidel Leon
fi...@flm.cat
Phone: +34 622 26 44 92
GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7
El 17 de mayo de 2018 a las 20:56:56, Tristan Demot (
cont
9 matches
Mail list logo