Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Using Django and Celery with Amazon SQS
Amazon's Simple Queue Service (SQS) is a relatively new offering in the family of Amazon Web Services (AWS). It's also an appealing one, because it proposes to quickly and easily replace a common component of the stack in a typical web application, thereby obviating the need to run a separate queue server like RabbitMQ. While ... -
Using Django and Celery with Amazon SQS
Amazon's Simple Queue Service (SQS) is a relatively new offering in the family of Amazon Web Services (AWS). It's also an appealing one, because it proposes to quickly and easily replace a common component of the stack in a typical web application, thereby obviating the need to run a separate queue server like RabbitMQ. While RabbitMQ — the typical favorite for Celery users — is not necessarily difficult to install or maintain, removing it from the stack of a web application means one less component that might fail, offloading that service to AWS — especially for applications with a small to moderate queue volume — might prove financially advantageous. -
Using Django and Celery with Amazon SQS
Amazon's Simple Queue Service (SQS) is a relatively new offering in the family of Amazon Web Services (AWS). It's also an appealing one, because it proposes to quickly and easily replace a common component of the stack in a typical web application, thereby obviating the need to run a separate queue server like RabbitMQ. While ... -
Using Django and Celery with Amazon SQS
Amazon's Simple Queue Service (SQS) is a relatively new offering in the family of Amazon Web Services (AWS). It's also an appealing one, because it proposes to quickly and easily replace a common component of the stack in a typical web application, thereby obviating the need to run a separate queue server like RabbitMQ. While ... -
IP Street is looking for a Senior Developer
We’re looking to hire two lucky people who desire fame and fortune. Here’s the Senior Developer opening: Founded in 2009, IP Street develops and markets software to help corporations, law firms, financial research firms, and government agencies better analyze patent-related information. Our goal is to make IP data easy to get, use, and understand, so everyone can have access to high quality and transparent information. We’re seeking a great Python developer with experience in: Automated workflows that process millions of objects; data quality metrics and repairs; search, particularly with Solr or Lucene; and/or general data mining. Our stack, and development & production environments, are almost all open-source. The key technologies are Python, Django, Celery, Solr, and PostgreSQL. You’ll be joining us at a great time! Revenue is coming in, we’ve done two Angel funding rounds at increasing valuations, and have $ in the bank. If you want more responsibility and authority, no problem, you can have as much as you want! Key Responsibilities. Enhance and extend existing code base to add new features to the product Extend Solr engine to provide more statistics and meaningful analytics to the product Design or co-design new product features, including designing the client and … -
Redux: Extending the Django User model with inheritance
I just packaged up and released a small bit of code last night. Mostly because I wanted to extract it from my project to reuse later, but also because I thought it was cool enough to share. It really is small. Just a few lines of code, as it’s basically just a clever use of the InheritanceQuerySet provided by django-model-utils. I suppose I could have copied that bit of code into my app, but django-model-utils is small and has some great stuff that I’ve started using in all of my projects. So, allow me to share why I thought this bit of code is useful. I have a project that I’m working on that requires several different classes of authenticated users. Each user class has its own required fields and foreign keys and such. It was all complicated enough that a single user profile model wasn’t going to cut it. So I tried using a generic foreign key on the user profile that could be used to point to the “real” profile. Wow, was that a mess. Another requirement of my project is that all the users belong to a hierarchy. When a given user logs in, they need to … -
The Usage of the only() Method
Recently I found the only() method of a queryset which can significantly improve the loading speed of forms with ModelChoiceField or ModelMultipleChoiceField. Let's say we have a big Event model with thousands of instances: class Event(models.Model): title = models.CharField(_("Title"), max_length=200) # ... lots of other fields ... def __unicode__(self): return self.title Then we have a form with ModelMultipleChoiceField: class EventForm(forms.Form): related_events = forms.ModelMultipleChoiceField( queryset=Event.objects.all().only("id", "title"), label=_("Related Events"), required=False, ) # ... other fields of the form ... The used only() method loads only the primary key and the title for the selection widget. -
Announcing Consumer Notebook!
Need a Python programming language book? Want to see a comparison of the ones I own and use? Check out my Must-Have Python Programming Books comparison grid. Let's drill down and take a closer look at one of the items on the page, in this case Doug Hellmann's amazing The Python Standard Library by Example. The product detail pages include the ability to add pros and cons and attach said products to comparison grids and specialized lists like 'my wishlist' and 'my possessions'.Speaking of wishlists, check out my own:In order to add items, like footy pajamas, I click on the 'add' button and paste the Amazon (or BestBuy) URL into the form:At this time we just handle Amazon USA and BestBuy USA. In the future we plan on adding more affiliate providers, including non-USA providers to support our non-USA friends.There's a lot more than that...In addition to weekly infographics, comparison grids, lists, and products, Consumer Notebook also awards points, coins, badges, and a growing privilege set to participating users. We even implemented an energy bar which regenerates over time, designed to match the pace of human users and serve as one of the brakes on scripts and bots. TechnologyI built this with … -
Release 0.6.1
We just released LFS 0.6.1. This is a bugfix release. Following bugs have been fixed: fixed category management; issue #123 fixed adding of payment method: added csrf_token fixed german address form: removed "Area" field, made fields required fixed set/reset of product filters within management UI fixed amount of products per price filter step added translatable label for country field Additionaly the italian and dutch translations have been updated. Thanks to pippo64 and bastichelaar! Information You can find more information and help on following locations: Official page Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org Google Group lfsproject on Twitter IRC Support We also have added a new page about professional support for LFS. Watch it out! -
OpenBlock Geocoder, Part 2: Text Parsing and Entity Extraction
This is the second post in our OpenRural series reviewing OpenBlock and it's geocoder. OpenBlock Geocoder, Part 1: Data Model and Geocoding covers the internals of the OpenBlock geocoder and it's geocoding capabilities. As this posts builds upon topics covered there, you may wish to read Part 1 before proceeding. In this post we step back from the internals of the geocoder and explore how to use it along with other OpenBlock tools to parse unstructured text. -
OpenBlock Geocoder, Part 2: Text Parsing and Entity Extraction
This is the second post in our OpenRural series reviewing OpenBlock and it's geocoder. OpenBlock Geocoder, Part 1: Data Model and Geocoding covers the internals of the OpenBlock geocoder and it's geocoding capabilities. As this posts builds upon topics covered there, you may wish to read Part 1 before proceeding. In this post we step ... -
OpenBlock Geocoder, Part 2: Text Parsing and Entity Extraction
This is the second post in our OpenRural series reviewing OpenBlock and it's geocoder. OpenBlock Geocoder, Part 1: Data Model and Geocoding covers the internals of the OpenBlock geocoder and it's geocoding capabilities. As this posts builds upon topics covered there, you may wish to read Part 1 before proceeding. In this post we step ... -
OpenBlock Geocoder, Part 2: Text Parsing and Entity Extraction
This is the second post in our OpenRural series reviewing OpenBlock and it's geocoder. OpenBlock Geocoder, Part 1: Data Model and Geocoding covers the internals of the OpenBlock geocoder and it's geocoding capabilities. As this posts builds upon topics covered there, you may wish to read Part 1 before proceeding. In this post we step ... -
Redux: Extending the Django User model with inheritance
I just packaged up and released a small bit of code last night. Mostly because I wanted to extract it from my project to reuse later, but also because I thought it was cool enough to share. It really is small. Just a few lines of code, as it's basically just a clever use of the InheritanceQuerySet provided by django-model-utils. I suppose I could have copied that bit of code into my app, but django-model-utils is small and has some great stuff that I've started using in all of my projects. So, allow me to share why I thought this bit of code is useful. I have a project that I'm working on that requires several different classes of authenticated users. Each user class has its own required fields and foreign keys and such. It was all complicated enough that a single user profile model wasn't going to cut it. So I tried using a generic foreign key on the user profile that could be used to point to the "real" profile. Wow, was that a mess. Another requirement of my project is that all the users belong to a hierarchy. When a given user logs in, they need to … -
Redux: Extending the Django User model with inheritance
I just packaged up and released a small bit of code last night. Mostly because I wanted to extract it from my project to reuse later, but also because I thought it was cool enough to share. It really is small. Just a few lines of code, as it’s basically just a clever use of the InheritanceQuerySet provided by django-model-utils. I suppose I could have copied that bit of code into my app, but django-model-utils is small and has some great stuff that I’ve started using in all of my projects. So, allow me to share why I thought this bit of code is useful. I have a project that I’m working on that requires several different classes of authenticated users. Each user class has its own required fields and foreign keys and such. It was all complicated enough that a single user profile model wasn’t going to cut it. So I tried using a generic foreign key on the user profile that could be used to point to the “real” profile. Wow, was that a mess. Another requirement of my project is that all the users belong to a hierarchy. When a given user logs in, they need to … -
Authorize.Net Credit Card Form in Django
A Django form which submits a payment to Authorize.Net during form validation. -
Accept Credit Cards in Django with Authorize.Net
Accepting credit cards in your Django applications using the Authorize.Net payment gateway is easier than you might think. -
Auto-Detecting Anomalies in Your Key Metrics
As your web application grows, so does the importance of monitoring. With more cogs in the machine, more things can go wrong. At Yipit, we want to find and fix application level errors in a timely fashion. While our test suite catches most bugs, some inevitably seep through. Whereas many tools such as Ylastic, AWS, Chartbeat, Munin, and Ganglia help mitigate the monitoring headache on the machine and network level, they don’t do as great a job at the application level. Where we envision Xenia Monitoring of Application Level Metrics at Yipit At Yipit, our application metrics consist mostly of user actions, or events. We log everything from opening our daily email and browsing the web interface to making an API call and using our mobile app. Up until now, we’ve relied on human monitoring, user complaints, and automated custom scripts to detect worrisome trends in our application metrics. However, our recent growth forced us to look into more scalable solutions to this problem. As such, we have begun developing an automated anomaly detection system for monitoring application level metrics more intelligently, code-named Xenia. Xena - the Warrior Princess Xenia (Not the Warrior Princess) The main purpose of Xenia is … -
django-sorting a generic way of queryset sorting
Just found a great project django-sorting. It's a generic way of queryset sorting. It's based on middleware, and templatetag. Please read the README.txt of the project. In couple easy steps you get sorting: 1. Download & install django-sorting 2.In your settings.py - add 'django-sorting' to INSTALLED_APPS - add 'django_sorting.middleware.SortingMiddleware' to MIDDLEWARE_CLASSES (make sure ' -
django-tables generic way for displaying tables (pagination included)
In thnis short post I would like to let you know about the great project django-tables. You can read more about it at: http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/ In a couple of words it lets you: - display the table using one template which lets you sort & paginate easily (filtering in plans!) By reading the text below you will find out how to create table with -
Django explained with model/view/controller (MVC)
-
RSS With the Syndication Framework
Getting our data out to others is very important with a world full of data. RSS is one of the best ways to do this, still. We go over how to create an RSS feed for your content as we continue to build out our demo blog. It is so simple it should be illegal, check it out.Watch Now... -
RSS With the Syndication Framework
Getting our data out to others is very important with a world full of data. RSS is one of the best ways to do this, still. We go over how to create an RSS feed for your content as we continue to build out our demo blog. It is so simple it should be illegal, check it out.Watch Now... -
OpenBlock Geocoder, Part 1: Data Model and Geocoding
As Tobias mentioned in Scraping Data and Web Standards, Caktus is collaborating with the UNC School of Journalism to help develop Open Rural (the code is on GitHub). Open Rural hopes to help rural newspapers in North Carolina leverage OpenBlock. This blog post is the first of several covering the internals of OpenBlock and, specifically, the geocoder. -
OpenBlock Geocoder, Part 1: Data Model and Geocoding
As Tobias mentioned in Scraping Data and Web Standards, Caktus is collaborating with the UNC School of Journalism to help develop Open Rural (the code is on GitHub). Open Rural hopes to help rural newspapers in North Carolina leverage OpenBlock. This blog post is the first of several covering the internals of OpenBlock and, specifically, the ...