Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 django startserver - not working
$ ./ startserver Traceback (most recent call last):   File "./", 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$ # now check this out
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.
How was it solved? in case others have a similar problem.
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.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  css not working in Django mp3909 2 74 Yesterday, 03:25 PM
Last Post: snippsat
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 642 Jun-30-2019, 12:21 AM
Last Post: scidam
  My Django 2.0.6 logging is not working while product merging PrateekG 0 734 Jul-26-2018, 02:24 PM
Last Post: PrateekG

Forum Jump:

Users browsing this thread: 1 Guest(s)