Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django Staging Server: Apache Configuration
In this post, I'd like to talk a little about how my staging server (called Kaylee, after the character from Firefly), is configured to run the multiple Django projects that I have on the go. A lot of the other articles I have read on this subject use mod_python but my server is configured to use WSGI, so that's what I will be going over in this post. Beginnings Firstly, I use virtualenv to keep the Python environments for the different projects separate, but that's a topic in itself. This isn't a requirement, but it helps if you have dependencies that you don't want installed system-wide, or projects that use different versions of a particular package. You can read more about virtualenv and Django here. The directory structure for my /opt/webapps/ directory looks something like this: webapps/ |-- apache | |-- coral.conf | |-- coral.wsgi | |-- myuni.conf | `-- myuni.wsgi |-- coral | |-- env | `-- repository |-- myuni | |-- env | `-- repository The two projects shown here are Coral Issue Tracker and MyUni. The directory for each project contains the virtual env for that project, and the repository. Alongside the project folders is a directory … -
Django Model Templates (sans-Denormalisation)
I came across an interesting problem recently, while trying to model the structure of a university course in Django. The model needed to represent the notion of a university module, which can be taught over a number of semesters and/or years, by different people, and with different students each time round. Some information remained common to each of these modules however, such as the code, name, and type of the module (single semester or full-year). One solution that crossed my mind was to use a sort of template, and copy the common information over each time the module was taught. This would mean duplicating the common fields over a template model and the module's model, and copying the data every time a new "Module" object gets created. This just didn't sit well with me though, as I really don't like denomalising data when it's not absolutely necessary. The solution I have settled on (for now, anyway) works something like this: I use the model template idea, but with a foreign key from the Module to it's template. Then, to access the fields on the template directly from the Module model, I use a combination of the Python property and a … -
My Latest Project: BackTrac Backup System
My life has been pretty busy as of late, mostly with a new project I am working on called Backtrac. I am developing a network backup solution, written entirely in Python - using the Django framework as a front-end web interface. This came at quite a good time, as I've been asked to give a presentation on any highly technical topic, on which I know my stuff. The plan is to use Backtrac as a base, and to explain the technical concepts behind the system that make it work. The things I am going on concentrate on are: Pyhon in general XML-RPC Filesystem hardlinks The MVC concept, and Django This should be enough content to fill a 15-minute slot, I hope. Now I'll explain a little bit about how Backtrac works, for the benefit of those not coming to the presentation. What I wanted to achieve with Backtrac was a smart backup system, that doesn't necessarily have to be the fastest. I wanted a very detailed web interface, with scheduling capabilities and log view. I decided on Django for this, seeing as I had already decided on Python for the system itself. The nodes in the system use XML-RPC to … -
It Begins...
The country has just undergone a mass-exodus of university students from their parents' houses back into halls. I played by own small part in blocking up the roads moving back into university accommodation this weekend, and it's all gearing up for the new school year. I've been working with Django more and more lately, and I've written my first "commercial" application using my new favourite framework - a booking system for taught causes at the City Council. I'm really enjoying writing web applications with Django, and I'm sure this blog will start to resemble a web-developer's in the near future. Also, I'm really looking forward to this year at university. As I understand it, there's a lot more work to be done, but the software engineering group project should be fun - as long as my "randomly chosen" team are happy with us using Python! -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Katharine Vaquez
Thanks - Enjoyed this article, can you make it so I get an alert email when you make a fresh post? -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Valder
Yes, I had thought to remove these two columns, but I never have time to improve it ... -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Oak Furniture
I ran into this page accidentally, surprisingly, this is a amazing website. The site owner has carried out a superb job of putting it together, the info here is really insightful. You just secured yourself a guarenteed reader. -
Quản lý subsite với django
Khi phát triển một website cho các hệ thống quản lý và thương mại, chắc hẳn mọi người sẽ gặp một bài toán như sau: "Ví dụ bạn xây dựng một website abc.com và muốn khi người dùng đăng ký với tên là xyz thì sẽ tự động tạo ra một site cho người dùng dưới dạng http://abc.com/xyz hoặc tên miền mà người dùng lựa chọn". Với bài toán như vậy chúng ta sẽ xây dựng website ra sao để có thể quản lý được các site con như vậy?Đây là một bài toán mà nhiều người đã và đang giải quyết. Nếu sử dụng các hệ thống có sẵn như Joomla, Drupal, Wordpress hay Plone thì đã được hỗ trợ phần nào. Với Django thì bạn thực hiện bài toán đó như thế nào? Được truyền cảm hứng từ bài viết của pduyha (Cấu hình Apache với nhiều Django site), với cách làm trên thì mỗi lần tạo một site mới chúng ta phải restart lại Apache (hoặc có cách reload). Nhưng khi số lượng site lớn dần thì công đoạn đó sẽ mất thời gian đáng kể. Bên cạnh đó sẽ có sự lãng phí tài nguyên và … -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Missy Clipper
How do I transfer my Blogger feed readers to my Wordpress blog? -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por TOMS Shoes Coupons
Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is fantastic, let alone the content! -
Django class based view walkthrough: TemplateView
-
django CMS 2.1.4 security release issued
django CMS 2.1.4 security release issued -
Django'da Tembel Reverse
Django'da reverse(), argüman olarak verdiğiniz görünüm fonksiyonuna giden url'i bulur, ve bu url'i bir karakter dizisi olarak döndürür. Ancak bazı durumlarda, bu fonksiyonu kullanamazsınız. Örneğin, url bilgilerini tutan modüle dahil ettiğiniz modüllerde bunu kullandığınızda sıkıntı çıkaracaktır. Çünkü bu fonksiyonu kullandığınızda, url bilgilerinin zaten yüklenmiş olması gerekir. Bu tip sorunların önüne geçmek için, reverse_lazy() fonksiyonu geliştiriliyor. Yanlış bilmiyorsam, şu anda sadece geliştirme sürümünde bulunuyor bu fonksiyon. Bu fonksiyonun özelliği, url'i aramaya fonksiyon çağırıldığında değil, url kullanılmaya çalışıldığında başlaması. Bu fonksiyonun davranışını django'nun kararlı sürümünde şu şekilde kullanmayı başardım: from django.utils.functional import lazy from django.core.urlresolvers import reverse reverse_lazy = lazy(reverse, str) # reverse kullanmanız gerektiğinde: aradigim_url = reverse_lazy("app.views.view",args=[arguman]) ## reverse fonksiyonu henüz çalışmadı. url'i kullanmaya çalışmanızı bekliyor. print(aradigim_url) ## reverse fonksiyonu şimdi çalışıyor, ve url'i ekrana basıyoruz. -
Django'da Tembel Reverse
Django'da reverse(), argüman olarak verdiğiniz görünüm fonksiyonuna giden url'i bulur, ve bu url'i bir karakter dizisi olarak döndürür. Ancak bazı durumlarda, bu fonksiyonu kullanamazsınız. Örneğin, url bilgilerini tutan modüle dahil ettiğiniz modüllerde bunu kullandığınızda sıkıntı çıkaracaktır. Çünkü bu fonksiyonu kullandığınızda, url bilgilerinin zaten yüklenmiş olması gerekir. Bu tip sorunların önüne geçmek için, reverse_lazy() fonksiyonu geliştiriliyor. Yanlış bilmiyorsam, şu anda sadece geliştirme sürümünde bulunuyor bu fonksiyon. Bu fonksiyonun özelliği, url'i aramaya fonksiyon çağırıldığında değil, url kullanılmaya çalışıldığında başlaması. Bu fonksiyonun davranışını django'nun kararlı sürümünde şu şekilde kullanmayı başardım: from django.utils.functional import lazy from django.core.urlresolvers import reverse reverse_lazy = lazy(reverse, str) # reverse kullanmanız gerektiğinde: aradigim_url = reverse_lazy("app.views.view",args=[arguman]) ## reverse fonksiyonu henüz çalışmadı. url'i kullanmaya çalışmanızı bekliyor. print(aradigim_url) ## reverse fonksiyonu şimdi çalışıyor, ve url'i ekrana basıyoruz. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Valder
yeap ... i dont know what happens i just aprove the comments and say thanks for all :D -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Kitesurfing Shop
A lot of of the opinions on this blog page dont make sense. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Funny Quotes
Thankyou for sharing Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo with us keep update bro love your article about Configurando um projeto Django no UOL Host – segunda parte | Valder Gallo . -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Emma Stone
this post is special haha i am bookmarking your blog man -
Using Django's class based views
-
Django class based views: initial comments
-
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Free Laptops With Broadband
Fantastic read. Thanks a lot for Posting. -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por Immigration
You got a very fantastic website, Glad I detected it through yahoo.your link on my blog here http://tinyurl.com/immigration1001 , -
Comentário sobre Configurando um projeto Django no UOL Host – segunda parte por freshwater pearl necklaces
I do believe all the ideas you have offered for your post. They are really convincing and will definitely work. Still, the posts are too short for novices. May just you please extend them a little from next time? Thanks for the post. -
New: Views as a package
This pattern allows for refactoring the view code into several files without effecting the import process in other files. In other words from coolapp.views import foo still works. -
Django-Autocomplete, and all your requests will be complete, but be careful with the horn
Bon, je suis encore en retard pour la django app du mois de juillet, mais je m’améliore, je n’ai plus que 20 jours de retard. Espérons que la django app du mois d’aout soit à l’heure…. En attendant de voir si en août, à l’heure je serais, je vous propose de découvrir cette petite django-app bien sympatique. Mais avant un peu de contexte. Je cherche depuis quelques temps une django app pour faire de l’autocompletion. Djangopackages qui est décidément très souvent mon ami propose un tableau récapitulatif assez sympa d’un certain nombre d’app qui propose cela. Parmi la liste, j’ai décidé de tester django-autocomplete qui me paraissait le mieux répondre à mes besoin, à savoir de l’autocomplete facile coté admin, comme coté site non admin. Nouveauté ce mois si au niveau du billet, je vais vous présenter deux versions de l’app à savoir la version ‘officielle’ faite par tyrion et un fork fait par etienned. Pourquoi vous présentez deux versions ? Parce que la version d’etienned propose quelques améliorations visuelles intéressantes (et quelques petits refactor pas débiles). 1- Où on le trouve, comment on l’installe, tout ça quoi (et la doc) ? Ici cela dépends de la version que vous désirez tester …