Django Admin /template/ Folder Missing After Fresh Install In Virtualenv
Solution 1:
I had to install an old django 1.3 with pip and I faced a similar problem. The templates folder was missing in the django app.
Thanks to @manu comment on @shahz answer, I fixed the problem by reinstalling with
pip install --no-binary django django==1.3.7A recent version of pip is required. It may be updated with
pip install --upgrade pip
Solution 2:
I've seen this before. /templates/ isn't the only folder you're probably missing. And note that you have a django folder placed here /yourvirtualenv/django/ that has all the required folders. What will solve the problem for you is copying the files (without over-writing) from /yourvirtualenv/django/ to /yourvirtualenv/local/lib/python2.7/site-packages/django/ via the following ubuntu command: rsync -a -v --ignore-existing src dstwhere src is /yourvirtualenv/django/ (i.e. source) and dst is /yourvirtualenv/local/lib/python2.7/site-packages/django/ (i.e. destination). Next, just fire up Django admin again and it should work!
I'm not exactly sure why this happens - anecdotally, it's pip misbehaving with legacy Django installations. I'll update this answer if I get new information on it. Good luck!
Solution 3:
With pip version 20.2.4 it is:
pip install --no-binary :all: "django==1.3.7"
Post a Comment for "Django Admin /template/ Folder Missing After Fresh Install In Virtualenv"