jpartogi / django-wmd-editor

Pluggable wmd editor wrapper for django apps
BSD 3-Clause "New" or "Revised" License
53 stars 15 forks source link

AdminMarkDownInput media not rendering #8

Open elijahr opened 14 years ago

elijahr commented 14 years ago

Here is my admin.py:

from django.contrib import admin
from blag.models import *
from wmd.widgets import AdminMarkDownInput, MarkDownInput
from django import forms
from django.core.urlresolvers import reverse

class EntryAdminForm(forms.ModelForm):
    text = forms.CharField(widget=AdminMarkDownInput())

    class Meta:
        model = Entry

class EntryAdmin(admin.ModelAdmin):
    form = EntryAdminForm

admin.site.register(Entry, EntryAdmin)

The admin page for an Entry loads fine, but when I view the source, the only media are the default media; there is no WMD javascript or css. settings.MEDIA_URL is '/site_media/' and the wmd media folder is @ /site_media/wmd/. I am using Django 1.1.1.

madisona commented 14 years ago

You've probably moved on long ago, but just in case you haven't, I came across the same issue. Once I made sure that the urls were being declared properly and the wmd.css and wmd-settings.js template pages were able to be reversed and accessed correctly, everything worked just as you'd expect.

skyl commented 14 years ago

I added this to the readme in my fork