Giter Site home page Giter Site logo

Comments (4)

afgane avatar afgane commented on May 22, 2024

I cannot reproduce this and searching for the exception doesn't seem to lead anywhere either.
Django Admin (including index.html) is located under Django's contrib dir (/srv/cloudlaunch/.cl/lib/python2.7/site-packages/django/contrib/admin/templates).

The only thing I noticed is that your venv is in ~/.pyenv. So did you change paths in Procfile* and supervisor confs to reflect that because the instructions and consequently those scripts are currently hard coded to use the virtualenv from /srv/cloudlaunch/.cl?

from cloudlaunch.

MatthewRalston avatar MatthewRalston commented on May 22, 2024

The virtualenv, courtesy of pyenv-virtualenv, is located in ~/.pyenv/versions and is called cloudlaunch. Then I simply symlinked /srv/cloudlaunch/.cl to the virtualenv directory. I do not see the templates directory in the django/contrib/admin directory.
If I understand correctly, django searches for an application specific login template at a path relative to the root of the application (/srv/cloudlaunch/cloudlaunch/templates/admin/login.html). If this does not exist, it checks for a templates through the following, which makes user of the TEMPLATE_DIRS/DIRS variable in settings.py:
Using loader django.template.loaders.app_directories.Loader
/home/ralstonm/.pyenv/versions/cloudlaunch/lib/python2.7/site-packages/bootstrap_toolkit/templates/admin/login.html (File does not exist)

I'm not sure why your django installation contains these templates... Can you confirm that my pypy packages are correct from the pip freeze above?

/srv/cloudlaunch >/bin/ls .cl/lib/python2.7/site-packages/django/contrib/admin/
actions.py   filterspecs.py   forms.py   helpers.py   __init__.py   models.py   options.py   sites.py   templatetags  util.pyc       validation.pyc  widgets.py
actions.pyc  filterspecs.pyc  forms.pyc  helpers.pyc  __init__.pyc  models.pyc  options.pyc  sites.pyc  util.py       validation.py  views       widgets.pyc

from cloudlaunch.

afgane avatar afgane commented on May 22, 2024

This is the output from my pip freeze:

amqp==1.0.12
anyjson==0.3.3
argparse==1.2.1
billiard==2.7.3.31
bioblend==0.7.0-dev
boto==2.38.0
celery==3.0.21
Django==1.3
django-bootstrap-toolkit==2.12.0
django-celery==3.0.17
dj-database-url==0.2.1
gunicorn==17.5
honcho==0.6.6
Jinja2==2.7
kombu==2.5.12
MarkupSafe==0.18
mock==1.0.1
nose==1.3.0
poster==0.8.1
psycopg2==2.4.2
python-dateutil==2.1
python-memcached==1.48
pytz==2013b
PyYAML==3.11
requests==2.7.0
requests-toolbelt==0.4.0
simplejson==3.3.0
six==1.9.0
South==0.7.3
wsgiref==0.1.2

There are differences with argparse, gunicorn, meld3, requests but none of those seem related.

If you’re missing dirs under the Django installation path, perhaps try reinstalling Django?

from cloudlaunch.

MatthewRalston avatar MatthewRalston commented on May 22, 2024

Yes. I uninstalled the django version installed via pip, downloaded source, and ran setup.py. This produced the correct directory structure reflecting the release 1.3.7 for Django on github. This solved my problem. Thank you.

from cloudlaunch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.