What's new in Django community blogs?

DjangoCon Europe 2018 Call for volunteers

Jul 02 2017 [Archived Version] □ Published at The Django weblog

2018's DjangoCon Europe will be held in beautiful Heidelberg, from the 23rd to the 27th May.

There is a lot to do, but it's very much worth it – DjangoCon Europe is an extremely friendly, open, inclusive, and informative (for beginners and advanced users alike) conference.

We're looking for support in the following areas, but if you have other interests and want to help out, please contact us:

  • Sponsors – Contacts, logistics, room/booth assignment
  • Communications – Press, community relations, announcements, social media, attendee tools, volunteer coordination
  • Support – Helpdesk, attendee support contact, visa help, travel management, chat support for attendees, on-site volunteer organization, speaker support
  • Financial Aid – Setup, grant selection, aid organisation
  • Marketing/Design – Brochures, advertisements, banners, flyers, travel guide, t-shirts, lanyards, badges, panels, logo
  • Program – Talk selection, scheduling, session chairs, sprint/openspace/keynote/lightning talks/poster session organization
  • Code of Conduct – Drafting documents, handling of requests and issues
  • Diversity advocate – Accessibility considerations, outreach On-site
  • Team – Catering contacts, child care, social events planning, on-site logistics

Of course, we're happy about everyone joining us who has prior experience in one of these areas, but if you don't, that's fine as well! We'll work something out and you'll be experienced in that area afterwards.

Your location is not important, either (we can do all things that need to be done in Heidelberg itself) – the only important thing is that you have the energy and free time to help organize a wonderful DjangoCon Europe. You do not need to speak German - all team and attendee communication is in English and we have German-speaking people on board for venue contacts and the like.

Don't be shy - drop us a line at 2018@djangocon.eu, because we're looking forward to hearing from you!

Tobias Kunze and Raphael Michel


Django bugfix release: 1.11.3

Jul 02 2017 [Archived Version] □ Published at The Django weblog

Today we've issued the 1.11.3 bugfix release.

The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Tim Graham: 1E8ABDC773EDE252.


The POSSIBLE in IMPOSSIBILITY (My Experience Organizing Django Girls Workshop)

Jul 01 2017 [Archived Version] □ Published at Django Girls Blog

This blog post was written by Afape Ruthn Temiloluwa . Thank you Afape :) 

There is something that lies within that which is called impossibility, when you let it out it is a possibility. The success of the event was something that looked impossible. Also, this isn’t my first Django girls event, I have co-organised and also coached in several events. This was going to be organized by me and then in a strange place. 

Starting with the one I co-organized in May 2016. Opetunde Adepoju came to me to ask if I will like to assist her to organize a computer programming workshop for girls in our community together with Ruth O. Obe. It was something have always wanted to do - getting girls involved in tech because most time I go for tech outings I don’t get to see females, it’s always more of the males, so I have always be driven to help more girls know that tech is also for them. I embraced the offer and we started preparation back them in March 2016 with the support of Aisha Bello. We had close to 30 ladies who fell in love with programming that day.  

I have been C# programmer enthusiast but the workshop made me know of python and I fell in love with it.  Also after so much research, I discovered it could work well for machine learning. Then I started volunteering to coach at different Django girls event within Nigeria. A friend observing his national youth service in the eastern part of Nigeria put a call through to me and asked if I can come and organize Django Girls in the East which I accepted. I quietly let the possibility in me out and then agreed to organize the event. I applied and it was accepted. The journey began in February 2017. It was not really any easy because as the first month of applications I was having about 5 applicants I was feeling discouraged and was thinking I would probably have to cancel the workshop. Possibility never allowed me. Getting coaches was another tough one for me because it was really like there were no programmers there but with the help of social media I was able to connect to some programmers who volunteered to coach. A month to the event I was already having over 50 applicants and only picking 30 of them. 

There was a little disappointment with the venue we were supposed to use and we had to work out another location for the workshop which was really difficult. That delayed our starting time and we started the installation party around 3pm. The coaches also came a little bit late that day because they were all coming from far cities. All attendees had fun during the installation party.

On Saturday which was the second day of the event. Everything went well, we had 28 participants. We were able to work with the coaches that were available. All the participant gave feedback after the events with some of them saying they had wished it was more than a day workshop. They really appreciated the sponsors of the event. All thanks to:

BudgitPSF and Github for sponsoring the event.

For more pictures please click on this link. Thanks.

Django Girls is a non-profit that teach programming to women all around the world. Want to help us? Support us!


django-admin-jqueryui112

Jul 01 2017 [Archived Version] □ Published at Latest Django packages added

A fork of the django-admin-jqueryui. Simply adds a jquery ui to the admin panel


django-content-gallery

Jul 01 2017 [Archived Version] □ Published at Latest Django packages added

The Django application allows to attach a collection of images to objects of any model of any app


django-rest-framework-tricks

Jun 30 2017 [Archived Version] □ Published at Latest Django packages added

Collection of various tricks for Django REST framework.


Django Girls Belo Horizonte

Jun 30 2017 [Archived Version] □ Published at Django Girls Blog

This blog post was written by Daniel Daim. Thank you Daniel :)

A lot of work and a lot of rewards. If we want to make a summary of how the workshop was it would sound like this. It would be impossible to limit the event to just one sentence.

Since January we have been working hard to make the first Django Girls in Belo Horizonte come to fruition. And we had a lot of tasks to do, including the researching sponsors and finding beautiful hearts of people who become our coaches and organizers.

And this was the result of Django Girls on May 25th of 2017: Women from several backgrounds learning, coding and feeling very happy! Some of they gave us inspirational feedback.

“For someone who always thought that they never would be able to program, making my own blog and deploying it into the cloud is surreal. Thanks for the opportunity.”

- “Best day ever! Thanks for reminding me that I am able to build things!”

- “For the first time in my life I went to a technology event without been judged. Thanks for the opportunity and for the wonderful workshop, guys!”

- “It was awesome! I am very motivated to join the coding world! I thank you all for the dedication of those who organized this event.”

- “I loved the way the tutorial went. I felt that I learned all that I could and, the best part, by myself.”

Every feedback, every smile on that day made all of our effort worth it. We had more of 200 applications to the workshop.

Unfortunately, we only could host 30 people. But our desire is to organize more Django Girls editions to accommodate all the girls that we can!


django-elasticsearch-dsl

Jun 30 2017 [Archived Version] □ Published at Latest Django packages added

This is a package that allows indexing of django models in elasticsearch with elasticsearch-dsl-py.


elasticmodels

Jun 30 2017 [Archived Version] □ Published at Latest Django packages added


Django Girls Kumasi – Python Training

Jun 29 2017 [Archived Version] □ Published at Django Girls Blog

This blog post was written by Emily Johnson. Thank you Emily :) 

Django Girls Kumasi – Python Training

On Saturday, April 22, 2017, hapaSpace played host to about 35 women who were eager to learn the programming language, Python. The event which was largely sponsored by the Python Software Foundation began at 8:30 am with a good breakfast and registration. It as also sponsored by Hapa Foundation and Hapaweb Solutions.

Django Girls is an initiative that is aimed at introducing women who have never coded before to the world of technology and increase the diversity within the industry. 

The Kumasi Django girls training was organised for the ladies to learn how to build a website using Python and Django in a safe, friendly, inclusive environment.

By 9:30 am the stage was set for the training to begin. Installation of all software had already been done a few days ahead of the training for a number of participants. By 10 am the installation of Python, setting up virtualenv, installing Django and a text editor had been completed and everyone was good to go.

The whole training was built on the Django Girls training curriculum. The training started with an introduction to the Command Prompt and usage of common commands, HTML and CSS. This was followed by a session on Python. This session covered how to use the Python console as well as an introduction of programming types such as numbers, strings, booleans and operators.

After a lunch at about 1:40 am, the next session focused on using the Django framework. The goal of this session was to train the ladies on how to build a working web application and deploy it to the internet.

Trainer and Coaches

The training was led by Albert Opoku, a web developer at hapaSpace, along with 10 volunteer coaches from the Kumasi Tech Community. There was one coach at each table with 3 or 4 ladies. The success of the training was largely due to the hard work of the coaches. They supported and really inspired the ladies throughout the training.

Training Outcome and Next Steps

The program ended at around 6:00 pm with the majority of trainees excited about the new knowledge they had acquired. At the end of the day, we had achieved our main purpose, which as was not to turn the ladies into programmers in one day, but rather to use the Django Girls framework to get the ladies excited about coding and show them how much fun it is to build something.

Key Takeaways

Here are a few takeaways:

  • In our very first Python training in Kumasi in 2016. There were only 8 females out of a total of 40 trainees in attendance. Thus, this was a massive improvement. It is proof that our efforts to encourage more ladies into tech is gradually bearing fruits.
  • Every single participant came with a laptop, another improvement over our previous programming programmes. This made the whole training very engaging, practical and hands-on.
  • The ladies were excited to learn how to code even though they have no computer science background.
  • There is a lot of work to be done in Kumasi to build a community of highly skilled programmers and developers.

Conclusion

As resources allow, hapaSpace will continue to host more of such events to expose young people to different programming languages.

Watch the video

Photos

 


Testing Models

Jun 29 2017 [Archived Version] □ Published at python under tags  howtos machine learning python

In my last few articles, I've been dipping into the waters of "machine learning"—a powerful idea that has been moving steadily into the mainstream of computing, and that has the potential to change lives in numerous ways. more>>


Managing your AWS Container Infrastructure with Python

Jun 28 2017 [Archived Version] □ Published at Caktus Blog

We deploy Python/Django apps to a wide variety of hosting providers at Caktus. Our django-project-template includes a Salt configuration to set up an Ubuntu virtual machine on just about any hosting provider, from scratch. We've also modified this a number of times for local hosting requirements when our customer required the application we built to...


Multiple Sites with Routing in uWSGI

Jun 27 2017 [Archived Version] □ Published at Lincoln Loop

In another of our "you can do that?!?" with uWSGI posts, today I'll show you how to use uWSGI to host multiple sites and properly route traffic based on the hostname to those sites.

Multiple Sites (aka Emperor Mode)

uWSGI provides the ability to run multiple sites via emperor mode. This feature acts like a process manager, reading any configuration files found in a specific directory and spinning up additional uWSGI instances (aka "vassals") to execute them. Typically I'd use something like systemd for this, but in the case of most PaaS providers, that's not usually available.

The simplest way to enable emperor mode is to pass a directory where uWSGI will find the configuration files for the vassals:

emperor = %dvassals.d/*.ini

💡 Tip: %d is a special variable in uWSGI that points to the directory of the configuration file. If we were to put this in /etc/uwsgi/uwsgi.ini, the path for the vassal configs would be /etc/uwsgi/vassals.d/*.ini.

As with most things uWSGI, the emperor has a million different options. It's worth reading the docs to see if any other features would be useful to your specific use case.

Nothing special is needed for your vassal configuration files. Do the same thing you would for any uWSGI site. You may, however, find the vassal-set configuration option handy to prevent repeating yourself for common settings in every vassal config.

Routing

Emperor mode might be old news for you, but routing is where things start to get interesting. uWSGI's internal router is really powerful and can do all sorts of crazy things. We'll use it to route requests by hostname to the corresponding vassal. First, we need to tell the main uWSGI process to listen on a port for incoming requests:

# HTTP listener on port 8080
http = :8080

Then we can add a router that watches for requests on a specific hostname and forwards them to the listening socket of the appropriate vassal:

route-host = ^www\.example\.com$ uwsgi:/tmp/uwsgi_example_vassal.sock,0,0

In this case, we're routing any requests to www.example.com through a Unix socket at /tmp/uwsgi_example_vassal.sock using the uWSGI protocol. The last two numbers are "uWSGI modifiers". If you're using Python, you probably want to leave them at 0,0.

You can add as many of these route-host directives as you want. You can also get fancy and declare them dynamically with the regex:

route-host = ^([-\w]+)\.example\.com$ uwsgi:/tmp/uwsgi_$1.sock,0,0

Here we extract the subdomain of the request and try to route it to the corresponding socket. So, site.example.com would route to uwsgi:/tmp/uwsgi_site.sock.

But Why?

This is all novel and clever, but would I actually use it in production? Certainly specialized tools like systemd and Nginx/HAProxy are better at these jobs than what uWSGI provides, right? Like most things, it depends.

If it's straightforward to do it all in uWSGI, it's a win against complexity. Every service you add to your stack is something else you need to learn to use, maintain, and another possible point of failure. If one tool can do the job of three, why not use it?

On the otherhand, I have two reservations about cramming everything into uWSGI.

  1. Specialized tools are probably far more efficient and robust. If scaling your website to lots of traffic is on the radar, test and measure to make sure you don't introduce a bottleneck.
  2. Don't cram a square peg into a round hole. The goal here is to reduce complexity, so if you feel like things are getting too complex, that's a good sign it might be time to look at other options.

I initially used this to migrate a number of micro-sites that ran on the same code base from a VM to Heroku. Since Heroku charges per process, this little hack allowed us to run multiple sites on a single Heroku instance. It saved on the hosting costs and only required a few extra lines in the uWSGI config to accomplish it. The sites are low traffic, so scaling is not a concern. Overall, I've been happy with the results.

Have questions or a good uWSGI tip to share? Drop us a note in the comments!


Vagrant error: * Unknown configuration section 'hostmanager'.

Jun 27 2017 [Archived Version] □ Published at Programmer blog under tags  boilerplate box environment error fix

Sometimes you get a vagrant environment or boilerplate with a Vagrantfile config in there and do a vagrant up command. And see some errors. like this:
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'hostmanager'.

To fix this one needs:
$ vagrant plugin install vagrant-hostmanager
Installing the 'vagrant-hostmanager' plugin. This can take a few minutes...
Fetching: vagrant-hostmanager-1.8.6.gem (100%)
Installed the plugin 'vagrant-hostmanager (1.8.6)'!
So command to fix this as follows:
vagrant plugin install vagrant-hostmanager


django-imperavi-widget

Jun 26 2017 [Archived Version] □ Published at Latest Django packages added


django-planet aggregates posts from Django-related blogs. It is not affiliated with or endorsed by the Django Project.

Social Sharing

Feeds

Tag cloud

admin administration adsense advanced ajax amazon angular angularjs apache api app appengine app engine apple application security aprendiendo python architecture argentina articles asides audrey aurelia australia authentication automation backup bash basics best practices binary bitbucket blog blog action day blogging book books buildout business c++ cache capoeira celery celerycam celerycrawler challenges chat cheatsheet cherokee choices christianity class-based-views cliff clojure cloud cms code codeship codeship news coding command community computer computers computing configuration consumernotebook consumer-notebook continuous deployment continuous integration cookiecutter couchdb coverage css custom d data database databases db debian debugging deploy deployment deployment academy design developers development devops digitalocean django django1.7 django admin django cms djangocon django framework django-nose django-readonly-site django-rest-framework django-tagging django templates django-twisted-chat django web framework tutorials documentation dojango dojo dotcloud dreamhost dughh easy_install eclipse education elasticsearch email encoding english error europe eventbrite events expressjs extensions fabric facebook family fashiolista fedora field file filter fix flash flask foreman form forms frameworks friends fun functional reactive programming gae gallery games geek general gentoo gis git github gmail gnome goals google google app engine guides gunicorn hack hackathon hacking hamburg haskell heroku holidays hosting howto how-to howtos how-tos html http i18n image imaging indifex install installation intermediate internet ios iphone java javascript jinja2 jobs journalism jquery json justmigrated kde la latex linear regression linkedin linode linux login mac machine learning mac os x markdown math memcached meme mercurial meta meteor migration mirror misc model models mod_wsgi mongodb months mozilla multi-language mvc mysql nasa nelenschuurmans newforms news nginx nodejs nosql oauth ogólne openshift opensource open source open-source openstack operations orm osx os x ottawa paas packages packaging patterns pedantics pelican penetration test performance personal personal and misc philippines philosophy php pi pil pinax pip piston planet plone plugin pony postgis postgres postgresql ppoftw presentation private programmieren programming programming & internet project projects pycharm pycon pycon-2013-guide pydiversity pygrunn pyladies pypi pypy pyramid python python3 queryset quick tips quora rabbitmq rails rant ratnadeep debnath reactjs recipe redis refactor release request resolutions rest reusable app review rhel rtnpro ruby ruby on rails scala scaling science screencast script scripting security server setup shell simple smiley snaking software software collections software development south sphinx sprint sql ssh ssl static storage supervisor support svn sysadmin tag tag cloud talk nerdy to me tastypie tdd techblog technical technology template templates template tags test testing tests tip tips tools tornado training transifex travel travel tips for geeks tumbles tutorial tutorials twisted twitter twoscoops typo3 ubuntu uncategorized unicode unittest unix use user authentication usergroup uwsgi uxebu vagrant validation virtualenv virtualenvwrapper web web 2.0 web application web applications web design & development webdev web development webfaction web framework websockets whoosh windows wordpress work workshop wsgi yada year-end-review znc zope