我只是安裝Apache和Django的。Django管理頁面/
Django的默認頁面正常工作:
它的工作原理!
這是此服務器的默認網頁。
Web服務器軟件正在運行,但沒有內容已經添加,但。
但/管理/網站不得:
未找到
所請求的網址/管理/沒有被此服務器上找到。
的Apache/2.2.17(Ubuntu的)服務器在69.162.92.53端口80
Apache的配置(/etc/init.d/apache2/sites-avaliable/mysite.conf)文件:
<VirtualHost *:80>
WSGIScriptAlias//var/www/mysite/mysite/wsgi.py
ServerName mysite.com.br
Alias /static /var/www/mysite/media/static/
<Directory /var/www/mysite/mysite>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
WSGI文件(/var/www/mysite/mysite/wsgi.py):
import os
import sys
sys.path.insert(0, '/var/www/mysite')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Django的mysite.settings(/var/www/mysite/mysite/settings.py):
個...
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
...
Django的mysite.urls(/var/www/mysite/mysite/urls.py):
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
# url(r'^mysite/', include('mysite.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
這就是全部。我錯過了什麼嗎?
謝謝!
你檢查Apache的錯誤日誌 –