I am building my first Django application (I am also starting in Python, so the problem could be anywhere.)
I follow this guide step by step to get the HTML editor at 5:53 ( here ), however I still get the default TextField at http://127.0.0.1:8000/admin/blog/entry/add/
Any help in diagnosing the problem would be greatly appreciated. Thanks!
My files:
projects /qblog/blog/admin.py:
from django.contrib import admin from . import models from django_markdown.admin import MarkdownModelAdmin class EntryAdmin(MarkdownModelAdmin): list_display = ("title" , "created") prepopulated_fields = {"slug" : ("title", )} admin.site.register(models.Entry, EntryAdmin)
projects / qblog / qblog / urls.py:
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^markdown/', include("django_markdown.urls")), )
projects /qblog/blog/models.py:
from django.db import models
projects /qblog/qblog/settings.py:
""" Django settings for qblog project. Generated by 'django-admin startproject' using Django 1.9.dev20150210173028. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import os