[{"data":1,"prerenderedAt":301},["ShallowReactive",2],{"project-5251361":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":34,"aspects":35,"strip":42,"post_text":43,"what":44,"said":82,"maker_in_thread":181,"shape":188,"grid":192,"attempts":262,"same_week":263,"maker_shows":236,"maker_hidden":293,"reader_version":294,"card":295},"5251361","importd","d is for django","title","Show HN: importd – d is for django","http:\u002F\u002Fpythonhosted.org\u002Fimportd\u002F","pythonhosted.org","amitu",1361378013,2013,116,30,191,1739,11,"notable","languages","web framework","library",[24,25,26,27,28],"django","python","micro framework","prototyping","single file app","mixed",0.107,{"positive":32,"neutral":33,"mixed":32,"critical":33},5,3,16,{"design":36,"idea":39,"execution":41},{"positive":37,"critical":38},0,2,{"positive":33,"critical":40},1,{"positive":37,"critical":37},[33,33,32,32,37,37,37,37,37,37,37,37,33,37,33,37,32,33,37,37,37,40,40,33,37,40,32,32,33,33],null,{"problem":45,"audience":56,"pricing":43,"motivation":62,"time_to_build":43,"stack":66,"openness":81,"stage":81,"team_size":81},{"value":46,"source":47,"evidence":48},"Starting small Django projects requires too much boilerplate setup","maker",[49,53],{"id":50,"by":51,"text":52},"5251671","StavrosK","I agree with you, but I think the use case is \"that small, 3-template page I want as a quick interface\", and this fits the use case perfectly. It usually takes quite a bit of…",{"id":54,"by":11,"text":55},"5252917","Hey singold, The primary motivation was when making it easy to use django for API like apps. Moving to flask etc meant losing all the django knowledge and batteries. Most simple…",{"value":57,"source":58,"evidence":59},"Python developers building small Django apps or APIs","inferred",[60,61],{"id":54,"by":11,"text":55},{"id":50,"by":51,"text":52},{"value":63,"source":47,"evidence":64},"Make Django easy to use for API-like apps without losing Django's batteries",[65],{"id":54,"by":11,"text":55},[67,73],{"value":68,"source":58,"evidence":69},"Python",[70],{"id":71,"by":11,"text":72},"5251674","Hey, I am the author of the module, as well as that of smarturls and fhurl mentioned there. I understand the concern about magic, and moving parts. I guess the right answer to…",{"value":74,"source":75,"evidence":76},"Django 1.4","commenter",[77],{"id":78,"by":79,"text":80},"5253717","dgulino","fyi: This requires django 1.4. I ran w\u002F1.3.1 and got this error when running the helloworld example: ImportError: No module named wsgi I updated to 1.4.5 and it worked fine.","unknown",{"praise":83,"objections":107,"requests":142,"questions":156,"alternatives":164},[84,96],{"value":85,"source":75,"evidence":86},"Useful for quick prototyping and API testing",[87,91,95],{"id":88,"by":89,"text":90},"5251679","teilo","This is a great tool for API prototyping and testing. However, I wouldn't use it for a full-blown app. It's like using Flask. You could do it in a single file, but it rarely…",{"id":92,"by":93,"text":94},"5253989","benjamincburns","As others have said, this looks really useful for proof of concept\u002Fprototyping work. The first use case that came to mind was hackathons, actually. It'd be really nice if there…",{"id":50,"by":51,"text":52},{"value":97,"source":75,"evidence":98},"Novel and cool approach",[99,103],{"id":100,"by":101,"text":102},"5251608","mattdeboard","Took the comment right out of my brain. Looks cool and very novel, bound to be an incredibly leaky abstraction though. Doesn't take away from the novelty\u002Fcoolness though.",{"id":104,"by":105,"text":106},"5251587","ranedk","This is pretty cool. Makes stuff much more manageable.",[108,120,130,134],{"value":109,"source":75,"evidence":110},"Too much magic and moving parts",[111,115,119],{"id":112,"by":113,"text":114},"5251602","samwillis","This is good although I think it has a little to much magic for me. Everything seems to happen just by using different arguments to the 'd' function, even the settings. I think…",{"id":116,"by":117,"text":118},"5251644","robertfw","the resulting view ends up looking at lot like it would in flask [1]. I would be worried about the number of moving parts that are in play. [1] http:\u002F\u002Fflask.pocoo.org\u002F",{"id":116,"by":117,"text":118},{"value":121,"source":75,"evidence":122},"Hard to refactor as apps grow beyond single file",[123,127],{"id":124,"by":125,"text":126},"5251837","IgorPartola","So this is really cool to get started with, but I would worry that when you need to start taking advantage of various abstractions that Django provides, you'd end up having to do…",{"id":128,"by":125,"text":129},"5253100","Yup, I saw that on the first pass. So you have the ability to refactor, but you are basically guaranteeing that you will need to if your app grows beyond the couple of…",{"value":131,"source":75,"evidence":132},"Removes settings.py, which is needed for configuration",[133],{"id":128,"by":125,"text":129},{"value":135,"source":75,"evidence":136},"Overlaps with Flask and minimalist frameworks",[137,141],{"id":138,"by":139,"text":140},"5254177","signed0","That was my take as well. Why would someone want to use this when there already exist minimalist python web-servers such as flask & bottle that do not require magic?",{"id":116,"by":117,"text":118},[143,147],{"value":144,"source":75,"evidence":145},"Automated way to convert prototype into full Django project",[146],{"id":92,"by":93,"text":94},{"value":148,"source":75,"evidence":149},"Better settings handling, such as in-app or database-backed settings",[150,153],{"id":151,"by":89,"text":152},"5251708","I like the Services idea. Django's settings file is the weakest link in the framework. It's easy to roll your own settings apps if all you need to configure is your own code. But…",{"id":154,"by":89,"text":155},"5254462","I already do that. I have a common_settings.py, a dev_settings.py, and a local_settings.py. That's not really the use case I am speaking of. First, it still makes you put all…",[157],{"value":158,"source":75,"evidence":159},"What use cases is it better for than standard Django",[160],{"id":161,"by":162,"text":163},"5252243","singold","Would you mind explaining the use cases where this could be better than standard django? (or the ones that motivated you to develop it) I think it is really interesting, but cant…",[165,170,174],{"value":166,"source":75,"evidence":167},"Flask",[168,169],{"id":116,"by":117,"text":118},{"id":138,"by":139,"text":140},{"value":171,"source":75,"evidence":172},"Djng (Simon Willison's micro framework)",[173],{"id":112,"by":113,"text":114},{"value":175,"source":75,"evidence":176},"django-mini",[177],{"id":178,"by":179,"text":180},"5253103","davidwtbuxton","Related: django-mini, a command-line tool for running Django management commands without a full settings.py. https:\u002F\u002Fgithub.com\u002Fdavidwtbuxton\u002Fdjango-mini I wrote it to make it…",{"comments":33,"answered":40,"key":182},[183,184,185],{"id":71,"text":72},{"id":54,"text":55},{"id":186,"text":187},"5252225","Hey Igor, if you take a look at http:\u002F\u002Fpythonhosted.org\u002Fimportd\u002F#importd-and-custom-models, you will see that importd still works perfectly well with normal django app, and it is…",{"commenters":189,"max_depth":32,"maker_replies":33,"first_comment_mins":190,"lifespan_hours":191},21,29,33,[193,195,196,198,199,203,205,207,210,213,215,216,219,223,225,227,228,231,232,234,238,241,243,245,247,248,249,251,254,257],[112,37,33,194,113,37],"project\u002Fmixed\u002Fdesign",[100,37,33,194,101,37],[50,37,32,197,51,37],"project\u002Fpositive\u002Fidea",[151,37,32,197,89,37],[200,37,37,201,202,37],"5251994","commenter\u002Fneutral\u002Fnone","misiti3780",[204,37,37,201,162,37],"5252227",[206,37,37,201,202,37],"5252914",[208,37,37,201,209,37],"5252475","natrius",[211,37,37,201,212,37],"5253228","antihero",[214,37,37,201,212,37],"5253223",[154,37,37,201,89,37],[217,37,37,201,218,37],"5255279","mvc",[220,37,33,221,222,37],"5252249","project\u002Fmixed\u002Fidea","niix",[71,40,37,224,11,40],"maker\u002Fneutral\u002Fnone",[161,40,33,226,162,37],"maker\u002Fneutral\u002Fidea",[54,40,37,226,11,40],[229,40,32,230,162,37],"5261932","maker\u002Fpositive\u002Fnone",[88,38,33,221,89,37],[178,33,37,233,179,37],"other\u002Fneutral\u002Fnone",[235,236,37,233,237,37],"5252583",4,"_neil",[239,236,37,233,240,37],"5255096","VuongN",[116,32,40,242,117,37],"project\u002Fcritical\u002Fdesign",[138,32,40,244,139,37],"project\u002Fcritical\u002Fidea",[124,246,33,194,125,37],6,[186,246,37,224,11,40],[128,246,40,242,125,37],[92,250,32,197,93,37],7,[104,252,32,253,105,37],8,"project\u002Fpositive\u002Fnone",[78,255,33,256,79,37],9,"project\u002Fneutral\u002Fexecution",[258,259,33,260,261,37],"5253344",10,"project\u002Fneutral\u002Fnone","tlarkworthy",[],[264,269,274,279,284,289],{"id":265,"name":266,"points":267,"category":268},"5238537","What colour is your IP address?",208,"other",{"id":270,"name":271,"points":272,"category":273},"5244456","TextRazor",118,"ai",{"id":275,"name":276,"points":277,"category":278},"5231487","bcp",110,"dev_tools",{"id":280,"name":281,"points":282,"category":283},"5216992","Semantics3",108,"data",{"id":285,"name":286,"points":287,"category":288},"5231435","Docracy Mobile Privacy Policy",106,"learning_science",{"id":290,"name":291,"points":292,"category":278},"5237979","browser-details",93,false,"v2",{"id":296,"name":5,"line":6,"ai":293,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":297,"top":18,"kw":298,"maker":11,"domain":10,"tier":19,"attempts":37,"strip":299,"url":9,"mix":300,"praise":85,"objection":109,"sub":21},5251361,0.11,[24,25,26,27,28],"335500000000303053000113015533",[32,33,32,33],1793990891120]