English 中文(简体)
我新安装的Django项目为什么只显示欢迎页?
原标题:Why does my newly installed Django project only display the welcome page?

右前线:我先是新到平坦和干.,但我已在当地安装了辅导和一些其他基本 st。

最近,我开始了一个关于一个活服务器(主机.com,配有快车)的“幻灯”项目,以显示“它发挥作用! 页: 1 其次, 我对尿素中的适当路线表示不满意,以便建立起来的集延戈行政管理。 我也指出,在我服务器上如何重新启用快车。

在去行政时,它仍然展示了欢迎的网页。 事实上,无论我是在后一页,它都显示,不管怎么说,欢迎一页。 我也试图制造一种博客,让它显示这一点,但这也起到了一定的作用。

我感到悲伤,或者在我的布局上存在令人可怕的错误。

值得一提的是,我的django项目是在一个子宫内设立的。 我想这是问题,我尝试撰写一份中文本,内容是过度转播程序——在座的一位导师:。 然而,欢迎的网页是显示的唯一东西。

任何帮助都将受到高度赞赏。

最新资料:

我认为,如果我制定一些法典,我会有所帮助。

这里是我的ur。

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(  ,
    (r ^/$ ,  blog.views.index ),
    (r ^admin/ , include(admin.site.urls)),
)

这里指的是处于环境中的无法律约束力无遗体。 y

INSTALLED_APPS = (
     django.contrib.auth ,
     django.contrib.contenttypes ,
     django.contrib.sessions ,
     django.contrib.sites ,
     django.contrib.messages ,
    # Uncomment the next line to enable the admin:
     django.contrib.admin ,
     blog ,
)

我只字不提任何意见。 仅够了。

我有提要,这里是表格清单:

auth_group
auth_group_permissions
auth_message
auth_permission
auth_user
auth_user_groups
auth_user_user_permissions
django_admin_log
django_content_type
django_session
django_site
问题回答

您是否确信您已适当重新启用服务器? 引证某些文字,以引起yn子的错误,确保重新启动实际上行之有效。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签