Posts

Showing posts from 2013

Usefull django packages

Image
There are many reasons why I like developing web applications with Python and Django but the main one is the awesome community and projects around the language and framework. Every time I search for something there’s always a Django or Python project available to make my life easier. Here’s an   incomplete   list of Python and django related projects that I have used or I’m planning to test. This might help someone starting out to get an idea of how awesome is to work with this technologies. Django Debug Toolbar https://github.com/dcramer/django-debug-toolbar The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel’s content. South http://south.aeracode.org South brings migrations to Django applications. Its main objectives are to provide a simple, stable and database-independent migration layer to prevent all the hassle schema changes over

SEO tips for django

Image
Use the redirects app to manage url changes  Django documentation Use post save signals to handle slug/url changes in your models  Link Use sitemap  The sitemap framework Use slugfield  Model field reference Use cached template loaders to reduce page load times  The Django template language: For Python programmers Use a css/js compressor to reduce page load times  django_compressor Use django-robots to manage your robots file  django-robots If you’re rolling an e-commerce site, don’t reinvent the wheel, just go with  The Best Django CMS . It’s the best code and seo friendly cms framework for django Manage object level meta data with  django-seo Not django specific but submit your site to google webmasters  Webmasters – Google . For bing:  Bing – Webmaster Tools Not django specific again but load your page using  Make the Web Faster  and make all the recommended changes Crawl your site content to find br

Editor TinyMCE in Django admin

Image
  Let stepwise Make the   download of TinyMCE Create folder structure template Configure   TEMPLATE_DIRS   in   settings.py   of your project (   example below   ) Edit the urls.py Edit admin.py Create configuration file TinyMCE  1. Download TinyMCE   you can download tinymce from http://www.tinymce.com/download/download.php 2.   Structure The folder structure is something like: project app templates css js tinymce     Place the folder inside tinymce   project> templates> js   , as shown above. 3.   TEMPLATE_DIRS (settings.py) Edit the   settings.py   and edit / add these lines: import the . path   TEMPLATE_DIRS = ( the . path . join ( the . path . dirname ( __file__ ) , 'templates' ) , ) 4.   Serving static files Open the file   urls.py   (the project root) and add the line 3 as below: urlpatterns = patterns ( '' , ... ( r '^ js / (? <path> P. *) $' ,