beginner's question

28 views
Skip to first unread message

Takashi Sawa

unread,
Nov 5, 2019, 10:01:20 AM11/5/19
to Django users
 File "<stdin>", line 1
    python -m django --version
              ^
SyntaxError: invalid syntax

What's this?

Siratim Mustaquim

unread,
Nov 5, 2019, 10:07:01 AM11/5/19
to django...@googlegroups.com
Can you elaborate a  little bit? that command checks the version of django that is currently installed.


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a626578e-a97d-4bef-b394-5472917327fa%40googlegroups.com.

Takashi Sawa

unread,
Nov 5, 2019, 10:20:45 AM11/5/19
to Django users
日本語で失礼致します。
これに今挑戦しているのですが、どうしてもさっきの「Error」が出てしまいます。


2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
Can you elaborate a  little bit? that command checks the version of django that is currently installed.


On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa <sawasu...@gmail.com> wrote:
 File "<stdin>", line 1
    python -m django --version
              ^
SyntaxError: invalid syntax

What's this?

--
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...@googlegroups.com.

Jordan Micle

unread,
Nov 5, 2019, 10:23:35 AM11/5/19
to Django users


if you are going to check the version of installed django

django-admin --version

Takashi Sawa

unread,
Nov 5, 2019, 10:25:00 AM11/5/19
to Django users
今再度挑戦したら、次はこれが出てきました。


C:\Users\sour->python -m django --version
2.2.7

C:\Users\sour->django-admin startproject mysite

C:\Users\sour->python manage.py runserver
python: can't open file 'manage.py': [Errno 2] No such file or directory

C:\Users\sour->

なにが問題でしょうか。


2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
Can you elaborate a  little bit? that command checks the version of django that is currently installed.


On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa <sawasu...@gmail.com> wrote:
 File "<stdin>", line 1
    python -m django --version
              ^
SyntaxError: invalid syntax

What's this?

--
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...@googlegroups.com.

Ronaldo Mata

unread,
Nov 5, 2019, 10:28:02 AM11/5/19
to django...@googlegroups.com
You are trying to run that command on the python interpreter.

try run that command outside python interpret.

El mar., 5 nov. 2019 a las 11:23, Jordan Micle (<jordanm...@gmail.com>) escribió:


if you are going to check the version of installed django

django-admin --version

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/31f8f64b-19b0-48cb-9471-08c0cf2a1f28%40googlegroups.com.

Jordan Micle

unread,
Nov 5, 2019, 10:28:47 AM11/5/19
to Django users
cd mysite
input this command 

Takashi Sawa

unread,
Nov 5, 2019, 10:36:30 AM11/5/19
to Django users
Thank you!
出来ました!


2019年11月6日水曜日 0時28分47秒 UTC+9 Jordan Micle:

Takashi Sawa

unread,
Nov 5, 2019, 10:37:10 AM11/5/19
to Django users
Thank you!
出来ました!

2019年11月6日水曜日 0時28分02秒 UTC+9 Ronaldo Mata:
You are trying to run that command on the python interpreter.

try run that command outside python interpret.

El mar., 5 nov. 2019 a las 11:23, Jordan Micle (<jordanm...@gmail.com>) escribió:


if you are going to check the version of installed django

django-admin --version

--
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...@googlegroups.com.

Sarma Bhamidipati

unread,
Nov 5, 2019, 10:43:11 AM11/5/19
to Django users
Did you activate your application?
Have you added your python path to path variable?

Charles Jason Decena

unread,
Nov 5, 2019, 10:11:03 PM11/5/19
to django...@googlegroups.com
Hi, what you have entered is a command on checking on what django version is installed on your machine, i suggest you create pipenv or venv everytime you create projects in order to eliminate other dependencies not required for your project

Regards,

Charles Jason Decena

Developer

33F UnionBank Plaza Bldg., Meralco Ave.
Ortigas Center, Pasig City

www.ubx.ph
linkedin
facebook
twitter


To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/73e70648-ae7a-4d85-93bb-9ae54fc1434d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages