Но не получается установить админку. Делаю вроде все по инструкции. Все синхронизации с БД сделал
settings.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'mysite.blog',
)
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)
from django.db import models
from django.contrib import admin
class BlogPost(models.Model):
title = models.CharField(max_length=150)
body = models.TextField()
timestamp = models.DateTimeField()
admin.site.register(BlogPost)
Request Method: GET
Request URL: http://localhost:8000/admin/
Exception Type: ImportError
Exception Value: No module named urls
No module named urls
Exception Location: /usr/local/lib/python2.6/dist-packages/django/utils/importlib.py in import_module, line 35
Python Executable: /usr/bin/python
Python Version: 2.6.4