pjblog.net

Django 1.2 brings multiple databases handling through the use of database routers. The actual version of South (0.7.3) is not able to handle correctly multiple databases projects out of the box. Here is a workaround: the idea is to create a new fake django project. And then to use South migration within this project. cd head_directory django-admin.py startproject my_south_db_project cd my_south_db_project Next,edit my_south_db_project/settings.py we have to set the path correctly to south, to your app and to the corresponding database The only installed apps should be South and your app import sys import os.path current_path = os.path.abspath(os.path.dirname(_ _file_ _)) head, tail = os.path.split(current_path) sys.path.append(os.path.join(head, "my_db_app_dir")) sys.path.append(os.path.join(head, "south_sdir")) dbpath = os.path.join(head, "my_initial_project_dir") DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME' : os.path.join(dbpath,'my_db_app.sqlite'), 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', }, } INSTALLED_APPS = ( 'south', 'my_db_app',) Create south table in the new db
Social
N/A
App
Category
computers_electronics_and_technology/computers_electronics_and_technology
Monetization
Unknown
Domain Information
WHOIS
Date
Created
2004-09-23
Expires
2026-09-23
NS Servers
ns8.lwsdns.com
ns7.lwsdns.com
ns6.lwsdns.com
ns5.lwsdns.com
DNS Records
A
99.86.91.61 FR
AWS CloudFront (GLOBAL)
TXT
v=spf1 mx:pjblog.net a:mail.pjblog.net a:mailphp.lws-hosting.com -all
google-site-verification=VdiaQR******xCxw Google
Site Overview
Site Engagments
39.70%
Bounce Rate
Pages Per Visit
1
Total Visits
260
Time on Site
00:00:00
Traffic Sources
Social
4.67%
Paid
1.58%
Mail
0.47%
Referrals
13.39%
Search
44.01%
Direct
34.93%
Traffic Top 5 Country
100.00%
Review Score
Unknown
Google Ads Overview
No ads shown in the past year.