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 this is left off then the latest version will be installed. Then
in your virtual environment enter the command 'pip install -r
requirements.txt'. This will download and install everything that is in
the requirements.txt. This file will grow as you enter more requirements.
On 05/18/2018 10:38 PM, Daniel Hepper wrote:
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 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.
https://docs.djangoproject.com/en/2.0/topics/install/#installing-official-release
Hope that helps,
Daniel
On Fri, May 18, 2018 at 4:20 PM, Journal-Immo
<cont...@journal-immo.com <mailto:cont...@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.
Fidel Leon
fi...@flm.cat <mailto:fi...@flm.cat>
Phone: +34 622 26 44 92 <tel://+34%20622%2026%2044%2092>
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...@journal-immo.com <mailto:cont...@journal-immo.com>)
escribió:
Hello,
I use docs.djangoproject.co/en/2.0
<http://docs.djangoproject.co/en/2.0>
Python 2 7 13
Gjango 1.11.13
Creating the Polls app OK
Write your first view OK
But python manage runserver don't work
With : python -Wall manage.py test
ImportError : cannot import name include
If you want to see something, ask me
Many 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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<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
<https://groups.google.com/d/msgid/django-users/1fe7df04-dc85-4a3d-940e-4dde7de31477%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<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
<https://groups.google.com/d/msgid/django-users/CAHXg%3DN090U8JCFfdvZJWH1qSoWQgp2mQH6z2RfCzj3384epQKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<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
<https://groups.google.com/d/msgid/django-users/7e9e643b-6e7e-681c-eed2-dc9ab9be94e6%40journal-immo.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto: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
<https://groups.google.com/d/msgid/django-users/CAHEnUVWWkRsOVD6AfvDoGS05z33R7qu9SuA2Q1o2se%2BPf0M-xg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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+unsubscr...@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/ba514df6-b12e-8e6a-6700-ac44e0d77f23%40gmail.com.
For more options, visit https://groups.google.com/d/optout.