Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

no admin CSS when I first boot it in the interactive poll app #9

Closed
palewire opened this Issue Oct 23, 2011 · 8 comments

Comments

Projects
None yet
2 participants
Member

palewire commented Oct 23, 2011

No description provided.

Member

palewire commented Oct 23, 2011

Solved it by changing

ADMIN_MEDIA_PREFIX='/static/admin/'

Member

palewire commented Oct 23, 2011

Still need to update the docs. But why is this change necessary? I don't understand why the default from Django doesn't work.

Contributor

richardcornish commented Mar 5, 2012

I believe that

ADMIN_MEDIA_PREFIX='/static/admin/'

is the default already for current version 1.3. Bitnami seems to use 1.3 at the moment and has been out since last March (before this issue was opened).

I suppose it depends on which Django version you were using and which version you upgraded to. Maybe you were on an old commit of trunk (1.2ish), updated (to 1.3ish), then things broke. In that case, only your source code would be updated; project files already created like settings.py would not be affected to reflect the new changes.

Either way, you may want to start writing for 1.4, which is set for release this month (although they sometimes fall behind). The ADMIN_MEDIA_PREFIX will be a backwards incompatible change. The new STATIC_ROOT/STATIC_URL way is a little stranger, but ultimately is cleaner and makes more sense.

Member

palewire commented Mar 6, 2012

Thank you again. Curious, what got you interested in this repo?

Contributor

richardcornish commented Mar 6, 2012

I saw it retweeted by a few developers I've worked with who went to Nicar. It was among the few Django projects presented, and I used to work at World Online where Django was made, with Jacob Kaplan-Moss, Jeff Croft, Nathan Borror, etc.

I work exclusively as a designer now and I haven't written a line of code for a job in almost two years, but I like to support any kind of Django project to give back. It's a shame that I don't see designers at news organizations getting the same kind of attention that developers do, and I think the best designers should learn a good amount of development. Shit, I spend all day in Photoshop but I'm on GitHub committing code, so anyone can do it.

Member

palewire commented Mar 6, 2012

Glad to pull you in! As you can tell, these docs are sketchy. The app has been kicking around a couple years, and I drummed up the Sphinx docs ahead of NICAR this year to try to start some documentation. Ultimately, I'd like to expand it to include other, newsier example apps. Something with a CSV loader to toss in some data from a gov't website, for instance. I've started in on drafting the code for something like that, but havn't written any docs at all.

If you're interested in contributing more than patches, I think a bigger think about what kind of app is the best thing to teach people passionate about news who want to pick up some coding. We should continue to refine this poll app, but we shouldn't limit ourselves to that.

Contributor

richardcornish commented Mar 7, 2012

Can't say I've had much experience with Raphael.js, but I can see how the overall pieces fit together. In fact if you wrote the documentation for the flu app, it'd help me. :)

It's hard to write an app to suck people into coding because you can't teach the amount of passion you would need to muck through much of the boredom. (Almost) nobody wants to learn programming for the sake of programming. I don't think ideas like Code Academy work, but maybe you're thinking of specific apps to write and teach.

Personally, I became interested in Django from Adrian's talks that 1) showed respect for data, instead of jamming the world into a blog post, allowing you to make really interesting websites, and 2) the beauty and simplicity of the admin. It sounds weird, but foreign keys and many-to-many fields only made sense to me after seeing them displayed in the admin. If Django didn't have the admin, I would've never used it and probably jumped to Rails.

Member

palewire commented Mar 7, 2012

You make a point. If you're going to show people Django, show them the g.d. admin. It's the killer feature.

@palewire palewire closed this Jan 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment