On Sep 16, 2016 1:46 AM, "Andrea D'Amore" <and.dam...@gmail.com> wrote:
> On 16 September 2016 at 00:53, <th...@copperleaf.com> wrote:
> > I have a ModelAdmin subclass (code at: <https://dpaste.de/0LAt>)
> Gives a 404:
> The requested URL /0LAt was not found on this server.
> I'm missing the rationale of using an external paste service while
> you're already using a text-based medium, the mailing list, that's
> able to accomodate what's (hopefully) a small code excerpt, in worst
> case scenario I think it'll accept an attachment as well.
> This also has the added bonus of getting archived and never result in
> broken links and missing content, like it's likely to happen at some
> point with external services.
(OT Disclaimer...not directed at this OP.)
I would [mostly] disagree.
Rationale: A majority of my responses (including this one) are written on
my phone while I'm bored and out and about, or at night during my pre-bed
email check. While the GMail app is great, I've never seen it employ any
sort of code highlighting or sane code wrapping or indentation, beyond
copying directly out of an SO post or other snippet service. Probably
because the GMail app is an email client, not an IDE. There is also no real
way to preview the effects of spacing and line wrapping on multiple
devices, screen sizes, HTML vs. plain text, Unicode handling, etc.
Basically, there's a bunch of ways a direct paste from an IDE can go
sideways in an email, with an increasing likelihood for large code chunks.
Difficult-to-read code directly in an email will deter responses. It does
for me, anyway.
For small code snippets, absolutely, paste them directly in and just make
sure your indentation is at least consistent. If you have more than a dozen
or so SLOC, though, try and reduce the provided code to the stuff that's
necessary (which will often force an OP to really evaluate what their code
is doing and aid in troubleshooting), or make use of an external service
such as dpaste.de.
Mobile devices cannot always open external files, especially those with
less common extensions such as .py. It also fills up your mailbox,
needlessly. I rarely, if ever, open the attachments sent out to this list.
Trying to keep track of the original question compared with the code in a
separate application screen on a mobile device is nearly impossible.
A majority of the code in this list doesn't need to live forever once the
OP has a proper answer. A response with a summation of the correct solution
is almost always the key piece needed when searching through the archives
or Googling, at least in my experience with this list and other forums.
With that being said, sometimes the OP may not know the exact pieces that
are needed for inspection, or there are multiple files involved, so an
attachment may be necessary. Code snippet services also lack in this area.
IMHO, you hijacked this thread to insert your preference for posts, without
offering a single bit of advice to the OP, which reflects poorly on you. I
would offer advice to the OP, but I have none because I have little
experience using the built-in admin.
I would recommend that you offer suggestions for posting guidelines to the
moderators of this list and/or the Django devs. Help move this community
forward rather than criticising those requesting assistance, especially on
a point of personal preference.
Just my personal opinion; if I'm out of line, someone please let me know.
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.