Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get the version of django for application
- from django.conf.urls.defaults import *
- from django.contrib import admin
- (r'^admin/', include(admin.site.urls)),
- DATABASES = {
- 'default': {
- 'NAME': 'app_data',
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'USER': 'postgres_user',
- 'PASSWORD': 's3krit'
- },
- 'users': {
- 'NAME': 'user_data',
- 'ENGINE': 'django.db.backends.mysql',
- 'USER': 'mysql_user',
- 'PASSWORD': 'priv4te'
- }
- }
- DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- DATABASE_NAME = os.path.join(BASE_DIR, 'db') # Or path to database file if using sqlite3.
- #DATABASE_USER = '' # Not used with sqlite3.
- #DATABASE_PASSWORD = '' # Not used with sqlite3.
- #DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
- #DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(PROJECT_DIR, 'mycms.db'),
- }
- }
- $ python
- >>> import django
- >>> print django.get_version()
- 0.97-pre-SVN-7668
Add Comment
Please, Sign In to add comment