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

1 line
9.6 KiB
JSON

[{"user_id": 8000, "stars": [], "topic_id": 12412, "date_created": 1299870907.3169701, "message": "it's about to start", "group_id": 373, "id": 325717}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871444.3269789, "message": "no, just mixins basically", "group_id": 373, "id": 325799}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871745.980567, "message": "because it actually checks what I want - whether the model is installed, not whether the name of the applications is in a list of installed applications", "group_id": 373, "id": 325868}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871810.74769, "message": "Yes, knowing its installed on the system isn't the same as knowing they actually want it in that project", "group_id": 373, "id": 325884}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871184.487592, "message": "This one seems more active!", "group_id": 373, "id": 325747}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871196.210093, "message": "barely...", "group_id": 373, "id": 325748}, {"user_id": 8000, "stars": [], "topic_id": 12412, "date_created": 1299871318.5434761, "message": "#noob why not?", "group_id": 373, "id": 325770}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871640.567024, "message": "but then you also have to handle import exceptions for it", "group_id": 373, "id": 325842}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871696.7685561, "message": "but it doesn't seem like the better way", "group_id": 373, "id": 325856}, {"user_id": 20649, "stars": [], "topic_id": 12412, "date_created": 1299871181.9503469, "message": "This one, I hope", "group_id": 373, "id": 325746}, {"user_id": 20649, "stars": [], "topic_id": 12412, "date_created": 1299871214.1797929, "message": "Oops...", "group_id": 373, "id": 325751}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871855.4849119, "message": "so how is that different or better than just checking if it's in INSTALLED_APPS?", "group_id": 373, "id": 325889}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871883.9794769, "message": "I just instinctively hate using strings for something like that...", "group_id": 373, "id": 325896}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872013.02492, "message": "for me this is a case of \"explicit is better ...\" :)", "group_id": 373, "id": 325939}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872339.1154921, "message": "@justquick and where did I say that?", "group_id": 373, "id": 326062}, {"user_id": 20649, "stars": [], "topic_id": 12412, "date_created": 1299871209.2453859, "message": "Aamm", "group_id": 373, "id": 325750}, {"user_id": 8000, "stars": [], "topic_id": 12412, "date_created": 1299871135.8317189, "message": "i really hope the picture is for a harness", "group_id": 373, "id": 325741}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871157.13238, "message": "so is this the real one, or the other?", "group_id": 373, "id": 325743}, {"user_id": 13954, "stars": [], "topic_id": 12412, "date_created": 1299871253.9590299, "message": "More active!", "group_id": 373, "id": 325757}, {"user_id": 8000, "stars": [], "topic_id": 12412, "date_created": 1299871363.789963, "message": "ok", "group_id": 373, "id": 325785}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871491.1557961, "message": "class based views are heavenly!", "group_id": 373, "id": 325808}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871304.6726019, "message": "please don't do the getattr on the module level, ever!", "group_id": 373, "id": 325763}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871839.9657891, "message": "._meta.installed will only be true if it's used in that project, not when if it's just present", "group_id": 373, "id": 325887}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872290.056648, "message": "@JoshMock no! You would just use that if you actualy wanted to change ALL the TextFieldsa to use TinyMCE for example", "group_id": 373, "id": 326036}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871341.8846171, "message": "thread safety, overridability of settings in runtime, etc", "group_id": 373, "id": 325778}, {"user_id": 20649, "stars": [], "topic_id": 12412, "date_created": 1299871426.971863, "message": "Is this trying to sell me Java portlets?", "group_id": 373, "id": 325796}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871585.0360329, "message": "please don't test for values in 'INSTALLED_APPS', just try import the model and check model._meta.installed", "group_id": 373, "id": 325830}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871702.879178, "message": "why do you prefer that?", "group_id": 373, "id": 325858}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871860.904022, "message": "seems like they should be functionally equivalent", "group_id": 373, "id": 325890}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871871.040364, "message": "_meta is not a guaranteed api", "group_id": 373, "id": 325894}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871894.64943, "message": "it's just a matter of personal taste", "group_id": 373, "id": 325900}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871901.1273341, "message": "but strings are how you install apps in Django...", "group_id": 373, "id": 325903}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871748.623096, "message": "explicitness", "group_id": 373, "id": 325870}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871670.066798, "message": "yes, try: except ImportError:, that's not a lot of extra typing", "group_id": 373, "id": 325848}, {"user_id": 12683, "stars": [], "topic_id": 12412, "date_created": 1299871728.617296, "message": "Really shouldn't be touching _meta outside of core django imo", "group_id": 373, "id": 325863}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871797.8385911, "message": "@HonzaKral it also tells you how django's going to interact with it (if it's not in INSTALLED_APPS syncdb won't create tables for it, templatetags won't be loaded, &c.)", "group_id": 373, "id": 325879}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871855.0369649, "message": "but I agree with the point that you probably don't want to rely on _meta", "group_id": 373, "id": 325888}, {"user_id": 10512, "stars": [], "topic_id": 12412, "date_created": 1299872255.2139211, "message": "so you'd have to set a custom type for your fields to use that?", "group_id": 373, "id": 326028}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872386.394423, "message": "@justquick that was just to import it, you then have to check the _meta.installed for the useful part, I explicitely stated that", "group_id": 373, "id": 326080}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871770.1330309, "message": "@HonzaKral but whether or not it's in INSTALLED_APPS tells you more than whether or not it's installed", "group_id": 373, "id": 325875}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871932.423295, "message": "fair enough :)", "group_id": 373, "id": 325910}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872221.94208, "message": "you can usually just use formfield_overrides on ModelAdmin, which is already a dictionaty that you can use, the downside is that it uses the db_field's type to do the matching, not it's name", "group_id": 373, "id": 326016}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299871982.731091, "message": "though I feel like the inherent readability of using strings makes it a desirable way to go. 'app_name' in INSTALLED_APPS is so much more readily understandable than app_name._meta.installed is True", "group_id": 373, "id": 325929}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299872020.9877019, "message": "but I agree that it's purely personal taste", "group_id": 373, "id": 325941}, {"user_id": 4971, "stars": [], "topic_id": 12412, "date_created": 1299871921.2301641, "message": "@joshourisman which I hope will change eventually :)", "group_id": 373, "id": 325906}, {"user_id": 10512, "stars": [], "topic_id": 12412, "date_created": 1299872312.637162, "message": "gotcha. I was gonna say...", "group_id": 373, "id": 326046}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299872333.915133, "message": "yeah, if you want to change them ALL, then formfield_overrides is totally the way to go", "group_id": 373, "id": 326058}, {"user_id": 2024, "stars": [], "topic_id": 12412, "date_created": 1299872258.6210611, "message": "yeah, name is much better, in my opinion; it's not at all uncommon that I have different requirements for different TextFields on the same model", "group_id": 373, "id": 326029}, {"user_id": 9816, "stars": [], "topic_id": 12412, "date_created": 1299872364.109391, "message": "just wanted to be clear", "group_id": 373, "id": 326073}, {"user_id": 9816, "stars": [], "topic_id": 12412, "date_created": 1299872324.6942739, "message": "@HonzaKral just because you can import a module doesnt mean that you have/want it installed in your project", "group_id": 373, "id": 326054}, {"user_id": 9816, "stars": [], "topic_id": 12412, "date_created": 1299872359.5134399, "message": "try: except ImportError bit", "group_id": 373, "id": 326069}]