#django

Some basic #search on #Socialhome finally starting to come together. Only on my personal node atm though. Explains why many people got a follow from me just now as I'm eagerly searching and following people from my #diaspora contacts :) Remote direct match lookup is still to come though, so can't reach all pods who don't push over the relay system (btw, you should!). Currently the search is for profiles only. Tags will be added soon, after that full text for content.

On the technical side, after prototyping some solutions, went with django-haystack for the search framework and whoosh for the engine. Whoosh is a pure #Python backend with a file index. While this might not offer the performance we will need for large index full text search (from all content!), using Haystack on top means we can just switch transparently to #Elasticsearch at any time without touching pretty much any code - or even support using one or the other. Some people running nodes might not want to install ES.

Landing soon in master, you can try it at my own site if you are interested. It's basic but works.

#django #devdiary

Jason Robinson
9 hours ago
2

The State of #Developer Ecosystem #2017 - #Infographic

Interesting #survey from #JetBrains. Some takeaways I found interesting:

  • #Python was the 5th popular language, though if you count out HTML/CSS and SQL, then 3rd (JavaScript, Java, Python). But, more people indicated a wish to adopt Python than any other language 👍
  • Only 55% indicated they write unit #tests 😱 19% of #opensource contributors indicated they don't do unit #testing 😱😱
  • 42% indicated they contribute to #opensource regularly or from time to time
  • #Linux got a massive 40% share in operating systems, though 21% use #Windows and Linux simultaneously. This is a logical result, since web development pretty much requires using Linux at least virtually. And Linux is a much more popular choice among developers than it is for normal regular Joe users (where the market share is more like 2%).
  • Just over 50% indicated they sleep over 6 hours a night. 6% sleep less than 3 hours..
  • Only 11% indicated they don't have a hobby project
  • Python 3 is used by 53% of Pythonistas. Good riddance Python 2, we're moving on!
  • 67% of Pythonistas prefer #Django for their framework
  • 88% of developers are under 40 years of age. Which makes me a dinosaur of the industry 😁
  • ES6 is adopted by 82% of #JavaScript developers
  • #React is adopted by 49% of JavaScript developers

It's a survey among many, always interesting to see results and compare between.

https://www.jetbrains.com/research/devecosystem-2017/

The State of Developer Ecosystem 2017 - Infographic | JetBrains
Over 5,200 developers share their insights on modern technologies, programming languages, frameworks, and tools of choice for software development.

Jason Robinson
a day ago
6

Towards #Channels 2.0

#django

http://www.aeracode.org/2017/7/11/towards-channels-20/

Jason Robinson
7 days ago

Over 10,000 women have attended a #Django Girls workshop!

http://blog.djangogirls.org/post/162911376928/over-10000-women-have-attended-a-django-girls

Over 10,000 women have attended a Django Girls workshop!
If you’re really quiet and listen super hard, you might be able to hear the Django Girls team celebrating the latest milestone… This month the Django Girls Foundation helped support over 10,000 people...

Jason Robinson
7 days ago

django-test-plus

I really wish I had started using this #Django package earlier. I've known about it for a long time but hadn't really checked how easy it makes testing views in Django. Pure awesomeness.

On a related note, I've finally decided while #pytest is great, I do prefer Django test classes. Why? Less magic. Py.test fixtures are like straight from the #RoR world. Django test classes, while slightly more verbose, have a lot of benefits. Better assertions (based on type) and awesome setUpTestData to keep tests fast, as some examples. Slowly converting all #Socialhome tests to Django tests 👍

I still use Py.test as a test runner though, it has nice flexible cli options for that.

http://django-test-plus.readthedocs.io/en/latest/

Jason Robinson
17 days ago

Profile content stream + minor redesign

Added now a new "All content" stream for each profile. This can be found in the user profile. It is always rendered by default if the profile is remote or is a local profile with no pinned content.

Also related to this a minor redesign of the profile page. The "stamped" area with profile information is now centered with two columns on xl-large screens, two columns on left for large screens and full-width on medium or smaller. It now has a user actions drop-down for modifying settings or profile content, and for other user profiles there are the home/follow/unfollow buttons as in stream content.

The navbar also received a rewrite as bumping a #Bootstrap 4 alpha version broke things again.

Feedback

Would love to receive feedback on the usefulness of the profile stream, or streams in #Socialhome in general. If you have tried Socialhome, did you find the grid layout useful or confusing?

It is likely the design will live quite a bit in the future. The current one was really a "let's try this" idea which still needs to be proven. Underneath the code is starting to suffer from "spaghetti code" problems with lots of #jQuery events firing to pull the strings. I'm seriously considering rewriting the stream with either #React or maybe #Vue. Before that happens, it would be nice to have a clearer idea of the future stream #UX.

If you want to give feedback or discuss these things, feel free to leave some comments here or get in touch via chats or GitHub issues. Private messages don't yet work in the #federation layer so please don't send those yet.

Project info

As a reminder for new readers. Socialhome is a #Django powered project aiming to create a platform that allows users to create a simple social profile with dynamic content. All content is federated using the #Diaspora protocol. Streams are in a central role, and we plan to have many types of streams, including custom per user streams.

You can find the code here and some documentation. The official site is https://socialhome.network which is a Socialhome instance itself and open for registration. Feel free to play around and feedback is always welcome!

#devdiary #changelog

Socialhome HQ - Socialhome

Socialhome HQ
17 days ago (edited)
5

#Django bugfix release: 1.11.3

https://www.djangoproject.com/weblog/2017/jul/01/bugfix-release/

Jason Robinson
23 days ago

Seitsemän viikkoa Anderslaisena – Anders Innovations

#python #django #helsinki #turku

https://www.andersinnovations.com/fi/blogi/seitseman-viikkoa-anderslaisena/

Seitsemän viikkoa Anderslaisena
Emilia on toisen vuoden tieto- ja viestintätekniikan insinööriopiskelija ja vietti seitsemän viikkoa työharjoittelussa Andersilla.

Jason Robinson
a month ago

Play Cool..

https://www.youtube.com/watch?v=QATIHWbN-sM

#music #django #jazz
Quelle: https://undead-chemnitz.de/word/Archive/24892


Reverend Elvis
a month ago

Analyzing #Django requirement files on GitHub

https://pyup.io/posts/analyzing-django-requirement-files-on-github/

Jason Robinson
a month ago

#Django m2m_changed pk_set is empty - Stack Overflow

Anyone? 😩

https://stackoverflow.com/questions/44477919/django-m2m-changed-pk-set-is-empty

Django m2m_changed pk_set is empty
Django version 1.10.7, I have a problem where sometimes my receiving m2m_changed signal on a ManyToMany field has pk_set empty. The model m2m part (note it's a self reference): class Profile(

Jason Robinson
a month ago

Meh.

  • Add some fields on a model
  • Add functionality related to those fields
  • App API routes for not just the fields but the whole model
  • Start adding more functionality using shiny new API routes
  • Realize fields are probably on the wrong model
  • Open a beer

Well, got an API for the model even though don't need it yet :P Luckily #Django REST framework is pretty damn fantastic and a breeze to do API stuff with.

Jason Robinson
2 months ago

#Django bugfix release: 1.11.2

https://www.djangoproject.com/weblog/2017/jun/01/bugfix-release/

Jason Robinson
2 months ago

Needs an Ajax endpoint for followers in #Socialhome. Adds #Django #REST framework.

Well, need an API anyway, might as well do it now :)

Jason Robinson
2 months ago
3

Всем привет, я #новичок.Мне интересны #3d-print, #christianity, #cryprocurrency, #django, #family, #homeschooling, #linux, #python и #reading. Can read English

guest007@diaspora.zone
2 months ago

#Django Long Running Processes

A big fan of RQ as well.

https://snakeycode.wordpress.com/2017/05/21/django-long-running-processes/

Django Long Running Processes
The most commonly suggested solution for long running processes is to use Celery. I suspect that if you need scalabilty or high volume, etc… Celery is the best solution. That said,  I have be…

Jason Robinson
2 months ago

3 Reasons to Upgrade to the Latest Version of #Django

https://www.caktusgroup.com/blog/2017/05/22/3-reasons-upgrade-latest-version-django/

3 Reasons to Upgrade to the Latest Version of Django | Caktus Group

Jason Robinson
2 months ago

APSL/sauron: Sauron is a #Django Channels app and #Micropython #IoT device to monitor toilet status

https://github.com/APSL/sauron

Uh, ok... sounds... useful.

APSL/sauron
sauron - Sauron is a Django Channels app and Micropython IoT device to monitor toilet status

Jason Robinson
2 months ago

#Django 1.11.1 release notes

https://docs.djangoproject.com/en/1.11/releases/1.11.1/

Jason Robinson
2 months ago

Getting Djiggy with #Django Models

https://tldlife.com/getting-djiggy-with-django-models-1d87f36313de

Getting Djiggy with Django Models – TLDLife
When describing the power of Django to new web developers, a great place to start is the ORM (how you interact with the database using…

Jason Robinson
3 months ago

Digging Into #Django QuerySets

https://www.caktusgroup.com/blog/2017/04/05/digging-into-django-querysets/

Jason Robinson
3 months ago

Lessons from scale: #Django

https://sanketsaurav.com/lessons-from-scale-django-124f7b16ae0c

Lessons from scale: Django – Zeroes & Ones
Things I’ve learnt by running Django in production for the past two years.

Jason Robinson
3 months ago

https://twitter.com/AndersInno/status/850321575152939008

#python #django #react #helsinki #työpaikat #rekry


Jason Robinson
3 months ago

Hey everyone, I’m #newhere. I’m interested in #django, #fitness, #health, #linux, and #python.

Oskar Artur
3 months ago

Django-Webframework erhält neues LTS-Release

#django #erha #lts #neues #release #webframework

heise iX (inoffiziell)
3 months ago

Django-Webframework erhält neues LTS-Release

#django #erha #lts #neues #release #webframework

heise Developer (inoffiziell)
3 months ago

#Django #security releases issued: 1.10.7, 1.9.13, and 1.8.18

https://www.djangoproject.com/weblog/2017/apr/04/security-releases/

Jason Robinson
3 months ago

#Django 1.11 LTS released

Yay! Congrats team!

https://www.djangoproject.com/weblog/2017/apr/04/django-111-released/

Jason Robinson
3 months ago