Files
2012-02-21 01:15:00 -05:00

1 line
11 KiB
JSON

[{"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248756.088521, "message": "I've rummaged through the docs, but haven't found anything that seems useful for this situation", "group_id": 81, "id": 362515}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248734.2614491, "message": "/me is confruzed", "group_id": 81, "id": 362514}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248638.5440531, "message": "I'm playing around with some of the newer Django features, like the newly included staticfiles project", "group_id": 81, "id": 362506}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248663.2690439, "message": "I've got a static directory that really just has one file I'm concerned about right now", "group_id": 81, "id": 362507}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248686.409425, "message": "urlpatterns += staticfiles_urlpatterns()\n", "group_id": 81, "id": 362510}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248727.7911761, "message": "'css/screen.css' could not be found", "group_id": 81, "id": 362513}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248668.4266939, "message": "static/css/screen.css", "group_id": 81, "id": 362508}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248685.448103, "message": "my urls.py has this", "group_id": 81, "id": 362509}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248706.6802599, "message": "but whenever I try to hit that CSS file, I see this error:", "group_id": 81, "id": 362511}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248759.509783, "message": "any thoughts?", "group_id": 81, "id": 362516}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300248854.055342, "message": "oh, I should note that I'm currently just using runserver (and runserver --insecure)", "group_id": 81, "id": 362518}, {"user_id": 928, "stars": [], "topic_id": 13295, "date_created": 1300252626.7131519, "message": "serve up static files with your webserver not django", "group_id": 81, "id": 362886}, {"user_id": 928, "stars": [], "topic_id": 13295, "date_created": 1300252531.013027, "message": "why are you adding static urls to urlpatterns?", "group_id": 81, "id": 362880}, {"user_id": 928, "stars": [], "topic_id": 13295, "date_created": 1300252710.183882, "message": "for local testing using the build in server, sure have them served up that way but just serve up the whole static directory not individual files with something like (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),", "group_id": 81, "id": 362894}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257479.2652371, "message": "I figured out my problem", "group_id": 81, "id": 363303}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257402.00965, "message": "@troysimpson that's what I was trying to do--I'm just *tinkering* right now, hence the use of runserver ;)", "group_id": 81, "id": 363294}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257435.2059419, "message": "whenever I get around to actually deploying things I'll serve static files using a real server", "group_id": 81, "id": 363297}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257525.023721, "message": "apparently you can't stick your own static files in your STATIC_ROOT... they have to be collected from elsewhere into STATIC_ROOT using collectstatic", "group_id": 81, "id": 363307}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257456.0043311, "message": "but I have no desire to configure a real server for each Django site I work on", "group_id": 81, "id": 363298}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257461.2467971, "message": "while I'm building it", "group_id": 81, "id": 363300}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300257467.3850479, "message": "anyway...", "group_id": 81, "id": 363302}, {"user_id": 16762, "stars": [{"date_created": 1300299726.38656, "user_id": 1243}, {"date_created": 1300330290.4646089, "user_id": 22078}], "topic_id": 13295, "date_created": 1300258786.0402541, "message": "That's correct, as per documentation which points to http://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#std:setting-STATICFILES_DIRS", "group_id": 81, "id": 363416}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300391879.8392889, "message": "I wish it would fall off a cliff.", "group_id": 81, "id": 377188}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300391859.4794631, "message": "I really really really hate django's \"runserver\". It's created a whole bunch of devs who think it's funny to develop locally using one web server, OS etc and deploy on another. I know far too many people who *still* use runserver, SQLite and their local OS to develop.", "group_id": 81, "id": 377184}, {"user_id": 12713, "stars": [{"date_created": 1300397080.6417761, "user_id": 5778}, {"date_created": 1300470249.00739, "user_id": 1243}, {"date_created": 1304101508.2869949, "user_id": 13213}], "topic_id": 13295, "date_created": 1300392575.0465491, "message": "\"runserver\" is a great tool which allows people new to django to start playing around (and learning) immediately. I imagine the django community would be a lot smaller if everyone needed to set up a proper environment before getting their feet wet.", "group_id": 81, "id": 377265}, {"user_id": 12713, "stars": [], "topic_id": 13295, "date_created": 1300392666.119355, "message": "I use quite a bit for developing locally, most recently on a airplane where I could not have connected to another server anyway. While I don't find it particularly \"funny\" I do think it is quite helpful.", "group_id": 81, "id": 377272}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300393812.978368, "message": "@joeydi and indeed it does... it provides a nice introduction, but most rely on it as a crutch and continue with it even after it's no longer necessary... I'm more likely to hire someone at a company for an engineering role if they say they use a VM for development before deployment than someone who codes locally and uses runserver.", "group_id": 81, "id": 377393}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300393621.400125, "message": "@joeydi not sure what being on an airplane or having no connectivity has to do with using runserver? You can use any server locally.", "group_id": 81, "id": 377354}, {"user_id": 7378, "stars": [{"date_created": 1300397290.2511499, "user_id": 5778}], "topic_id": 13295, "date_created": 1300396983.4208591, "message": "If you're writing throwaway apps that you don't care about, or prototypes, do whatever you want. If you're working in a team, supporting a company and don't want to look like an asshat... please use a vm.", "group_id": 81, "id": 377747}, {"user_id": 13325, "stars": [], "topic_id": 13295, "date_created": 1300394980.6711659, "message": "I have no interest in running apache locally. I've been developing with Django for years and have not had a reason to do so. The time it would take to manage apache, mysql, etc on a development machine and/or locally is offset by the very occasional need to deal with the differing environments. 98% of the time it just works. This is what staging servers are for.", "group_id": 81, "id": 377549}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300396879.0299411, "message": "@emperorcezar Ok, I'll bite. I would never trust your code on production boxes. There is zero overhead with setting up apache/gunicorn/nginx + postgres/mysql locally. If there is a smidgin of of overhead it's worth it (you do it once)... purely because I don't have to punch you in the face every time you rely on something in your version of python, mysql, postgres, OS and it blows up on integration, staging or live. ALSO that's what generic VMs are for.... in my team I have built a generic VM just so that you don't have to care about the systems stuff...", "group_id": 81, "id": 377734}, {"user_id": 13325, "stars": [{"date_created": 1300397175.307636, "user_id": 5778}], "topic_id": 13295, "date_created": 1300396436.9847169, "message": "@rlofthouse It's cool that you want to deal with the overhead, but the tone your brought down was that everyone else is somehow wrong, even though it works for them. There are plenty of cases where it doesn't, but for the majority, it does.", "group_id": 81, "id": 377662}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300396331.0439129, "message": "@emperorcezar That's not really what staging servers are for, but hey... I can't be bothered to argue :)", "group_id": 81, "id": 377650}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300397307.3121159, "message": "@rlofthouse I have to agree with a lot of your thoughts in a team setting", "group_id": 81, "id": 377764}, {"user_id": 5778, "stars": [], "topic_id": 13295, "date_created": 1300397346.11497, "message": "I'd just like to point out again that I was trying to get familiar with some of the newer features in Django 1.3, and I see no reason why runserver shouldn't be sufficient for that stuff ;)", "group_id": 81, "id": 377767}, {"user_id": 13325, "stars": [], "topic_id": 13295, "date_created": 1300397393.2960391, "message": "I use a VM some of the time, but I don't use apache to development on. I use runserver. Of course it is tested on apache before deployment. In regards to your comments, I've written over 20 production apps for over three years with Django. Number of compatibility issues I've experienced, ~2.", "group_id": 81, "id": 377774}, {"user_id": 13325, "stars": [], "topic_id": 13295, "date_created": 1300397470.645757, "message": "And those are caught in testing.", "group_id": 81, "id": 377787}, {"user_id": 3354, "stars": [], "topic_id": 13295, "date_created": 1300414624.4825101, "message": "I don't, however, think \"punch you in the face\" is a sanction many HR managers would approve of.", "group_id": 81, "id": 379181}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300449608.200969, "message": "@holdenweb Neither is punching someone in the cock... which is what happens to me every time something blows up due to not having a sane development environment.", "group_id": 81, "id": 381551}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300449750.938503, "message": "Figurative speech. I haz it.", "group_id": 81, "id": 381557}, {"user_id": 7378, "stars": [], "topic_id": 13295, "date_created": 1300454046.488101, "message": "@codekoala yep, definitely I agree.", "group_id": 81, "id": 381834}, {"user_id": 3354, "stars": [], "topic_id": 13295, "date_created": 1300456257.031765, "message": "Colorful, anyway. If you description had been literl I would have suggested a change of employer :)", "group_id": 81, "id": 382038}]