My VirtualHost config look now like this:

<VirtualHost GoodCompany:80>
  ServerName GoodCompany
  DocumentRoot "/work/django/GoodCompany"
  <Directory "/work/django/GoodCompany">
    allow from all
    Options All
  </Directory>

  <Location "/">
    SetHandler mod_python
    PythonHandler django.core.handlers.modpython
    PythonPath sys.path+['/work/django']
    SetEnv DJANGO_SETTINGS_MODULE GoodCompany.settings
    PythonDebug On
  </Location>

  <Location "/media/">
    SetHandler None
  </Location>
</VirtualHost>

I put 'GoodCompany' instead of 'goodcompany' in ServerName and
DocumentRoot directives. Also, I commented #(r'^admin/',
include('django.contrib.admin.urls.admin')), in urls.py. The site
greets me with a blue welcome, but when i go to
**http://goodcompany/admin**, of course i see the welcome message
again.

How can I access admin section? Should my urls be mapped in .htaccess
now?

Reply via email to