Django or Drupal for Content Management: Which Fits your Needs? If you're building or updating a website, you're probably wondering about which content management system (CMS) to use. A CMS helps users — particularly non-technical users — to add pages and blog posts, embed videos and images, and incorporate other content into their site. CMS options You could go with something quick and do-it-yourself, like WordPress (read more about WordPress) or a drag-and-drop builder like Squarespace. If you need greater functionality, like user account management or asset tracking, or if you're concerned about security and extensibility, you'll need a more robust CMS. That means using a framework to build a complex website that can manage large volumes of data and content. Wait, what's a framework? Put simply, a framework is a library of reusable code that is easily edited by a web developer to produce custom products more quickly than coding everything from scratch. Django and Drupal are both frameworks with dedicated functionality for content management, but there is a key difference between them: Drupal combines aspects of a web application framework with aspects of a CMS Django separates the framework and the CMS The separation that Django provides makes it easier for content managers to use the CMS because ... Read this post in context

python django (django template language) Django Template Language Tags forThe for loop over each item in an array for example to display a list of athletes provided in athlete_list:<ul>{%for athlete in athlete_list%}<li>{{athlete.name}}</li>{%endfor%} </ul>if ,elif,and elseEvaluates a variable and if that variable is true the contents of the block are displayed {% if athlete_list %} Number of athletes: {{ athlete_list|length }}{% elif athlete_in_locker_room_list %} Athletes should be out of the locker room soon!{% else %} No athletes.{% endif %}in the above if athlete_list is not empty the number of athletes will be displayed by the {{athlete_list|length}} variable . Otherwise if athlete_in_locker_room_list is not empty the message "Athletes should be out..." will be displayed if both lists are empty "No athletes " will be displayedyou can also use filters and various operators in the if tag:{% if athlete_list|length > 1 %} Team: {% for athlete in athlete_list %} ... {% endfor %}{% else %} Athlete: {{ athlete_list.0.name }}{% endif %}most templates will return string so mathematical comparisons using filters will generally not work as you expect Length is an exception Commentsthe comment out part of a line in a template use the comment syntax{# #} for example this template would render as 'hello':{#greeting#}helloa comment can contain any ... Read this post in context

Utrecht (NL) python meetup september 2018 Data processing using parser combinators - Werner de Groot He collaborated with data scientists from Wageningen University. The scientists did lots of cool programming stuff. But they did not use version control, so they introduced git :-) They also had lots and lots of data, so they introduced Apache Spark. Their data sets were in ascii files, which are huge. So the ascii files need to be parsed. He showed an example of a file with DNA data. Ouch, it turns out to be pretty complex because there are quite some exceptions. Fields (in this example) are separated by semicolons. But some of the values also contain semicolons (quoted, though). So the generic python code they used to parse their DNA data was littered with "if" statements. Unmaintainable. You probably heard that hard problems need to be split up into smaller problems. Yes, that's true. But the smaller parts also need to be combined again. So: smaller parsers + a combining them again. A parser takes an input and returns the part that matched and the part that remained. He showed parsy as a library for "parser combinators". Many languages have such libraries. He demonstrated how to combine those input/match/remainder ... Read this post in context

Believe the Buzz: 3 Use Cases that Show Why Good UX Is Good for Business In recent years, user-centered design (UCD) has become widespread well beyond the design field. Companies and organizations ranging from NASA to IKEA and everything in between have benefited from adopting UCD. The post Believe the Buzz: 3 Use Cases that Show Why Good UX Is Good for Business appeared first on Distillery. Read this post in context

Bringing FeinCMS and django-content-editor/feincms3 closer together Bringing FeinCMS and django-content