Category Archives: Uncategorized

Django mysql configuration

DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘DB_NAME’,
‘USER’: ‘DB_USER’,
‘PASSWORD’: ‘DB_PASSWORD’,
‘HOST’: ‘localhost’, # Or an IP Address that your DB is hosted on
‘PORT’: ‘3306’,
}
}

Advertisements

Mongo DB Tips

1. To Create New Database

use <dbname>

2. To add user to a databse

use <dbname>

db.addUser( { user: “<username>”,pwd: “<password>”,roles: [ <roles> ]} );

example: db.addUser( { user: “newdatabse”,pwd: “password”,roles: [ “readWrite”, “dbAdmin” ]} );

wordpress make post title work in url

Edit/Add the .htaccess file with

RewriteEngine On
RewriteBase /directoryincontext/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /directoryincontext/index.php [L]

If you still end up in issue try adding

Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /directory-having-your-wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /directory-having-your-wordpress/index.php [L]

or

Options +FollowSymlinks
RewriteEngine On
RewriteBase /directory-having-your-wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /directory-having-your-wordpress/index.php [L]