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
Do you think Virtual Envirenment will solve my problem ?
Many thank again
--
Le 18/05/2018 à 16:38, Daniel Hepper a écrit :
--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:
You are seeing this specific error because in Django 2.0, you can write "from django.urls import include", while in Django 1.11, you have to write "from django.conf.urls import include".
Note that using Debian packages, you won't get the latest version of Django (or any other Python packages). You might want to consider installing the latest version with pip.
Hope that helps,Daniel
On Fri, May 18, 2018 at 4:20 PM, Journal-Immo <contact@journal-immo.com> wrote:
--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, but you're using Django 1.11.
El 17 de mayo de 2018 a las 20:56:56, Tristan Demot (contact@journal-immo.com) escribió:
----Hello,
Python 2 7 13Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't workWith : python -Wall manage.py testImportError : cannot import name includeIf you want to see something, ask meMany 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/1fe7df04-dc85-4a3d-940e-4dde7de31477%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/CAHXg%3DN090U8JCFfdvZJWH1qSoWQgp2mQH6z2RfCzj3384epQKQ%40mail.gmail.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/7e9e643b-6e7e-681c-eed2-dc9ab9be94e6%40journal-immo.com.
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/CAHEnUVWWkRsOVD6AfvDoGS05z33R7qu9SuA2Q1o2se%2BPf0M-xg%40mail.gmail.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/082cf01b-f457-fbed-ab9b-c4009ab0b555%40journal-immo.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/CAE-E-_13801CTCjmKijtXgM3wD3aOwTiQYbuOCCFUJ%3D5dFs5Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:
Post a Comment