You are not logged in.

Change Language:

Profile for Tdog

Name Tdog
Email Address n/a
Posts2
  • No module named admin.site.urls
    Board » Getting Started » Setup and Configuration
    I have a strange situation in which I cannot access the admin portion of my django project.

    Other aspects of the project, including applications work as expected, however when I try to access the admin section I get an error.

    Following the tutorial, I have uncommented from urls.py:

    urlpatterns = patterns('',
        (r'^admin/doc/', include('django.contrib.admindocs.urls')),
        (r'^admin/', include('admin.site.urls')),
    )
    


    as well as insured that the settings.py file includes the folowing and I've re-run ./manage.py syncdb and restarted the server:
    INSTALLED_APPS = (
        'django.contrib.admin',
    )
    


    however, when I try to access the admin section I get: an ImportError No module named admin.site.urls

    oddly, when I try to access the docs by using the url http://127.0.0.1:8000/admin/doc/ I get a login prompt, however after logging in I get another error, this time TemplateDoesNotExist admin_doc/missing_docutils.html

    I've insured that my django installation is within my PYTHONPATH

    what step am I missing?

  • Production Vs. Development settings
    Board » Getting Started » Setup and Configuration
    I'm new to django, but am growing to like it quite a bit.

    Right now I'm in the process of trying to start on a web application that I actually plan to use so I wanted to setup both a local development set of source code that is versioned using "svn" and a production release environment that is actually hosted elsewhere on another server.

    How can I go about having a settings.py file that will know to change database hosts depending on which version is actually running?

    ideally even set up the configuration to support a beta site which is hosted elsewhere however will only allow access from certain domains or by password.

    --- Last Edited by Tdog at 2010-04-15 19:49:38 ---


Powered by Sphene Community Tools