background preloader

Django Packages : Django Packages reusable apps, sites and tools directory

Django Packages : Django Packages reusable apps, sites and tools directory
Apps (1781) Small components used to build projects. An app is anything that is installed by placing in settings.INSTALLED_APPS. Frameworks (88) Large efforts that combine many python modules or apps. Examples include Django, django-cms, and Mezzanine.

Related:  User authenticationdjangoDjango

Django: Highlighting in HTML using Pygments and Beautiful Soup – Stefan Scherfke Two months ago I wrote about Django, Pygments and Beautiful Soup. A few days after the post I switched from HTML markup to reStructuredText and thus didn’t need my filter anymore and forgot to post more about it. Today I received a comment asking me to publish the source code of the template filter—so here it is: Copy the code into a file called templatetags/ within a new or an existing Django app. highlight() searches the passed HTML code for <pre>-tags with a class denoting the lexer to be used, e.g

Mind Reference: How to Install Django on Debian using Apache mod_wsgi Here we are going install a basic django application using apache2 mod_wsgi module. Requirements: server dns: code location: /usr/local/libdjango project: hello Let install few packages we need: apt-get -y install apache2 libapache2-mod-wsgi \ python-django Once you ensure apache is up and running. Let create a simple django application: cd /usr/local/lib django-admin startproject hello Five Days to a Django Web App: Day Three, Coding - The Daily Build Thanks for coming back for Day Three! [Note: Sorry this post is a day late. It was all ready to go late yesterday, but some of the code included below triggered a bug either in WordPress or ScribeFire and the whole post got mangled. I managed to resurrect it today from drafts, and I think it's coherent, but if you find some problem with it please drop me a note.] Progress So Far Yesterday we built some mockups, just HTML and CSS — nothing active.

Starting a Django Project the Right Way Check out the new, updated version of this post with Django 1.6 specific changes and updates. One of the things I wish I had known when starting my Django project for IllestRhyme was "How do I start a real Django project". As in, one that's actually going to be used and developed more, not the toy project from the (admittedly excellent) Django documentation. Having just gone through this process again for my new site, I wanted to share the knowledge I've gained about how to properly start a project in Django. By the end of this post, you will have 1.

The Perfect Django Settings File I know this isn't the best way to start an article, but I lied. This article won't show you how to make the perfect Django settings file. Instead, it will show you how to build the perfect Django settings module. When I'm first starting a new Django project, I like to make sure that my settings file(s) are crafted in an organized, ideal manner. My settings file(s) should allow me to:

Django aggregation tutorial — The Uswaretech Blog - Django Web Development By : Shabda Raaj One of the new and most awaited features with Django 1.1 was aggregation. As usual, Django comes with a very comprehensive documentation for this. Standalone Django scripts In the grand tradition of providing answers to frequently-asked questions from the django-users mailing list and the #django IRC channel, I’d like to tackle something that’s fast becoming the most frequently-asked question: how do you write standalone scripts which make use of Django components? At first glance, this isn’t a terribly hard thing to do: Django’s just plain Python, and all of its components can — in theory — be imported and used just like any other Python modules. But the thing that trips most people up is the need, in most parts of Django, to supply some settings Django can use so it’ll know things like which database to connect to, which applications are available, where it can find templates, etc.

Starting a Django 1.6 Project the Right Way Back in February of 2012, I wrote an article titled 'Starting a Django Project the Right Way', and later followed up with 'Starting a Django 1.4 Project the Right Way'. Both of these articles still draw a consistent audience and are referenced in numerous StackOverflow answers, corporate wikis, and tweets. With 1.5 and 1.6 already out, now seems like an appropriate time to update the article again.

Related:  Djangodjango_exemples