Please someone should help me fix this

86 views
Skip to first unread message

Sullivan Nnaji

unread,
Sep 1, 2019, 7:05:07 PM9/1/19
to Django users
I have activated the virtual environment and CD into the project name and manage.py was present but still can't run server
I always get an error of
File "manage.py", line 16
From exc

SyntaxError: invalid syntax

Nur Mohsin

unread,
Sep 1, 2019, 9:53:50 PM9/1/19
to django...@googlegroups.com
hi, what command you are using to runserver? also send screenshot.

--
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/01202497-70c2-41a7-9838-52729bfbfb1a%40googlegroups.com.

Tosin Ayoola

unread,
Sep 2, 2019, 3:29:40 AM9/2/19
to django...@googlegroups.com
Can u send d screenshot of the error message you getting 

--
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.

Sandip Nath

unread,
Sep 2, 2019, 3:38:59 AM9/2/19
to django...@googlegroups.com
First cd to your project folder. Once there create a virtual environment and enable the environment.
The best ,the easiest and the smartest method is to use pipenv.
1. First install pipenv with:
pip install pipenv
2. cd to your project folder.
3. Run the command:
pipenv shell
4. Your virtual environment created and started too. Name of you virtual environment will always be the name of the folder and some random alphanumeric code. So you need not remember the environment name. Isn't it the smartest.
5. If you need to install some software within your virtual env run:
pipenv install <software name>
It's as easy as 123.

On Mon 2 Sep, 2019, 12:58 PM Tosin Ayoola, <tosina...@gmail.com> wrote:
Can u send d screenshot of the error message you getting 
On Sep 2, 2019 00:04, "Sullivan Nnaji" <nnajis...@gmail.com> wrote:
I have activated the virtual environment and CD into the project name and manage.py was present but still can't run server
I always get an error of
File "manage.py", line 16
  From exc

SyntaxError: invalid syntax

--
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.

--
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/CAHLKn72L%2BSmCb08ovAcL_BW%3Dkonp4oCTi_%3DW4Y8KVLQh5DSH4Q%40mail.gmail.com.

Suraj Thapa FC

unread,
Sep 2, 2019, 4:28:25 AM9/2/19
to django...@googlegroups.com
Maybe use python3 manage.py runserver if you are on Linux computer 

KONE GOMPOU LOUA ALASSANE

unread,
Sep 2, 2019, 9:40:19 AM9/2/19
to Django users
You're working on windows:
How did you process to activate your venv?( cd venv, cd Scripts, activate)
So, You have to come back after venv activated? (cd.., cd ..)
Now python manage.py runserver
Reply all
Reply to author
Forward
0 new messages