Django admin /template/ folder missing after fresh install in virtualenv
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.7
A recent version of pip
is required. It may be updated with
pip install --upgrade pip
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 dst
where 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!