Python Forum
django manage.py startserver - not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
django manage.py startserver - not working
#1
Error:
$ ./manage.py startserver Traceback (most recent call last):   File "./manage.py", line 17, in <module>     "Couldn't import Django. Are you sure it's installed and " ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
dev@debian-512mb-nyc3-01:/var/www/html/learningpy$ 
dev@debian-512mb-nyc3-01:/var/www/html/learningpy$ # now check this out
dev@debian-512mb-nyc3-01:/var/www/html/learningpy$ 
dev@debian-512mb-nyc3-01:/var/www/html/learningpy$ python3
Python 3.4.2 (default, Oct  8 2014, 10:45:20) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>
Why am I getting that error? As you can see django imports without complaint. Note that I installed django from pip3 so that I would be getting the python3 version.

I'm giving django + python one last shot for web development. I tried this about a year ago and I ran into more problems than I care to think about. And even if I had gotten everything working it was more trouble to setup a single django project an entire LAMP stack. If I can't get python + django going good for web development this time I think I'll drop it and return to php, but I'm hoping you all can help me to not have to do that. Thanks.
Reply
#2
SOLVED
Reply
#3
How was it solved? in case others have a similar problem.
Reply
#4
I have had many problems with django. This particular problem was solved by walking away from my computer for a while. I came back and ran the same command and it worked, I didn't change a thing. I have no idea, go figure.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  <title> django page title dynamic and other field (not working) lemonred 1 2,093 Nov-04-2021, 08:50 PM
Last Post: lemonred
  css not working in Django mp3909 3 3,734 Jul-06-2020, 02:34 PM
Last Post: mp3909
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,293 Jun-30-2019, 12:21 AM
Last Post: scidam
  My Django 2.0.6 logging is not working while product merging PrateekG 0 2,149 Jul-26-2018, 02:24 PM
Last Post: PrateekG

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020