// archives

Django tip

This tag is associated with 1 posts

restrict access to Django site from all IP’s on Webfaction

For this one project I wanted to deny all access to the site except for a certain IP address. I knew it could be done by using the mod_authz_host Apache Module (more info here), but I couldn’t get it to work on a Webfaction shared hosting account.
After exchanging some mails with the Webfaction support team [...]

Tip: Create models.py from existing database

Ever wanted to use an old, existing, legacy database with a Django Project? That’s totally possible!
Django allows you to create a models.py file based on an existing database. To do this, you first have to make sure your database settings are properly specified in the settings.py file. Here’s an example of what the database settings [...]


  • No categories

Django Hosting:

DjangoDays recommends the following Django hosting provider: