Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Closed

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

palewire opened this issue Oct 23, 2011 · 8 comments

Comments

@palewire
Copy link
Owner

No description provided.

@palewire
Copy link
Owner Author

Solved it by changing

ADMIN_MEDIA_PREFIX='/static/admin/'

@palewire
Copy link
Owner Author

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

@richardcornish
Copy link
Contributor

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.

@palewire
Copy link
Owner Author

palewire commented Mar 6, 2012

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

@richardcornish
Copy link
Contributor

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.

@palewire
Copy link
Owner Author

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.

@richardcornish
Copy link
Contributor

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.

@palewire
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants