It’s easy to copy and paste urls to share links, but its easier to just click on a button to do it. The way I decided to do it was to write a custom django templatetag. The template tag exists in myproject/myapp/templatetags/sharebuttons.py. You can use the pre-built template here Usage in a template: {% load [...]
Archive for the ‘Uncategorized’ Category
Creating Share Buttons for Twitter, Facebook, and Linkedin using Django Templatetags
By Andrew Konkol in UncategorizedJquery UI Autocomplete 1.8 with Django Views
By Andrew Konkol in UncategorizedI have a model named “Show” and it has a ForeignKey to a model named “Venue.” When users add a “Show” I wanted an autocomplete(d) field venue. This solution uses: jquery-1.6.1.min.js jquery-ui.min.js models.py class Venue(models.Model): name = models.CharField(max_length=255, blank=False, null=False, help_text=”Name of the venue”) class Show(models.Model): date = models.DateTimeField(blank=False, null=False) venue = models.ForeignKey(Venue) headliner = [...]
“Live, Dynamic” text generation with jQuery using replace()
By Andrew Konkol in UncategorizedWhen you manage a bunch of similar devices, it’s nice to generate consistent configurations quickly. I built a config file generator last week which you embed the variables in plain text such as “$hostname.” Then a web form is generated based off those embedded variables and a find and replace is done on the config [...]
Powerline Fishing
By Andrew Konkol in UncategorizedI’ve been fishing on Chicago’s lakefront since I was a very young child. There is a certain culture that arises from people that like to fish but don’t have boats. I never picked up on this culture until I lurked several chicago fishing messageboards. Like any hobby, hobbyists are nerds which can’t wait to tell [...]
10 Gallon Cooler Mash Tun
By Andrew Konkol in Fun, UncategorizedI brewed my first beer solo a couple of weeks ago and it tastes pretty decent! After doing some research I came to the conclusion that I had to go all-grain. First of all it’s supposed to taste better, second it gives me an excuse to build something. There are many plans on the web [...]