1

I have used pythonanywhere to build a Django App. In the bash console of pythonanywhere, I have installed python 3.5 and Django 2.0, and dj_database_url.

However, when I import dj_database_url in settings.py, I get the following error:

ImportError: No module named 'dj_database_url'.

Arghya Saha
  • 5,599
  • 4
  • 26
  • 48
william YUANG
  • 49
  • 2
  • 6

1 Answers1

0

When you say that you have installed dj_database_url, do you mean you have also configured your settings.py as explained here?

If not, do it, then try this:

pip freeze>requirements.txt
git add .
git commit -m "whatever you want"

Then push your code to pythonanywhere.

If I am correct it is something like:

git push -u pythonanywhere master
Tms91
  • 3,456
  • 6
  • 40
  • 74