Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
The Trials and Tribulations of Django + Git
I just finished my last exam today - Web Programming and Scripting - which explains the distinct lack of activity around here in recent times. Thankfully I could end my exam season on a high, as web programming is, well, what I do - so it wasn't too much of a challenge! Something strange happens to me every time exams come around. I seem to pick up new projects, and just run with them. This time, I've become involved with a small group of people at university, writing a portal-style information system for universities. I suppose most people call this behavior procrastination, but I'm quite deeply in denial about that. Ever since my post about the Backtrac Backup System, I've been really enjoying using Django. Something about it just makes developing for the web, well, exciting. That can only be good, right? I am the designated server administrator for this latest project, mostly due to the fact that I am the only one with a server to administer, and some of the things I've learned so far seem worthy of a mention here. Firstly, we as developers were - how can I put it - stepping on each other toes … -
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! -
Backtrac Implementation - The Major Decisions
Thinking a lot about my 3rd year project, I've been considering how to implement a backup system based around a Django server. So far, I have reached the conclusion that the system will consist of three main parts: The Django server (yet to be named) The client daemon (backtracd) The backup library itself (backuplib) As I mentioned in the previous post, the Django server will be based around Celery. This will offer me the ability to schedule a task for a certain date and time in the future, which is a huge part of the implementation taken care of. One thing I am yet to figure out, however, is how the server will communicate with the client daemons. At the moment I'm thinking XML-RPC, but it seems to me that it will end up a sort of mish-mash of different technologies - as the Django server will be exposing a JSON API (probably via Piston). I have also considered running Django on the clients too, so everything can use JSON/Piston, but this seems at the moment like an unnecessary burden. Another thing to consider is the data that is to be transmitted between the nodes. Should I use a bunch … -
Django on twistd.web.wsgi - Issue Workaround
My last few posts have generally been about my final year project - Backtrac Backup System. One of the recent challenges I faced was getting the Django-based web interface to run under the Twisted WSGI server. In this post, I'll describe a major issue with this process, and how I worked around it. TAC or TAP? When Twisted is installed, it places an executable program called twistd on your path. The purpose of this program is to run a twisted application as a daemon, and manage all of the tricky daemonization code for you. This includes things like forking, PID files, and logging. There are two ways to describe your application two the Twisted daemon: TAC files and TAP files. I'm pretty sure that TAC stands for Twisted Application Configuration, whereas TAP stands for Twisted Application Plugin. The difference between the two, it seems, is that TAC files pass an Application object to twistd, while TAP files pass a ServiceMaker object (whose purpose is to return a Service object, when makeService is called). Also, given that TAP files define aServiceMaker object which Twisted will call a method on, we can accept a parameter called options, which contains the parsed command-line … -
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 … -
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 ,