» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

alex (change)
Swik Users (change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase django? The contents of django page and all pages directly attached to django will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
django

Django

Tags Applied to django

2 people have tagged this page:

“The Web Framework for Perfectionists with Deadlines.”

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Initially developed at a local newspaper in Kansas, it has since found favour for developing all kinds of sites and applications, from content-heavy sites such as www.lawrence.com to Web 2.0 applications such as www.tabblo.com.

Django is quite popular for its extensive documentation.

sorted by: recent | see : popular
Content Tagged django

Wolfram Kriesing: dojo+django = dojango (just released)

Finally we have released dojango. Well, to be honest it's mostly Tobi's work that dojango rocks as it does! Big thanks! So if you are still looking for the right JavaScript toolkit to go with django then you are at the end of your search now. Use dojango! Dojango s a reusable ...

django: Django Community Aggregator

Eric Holscher: Automating tests in Django

At work lately we've been writing a bunch of tests for all of the work we've been doing. This is generally a good thing (tm). I was getting tired of manually having to write all of the code to test the views inside of my app. So I decide to write a little app that helps me automate the writing of tests.

I wrote a piece of middleware (that should obviously only be used during development!) that shadows the current activity in django into a log file. This log file should then be ready to copy and paste into a doctest for easy testing of your views. This is a little hard to explain, but the code should be pretty self explanitory.

I created a google code project for it so that people can go ahead and hack on it and make it better. It is pretty rudimentary at current, but it gets the job done.

I think a big win from this approach is that your testing data is much more "real", since it's a copy of your session with a real browser. I know writing django tests I sometimes use contrived data because it is a pain to enter it all. This should help improve on that situation.

Here is a video of it in action, this should allow it to make more sense.


Django TestMaker from Eric Holscher on Vimeo.

django: Django Community Aggregator

Eric Holscher: Automating tests in Django

At work lately we've been writing a bunch of tests for all of the work we've been doing. This is generally a good thing (tm). I was getting tired of manually having to write all of the code to test the views inside of my app. So I decide to write a little app that helps me automate the writing of tests.

I wrote a piece of middleware (that should obviously only be used during development!) that shadows the current activity in django into a log file. This log file should then be ready to copy and paste into a doctest for easy testing of your views. This is a little hard to explain, but the code should be pretty self explanitory.

I created a google code project for it so that people can go ahead and hack on it and make it better. It is pretty rudimentary at current, but it gets the job done.

I think a big win from this approach is that your testing data is much more "real", since it's a copy of your session with a real browser. I know writing django tests I sometimes use contrived data because it is a pain to enter it all. This should help improve on that situation.

Here is a video of it in action, this should allow it to make more sense.


Django TestMaker from Eric Holscher on Vimeo.

django: Django Community Aggregator

Eric Holscher: DjangoCon September 6-7, at Google!

Heard from Robert Lofthouse on Twitter. The Djangocon 2008 conference will be held at Google Campus (Googleplex) in Mountain View!! September 6 and 7th. That's only two months away, so hopefully this gets pulled together well.

The Official Post announcing DjangoCon. The DjangoCon website should be up on friday.

The DjangoCon Website

django: Django Community Aggregator

Eric Holscher: Setting up Django and mod_wsgi

I was just convinced to setup mod_wsgi on my server instead of mod_python, and I'm going to write up how I did it. All of the documentation I found on the internet was really hard to follow, so I'm going to distill it here the best that I can.

This is assuming Ubuntu 8.04 Server Edition.

Step 1:

apt-get install libapache2-mod-wsgi

This should automatically install mod_wsgi into your apache instance and install it.

Step 2:
Create an apache directory on your filesystem, presumably inside of your Django project. I keep my code in ~/Python/Project, so I did:

mkdir ~/Python/PROJECT/apache
vim ~/Python/PROJECT/apache/django.wsgi

Then in that file you need to copy this code:

import os, sys
sys.path.append('/home/eric/Python/PROJECT')
os.environ['DJANGO_SETTINGS_MODULE'] = 'PROJECT.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

This creates an interface between Django and WSGI, as far as I can tell. If you start getting errors about not seeing your project or modules, try adjusting and/or adding some things to your sys.path.

Step 3:

Inside your /etc/apache2/ directoy, you will find the directory sites-available/. This is where you are going to put your configuration for your server. Presumably it will have a file called default in it that you will edit. So:

In /etc/apache2/sites-available/default:


ServerAdmin eric@ericholscher.com
ServerName ericholscher.com
ServerAlias www.ericholscher.com
DocumentRoot /var/www/
LogLevel warn
WSGIDaemonProcess ericholscher processes=2 maximum-requests=500 threads=1
WSGIProcessGroup ericholscher
WSGIScriptAlias / /home/eric/Python/PROJECT/apache/django.wsgi
Alias /media /var/www/media/

The last 3 lines of WSGI stuff if what you want to pay attention to. You are pointing WSGIScriptAlias to the file we created in Step 2. The other two WSGI prompts aren't necessary unless you are running multiple sites on your server. The Alias is so that the /media URLs on your site continue to work, it should point to where ever you have your media files stored.

Hopefully this will get you started along the way to setting up mod_wsgi on Apache with Django. If not, feel free to leave comments or email me

EDIT:
Someone in the comments pointed out this website on the mod_wsgi wiki is also helpful: Integration with Django

There appears to be a page on the Django WIki as well if you need more pointers.

django: Django Community Aggregator

Eric Holscher: DjangoCon 2008

It is being kinda announced about DjangoCon 2008! It is going to be in the Bay Area and sometime around the release of Django 1.0 in September. I heard about it a couple days ago from Jacob at the office (because I work at Mediaphormedia, birthplace of Django). I'm really excited about it, and I'm thinking about heading out for it. I have never been to the Bay Area. We'll see how it pans out when it gets announced, but I'm almost definitely going!
YAY!!

Update: An official announcement should be made Monday or Tuesday, including dates and location.

Check my post here for updates: DjangoCon: September 6-7, GooglePlex

django: Django Community Aggregator

Dojo Campus

With the release of dojango, I figured it might be a good idea to learn dojo.....

Dojo: del.icio.us tag dojo

dojango - Google Code

Dojo-helpers for django. Infrastructure oriented (switch between versions, local/CDN builds, etc.)

Dojo: del.icio.us tag dojo

Michael Trier: Replacing Django's ORM with SQLAlchemy

Will Larson just created a post titled Replacing Django’s ORM with SQLAlchemy that covers using SQLAlchemy with a Django project. It’s a great write-up, and generally what Django folks are referring to when they say, “of course you can use SQLAlchemy with Django.” I think Will does a good job of stepping you through the important bits.

django: Django Community Aggregator

Page 1 | Next >>
Username:
Password:
(or Cancel)