Bitnami Django Installer

NOTE: Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under "Start -> Bitnami APPNAME Stack -> Application console" (Windows). Learn more.
NOTE: When running the commands shown on this page, replace the installdir placeholder with the full installation directory for your Bitnami stack.

Description

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Python is a dynamic, object-oriented programming language used for many kinds of software.

First steps with the Bitnami Django Stack

Welcome to your new Bitnami application! Here are a few questions (and answers!) you might need when first starting with your application.

What are the system requirements?

Before you download and install your application, check that your system meets these requirements.

How do I install the Bitnami Django Stack?

Windows, OS X and Linux installer
  • Download the executable file for the Bitnami Django Stack from the Bitnami website.

  • Run the downloaded file:

    • On Linux, give the installer executable permissions and run the installation file in the console.
    • On other platforms, double-click the installer and follow the instructions shown.

Check the FAQ for instructions on how to download and install a Bitnami Stack for more details.

The application will be installed to the following default directories:

Operating System Directory
Windows C:\Bitnami\APPNAME-VERSION
Mac OS X /Applications/APPNAME-VERSION
Linux /opt/APPNAME-VERSION (running as root user)
OS X VM
  • Download the OS X VM file for the Bitnami Django Stack from the Bitnami website.
  • Begin the installation process by double-clicking the image file and dragging the WordPress OS X VM icon to the Applications folder.
  • Launch the VM by double-clicking the icon in the Applications folder.

What credentials do I need?

You need application credentials, consisting of a password. This will allow you to log in to the services of the Bitnami stack.

What is the administrator password?

  • For Windows, Linux and OS X installers, the password was configured by you when you first installed the application.
  • For OS X VMs, the password can be obtained by clicking the Bitnami badge at the bottom right corner of the application welcome page.

How to start or stop the services?

Linux

Bitnami native installers include a graphical tool to manage services. This tool is named manager-linux-x64.run on Linux and is located in the installation directory. To use this tool, double-click the file and then use the graphical interface to start, stop or restart services. Server log messages can be checked in the "Server Events" tab.

Management tool

The native installer also includes a command-line script to start, stop and restart applications, named ctlscript.sh. This script can be found in the installation directory and accepts the options start, stop, restart, and status. To use it, log in to the server console and execute it following the examples below:

  • Call it without any service names to start all services:

      $ sudo installdir/ctlscript.sh start
    
  • Use it to restart a specific service only by passing the service name as argument - for example, mysql, postgresql or apache:

      $ sudo installdir/ctlscript.sh restart mysql
      $ sudo installdir/ctlscript.sh restart postgresql
      $ sudo installdir/ctlscript.sh restart apache
    
  • Obtain current status of all services:

      $ installdir/ctlscript.sh status
    

The list of available services varies depending on the required components for each application.

Mac OS X

Bitnami native installers include a graphical tool to manage services. This tool is named manager-osx on Mac OS X and is located in the installation directory. To use this tool, double-click the file and then use the graphical interface to start, stop or restart services. Server log messages can be checked in the "Server Events" tab.

Management tool

The native installer also includes a command-line script to start, stop and restart applications, named ctlscript.sh. This script can be found in the installation directory and accepts the options start, stop, restart, and status. To use it, log in to the server console and execute it following the examples below:

  • Call it without any service names to start all services:

    $ sudo installdir/ctlscript.sh start
    
  • Use it to restart a specific service only by passing the service name as argument - for example, mysql or apache:

     $ sudo installdir/ctlscript.sh restart mysql
     $ sudo installdir/ctlscript.sh restart apache
    
  • Obtain current status of all services:

     $ installdir/ctlscript.sh status
    

The list of available services varies depending on the required components for each application.

NOTE: If you are using the stack manager for Mac OS X-VM, please check the following blog post to learn how to manage services from its graphical tool.

Windows

Bitnami native installers include a graphical tool to manage services. This tool is named manager-windows.exe on Windows and is located in the installation directory. To use this tool, double-click the file and then use the graphical interface to start, stop or restart services. Server log messages can be checked in the "Server Events" tab.

Management tool

The Windows native installer creates shortcuts to start and stop services created in the Start Menu, under "Programs -> Bitnami APPNAME Stack -> Bitnami Service". Servers can also be managed from the Windows "Services" control panel. Services are named using the format APPNAMESERVICENAME, where APPNAME is a placeholder for the application name and SERVICENAME is a placeholder for the service name. For example, the native installer for the Bitnami WordPress Stack installs services named wordpressApache and wordpressMySQL.

These services will be automatically started during boot. To modify this behaviour, refer to the section on disabling services on Windows.

Which components are installed with the Bitnami Django Stack?

The Bitnami Django Stack ships the components listed below. If you want to know which specific version of each component is bundled in the stack you are downloading, check the README.txt file on the download page or in the stack installation directory. You can also find more information about each component using the links below.

Main components

Dependencies and additional components

  • SQLite database
  • Imaging
  • easy_install
  • pip
  • OpenSSL library
  • CURL library

How can I get started with Django?

To get started, we suggest the following steps:

Step 1. Try the sample Django project.

The Bitnami Django Stack comes with a sample project, which you can access via your browser at http://localhost/Project. You can modify the sample project using the files at installdir/apps/django/django_projects.

For more information, refer to these instructions.

Step 2. Create a custom Django project.

You can create a new project for your application at installdir/apps/django/django_projects. Simply change to the above directory and run the following command to initialize a new Django project:

$ sudo django-admin.py startproject PROJECT

For more information, refer to these instructions.

Step 3. Deploy your Django application.
NOTE: If you are using Django 1.x, you need to replace the python3 command with python.

To deploy your application, use the standalone server in Django by executing the following command inside your project folder:

$ python3 manage.py runserver

This will start the Django server for your application on port 8000. Find out how to access the application using your Web browser.

For a production environment, we recommend configuring Apache with the mod_wsgi module before starting to serve your application. For more information, refer to these instructions.

How to find the MySQL database credentials?

How to find the database credentials?

  • Database username: postgres.
  • Database password: The password entered during the installation process.

How to connect to the MySQL database?

You can connect to the MySQL database from the same computer where it is installed with the mysql client tool.

$ mysql -u root -p

You will be prompted to enter the root user password. This is the same as the application password.

How to connect to the PostgreSQL database?

You can connect to the PostgreSQL database from the same computer where it is installed with the psql client tool.

$ psql -U postgres

You will be prompted to enter the *postgres* user password. This is the same as the [application password](/installer/faq#how-to-find-application-credentials).

How to connect to Django from a different machine?

For security reasons, the Django ports in this solution cannot be accessed over a public IP address. To connect to Django from a different machine, you must open port 80, 443 for remote access. Refer to the FAQ for more information on this.

IMPORTANT: Bitnami Native Installers do not modify the firewall configuration of your computer, therefore the Django ports could be open which is a significant security risk. You are strongly advised to close the Django ports (refer to the FAQ for more information on this).

How to reset the MariaDB root password?

Please note that depending on the version you have installed, you may find the MariaDB files at installdir/mysql

If you don't remember your MariaDB root password, you can follow the steps below to reset it to a new value:

  • Create a file in /home/bitnami/mysql-init with the content shown below (replace NEW_PASSWORD with the password you wish to use):

     UPDATE mysql.user SET Password=PASSWORD('NEW_PASSWORD') WHERE User='root';
     FLUSH PRIVILEGES;
    
  • Stop the MariaDB server:

     $ sudo installdir/ctlscript.sh stop mariadb
    
  • Start MariaDB with the following command:

     $ sudo installdir/mariadb/bin/mysqld_safe --defaults-file=installdir/mariadb/my.cnf --pid-file=installdir/mariadb/data/mysqld.pid --init-file=/home/bitnami/mysql-init 2> /dev/null &
    
  • Restart the MariaDB server:

     $ sudo installdir/ctlscript.sh restart mariadb
    
  • Remove the init script

     $ rm /home/bitnami/mysql-init
    

How to change the MariaDB root password?

You can modify the MariaDB password using the following command at the shell prompt:

$ installdir/mariadb/bin/mysqladmin -p -u root password NEW_PASSWORD

How can I run a command in the Bitnami Django Stack?

Load the Bitnami Console and then run the command as usual.

How to start with the sample Django project?

Access the sample project via your browser at http://localhost/Project or http://localhost:8080/Project.

The Django project files are located at installdir/apps/django/django_projects.

Here is an example of what you will see:

Django demo

How to create a new Django project?

NOTE: If you are using Django 1.x, you need to replace the python3 command with python.

The location of the Django projects folder depends on the platform. The projects folder is located at installdir/apps/django/django_projects (on Linux and Mac OS X), at C:\Documents and Settings\USER\Bitnami DjangoStack Projects (on Windows 2000, Windows XP and Windows 2003 Server) and at C:\Users\USER\Bitnami DjangoStack Projects (on Windows Vista, Windows 7 and Windows 2008 Server).

Follow the steps below:

  • Change to your projects folder and run the following command to create a new project. Replace the PROJECT placeholder with the name of your project in this and all subsequent commands.

     $ django-admin.py startproject PROJECT
    
  • If you wish to create a new application inside the project, execute the following commands as well. Replace the APP placeholder with the name of your application in this and all subsequent commands.

     $ cd PROJECT
     $ python3 manage.py startapp APP
    
  • Edit the installdir/apps/django/django_projects/PROJECT/APP/views.py file and add this content:

     from django.http import HttpResponse
    
     def index(request):
       return HttpResponse("Hello world!")
    
  • Create the installdir/apps/django/django_projects/PROJECT/APP/urls.py file and add these lines to it:

     from django.conf.urls import url
    
     from . import views
    
     urlpatterns = [
       url(r'^$', views.index, name='index'),
     ]
    
  • Edit the installdir/apps/django/django_projects/PROJECT/PROJECT/urls.py file and modify it to look like this:

     from django.conf.urls import url
     from django.urls import include
    
     urlpatterns = [
         url(r'^APP/', include('APP.urls')),
     ]
    
  • Follow the steps to deploy your Django project with Apache.

You should now be able to see your new application at http://localhost/PROJECT/APP.

If you prefer to use the standalone server in Django, refer to this section. In this case, you should be able to see your new application at http://localhost:8000/APP.

To get started with Django, check the official Django documentation for the version that you are using.

How to deploy a Django project?

NOTE: If you are using Django 1.x, you need to replace the python3 command with python.

Development

For development, use the standalone server in Django by executing the following command inside your project folder:

$ python3 manage.py runserver localhost:PORT

localhost and PORT are optional parameters. 127.0.0.1:8000 will be used by default if you don't specify any of them. If you plan to remotely access the server, you should use the IP address 0.0.0.0, or the actual server IP address.

IMPORTANT: Remember to open the port used by the Django server in the server firewall. Refer to the FAQ for more information.

Production

For a production environment, we recommend configuring Apache with the mod_wsgi module before starting to serve your application (already installed and activated by default).

  • First, modify the WSGI application script file at installdir/apps/django/django_projects/PROJECT/PROJECT/wsgi.py. Remember to replace PROJECT with the actual path and name to your Django project.

    TIP: If you are experiencing problems when editing the above file, check if the permissions in your stack are set properly.

    Although the exact content may be different depending on your Django version, ensure that the content is similar to the code below and that you add your project to the path with sys.path.append.

    import os
    import sys
    sys.path.append('installdir/apps/django/django_projects/PROJECT')
    os.environ.setdefault("PYTHON_EGG_CACHE", "installdir/apps/django/django_projects/myproject/egg_cache")
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PROJECT.settings")
    from django.core.wsgi import get_wsgi_application
    application = get_wsgi_application()
    
  • Create a conf/ folder in the installdir/apps/django/django_projects/PROJECT/ directory.

      $ mkdir installdir/apps/django/django_projects/PROJECT/conf
    
  • Create the following files:

      $ touch installdir/apps/django/django_projects/PROJECT/conf/httpd-prefix.conf
      $ touch installdir/apps/django/django_projects/PROJECT/conf/httpd-app.conf
    
  • On Linux, you can run the application with mod_wsgi in daemon mode. Add the following code in installdir/apps/django/django_projects/PROJECT/conf/httpd-app.conf:

    <IfDefine !IS_DJANGOSTACK_LOADED>
      Define IS_DJANGOSTACK_LOADED
      WSGIDaemonProcess wsgi-djangostack   processes=2 threads=15    display-name=%{GROUP}
    </IfDefine>
    
    <Directory "installdir/apps/django/django_projects/PROJECT/PROJECT">
        Options +MultiViews
        AllowOverride All
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
    
        WSGIProcessGroup wsgi-djangostack
    
        WSGIApplicationGroup %{GLOBAL}
    </Directory>
    
    Alias /PROJECT/static "installdir/apps/django/lib/python3.6/site-packages/Django-2.0.2-py3.6.egg/django/contrib/admin/static"
    WSGIScriptAlias /PROJECT 'installdir/apps/django/django_projects/PROJECT/PROJECT/wsgi.py'
    
  • In the installdir/apps/django/django_projects/PROJECT/conf/httpd-prefix.conf file, add this code:

    Include "installdir/apps/django/django_projects/PROJECT/conf/httpd-app.conf"
    
  • Add the line below to the installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file:

    Include "installdir/apps/django/django_projects/PROJECT/conf/httpd-prefix.conf"
    
  • Edit the installdir/apps/django/django_projects/myproject/myproject/settings.pyfile and update the ALLOWED_HOSTS variable with the IP address of your server, as in the example below:

    ALLOWED_HOSTS = ['localhost', 'localhost', '127.0.0.1']
    
  • Restart the Apache server:

    $ sudo installdir/ctlscript.sh restart apache
    

You should now be able to browse to your project at http://localhost/PROJECT.

How to configure a database for your project?

If you wish to configure a database for your project, configure the settings.py file with the following settings. The examples below show how to configure the database connection with a database called "djangostack".

MySQL

DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.mysql',
      'NAME': 'djangostack',
      'HOST': 'installdir/mysql/tmp/mysql.sock',
      'PORT': '3306',
      'USER': 'USERNAME',
      'PASSWORD': 'PASSWORD'
  }
}

PostgreSQL

DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.postgresql_psycopg2',
      'NAME': 'djangostack',
      'HOST': 'installdir/postgresql',
      'PORT': '5432',
      'USER': 'USERNAME',
      'PASSWORD': 'PASSWORD'
  }
}

SQLite

DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': 'installdir/apps/django/django_projects/PROJECT/PROJECT/PROJECT.db'
  }
}

How to create a new superuser?

NOTE: If you are using Django 1.x, you need to replace the python3 command with python.

You can easily create a superuser account to access the Django admin site by following these steps, assuming that the projects folder is located at installdir/apps/django/django_projects.

  • Change to your project folder:

     $ cd installdir/apps/django/django_projects/PROJECT
    
  • Create a new superuser:

     $ python3 manage.py createsuperuser
    
  • Wait for the prompt and fill the required information to set up a new superuser.

What is GeoDjango?

GeoDjango intends to be a world-class geographic Web framework. Its goal is to make it as easy as possible to build GIS (Geographic information system) Web applications. GeoDjango is an included contrib module for Django.

How can I get GeoDjango with PostGIS support?

PostGIS is included in all stacks that ship PostgreSQL.

How to create a database template with PostGIS support?

NOTE: The following section assumes that you are working with Django 1.5+ which already supports PostGIS 2.0+. It is based on the official GeoDjango documentation.
NOTE: If you are using Django 2.x, you need to replace the python command with python3.

Create a database template by following the steps below. In this example, the template will be named template_postgis.

  • Create a template:

     $ createdb template_postgis
    
     # Allows non-superusers the ability to create from this template
     $ psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';"
    
     $ psql template_postgis -c "create extension postgis"
     $ psql template_postgis -c "create extension postgis_topology"
     $ psql template_postgis -f installdir/postgresql/share/contrib/postgis-2.0/legacy.sql
    
     # Enabling users to alter spatial tables.
     $ psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;"
     $ psql -d template_postgis -c "GRANT ALL ON geography_columns TO PUBLIC;"
     $ psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
    

    To check the version of PostGIS and its dependencies, execute the following command:

     $ psql template_postgis -c "SELECT PostGIS_Full_Version()"
    
    NOTE: Although the official documentation suggests loading legacy.sql only "if really necessary", we have found that it is required for installing Tiger Geocoder and running the OGC tests suite. Also, it is necessary when restoring data from an old database. Once these tasks are done, you can always uninstall it using uninstall_legacy.sql.
  • Create a new database from the template with PostGIS support using this command:

     $ createdb -T template_postgis geocoder
    

    Or, from the database console:

     CREATE DATABASE geocoder TEMPLATE template_postgis;
    

How can I create a geographic web application using GeoDjango?

NOTE: The following section assumes that you are working with Django 1.5+ which already supports PostGIS 2.0+. It is based on the official GeoDjango documentation.

Linux

Follow these steps:

  • Create a spatial database:

     $ createdb -T template_postgis geodjango
    
  • Create a new project:

     $ django-admin.py startproject geodjango
     $ cd geodjango
     $ python manage.py startapp world
    
  • Configure database settings and add a few variables so GEOS and GDAL components are found. Edit the project settings file geodjango/settings.py and update it to look like this:

     DATABASES = {
       'default': {
           'ENGINE': 'django.contrib.gis.db.backends.postgis', 
           'NAME': 'geodjango',  # Name of your spatial database
           'USER': 'postgres',   # Database user 
           'PASSWORD': 'bitnami',# Database password 
           'HOST': 'localhost',
           'PORT': '5432',                      
       }
     }
    
     GEOS_LIBRARY_PATH = 'installdir/postgresql/lib/libgeos_c.so'
     GDAL_LIBRARY_PATH = 'installdir/postgresql/lib/libgdal.so'
     GDAL_DATA = 'installdir/postgresql/share/gdal' 
    
  • In the same file, include the django.contrib.admin.gis and world applications in the INSTALLED_APPS list:

     INSTALLED_APPS = (
         'django.contrib.auth',
         'django.contrib.contenttypes',
         'django.contrib.sessions',
         'django.contrib.sites',
         'django.contrib.messages',
         'django.contrib.staticfiles',
         'django.contrib.admin',
         'django.contrib.gis',
         'world'
     )
    

Mac OS X

Follow these steps:

  • Create a spatial database:

     $ createdb -T template_postgis geodjango
    
  • Create a new project:

     $ django-admin.py startproject geodjango
     $ cd geodjango
     $ python manage.py startapp world
    
  • Configure database settings and add a few variables so GEOS and GDAL components are found. Edit the project settings file geodjango/settings.py and update it to look like this:

     DATABASES = {
       'default': {
           'ENGINE': 'django.contrib.gis.db.backends.postgis', 
           'NAME': 'geodjango',  # Name of your spatial database
           'USER': 'postgres',   # Database user 
           'PASSWORD': 'bitnami',# Database password 
           'HOST': 'localhost',
           'PORT': '5432',                      
       }
     }
    
     GEOS_LIBRARY_PATH = 'installdir/postgresql/lib/libgeos_c.dylib'
     GDAL_LIBRARY_PATH = 'installdir/postgresql/lib/libgdal.dylilb'
     GDAL_DATA = 'installdir/postgresql/share/gdal'  
    
  • In the same file, include the django.contrib.admin.gis and world applications in the INSTALLED_APPS list:

     INSTALLED_APPS = (
         'django.contrib.auth',
         'django.contrib.contenttypes',
         'django.contrib.sessions',
         'django.contrib.sites',
         'django.contrib.messages',
         'django.contrib.staticfiles',
         'django.contrib.admin',
         'django.contrib.gis',
         'world'
     )
    

Now that the environment is set, follow the official GeoDjango tutorial, starting from the "Geographic Data" section.

How to upgrade Django's Python package?

NOTE: If you are using Django 1.x, you need to replace the python3 command with python.
NOTE: Before upgrading Django, make sure that your Django applications are compatible with the new version.

Follow the steps below:

  • Open the Bitnami Console and load the Bitnami environment.

  • Execute this command from the uncompressed directory:

     $ sudo pip install --upgrade Django --install-option="--prefix=installdir/apps/django" (Linux and Mac OS X)
    
     > pip install --upgrade Django --install-option="--prefix=installdir\apps\django --install-lib=installdir\apps\django --install-scripts=installdir\apps\django\django\bin --install-data=installdir\apps\django" (Windows)
    

    If you want a specific version of Django (not the latest one), add the version number as shown below:

     $ sudo pip install --upgrade Django==1.6.5 --install-option="--prefix=installdir/apps/django" (Linux and Mac OS X)
    
     > pip install --upgrade Django==1.6.5 --install-option="--prefix=installdir\apps\django --install-lib=installdir\apps\django --install-scripts=installdir\apps\django\django\bin --install-data=installdir\apps\django" (Windows)        
    
  • Edit the django-admin.py script (usually in installdir/apps/django/bin) and change the first line to use python3 instead of .python2.7.bin:

     #!installdir/python/bin/python3
    

How to create a full backup of Django?

The Bitnami Django Stack is self-contained and the simplest option for performing a backup is to copy or compress the Bitnami stack installation directory. To do so in a safe manner, you will need to stop all servers, so this method may not be appropriate if you have people accessing the application continuously.

NOTE: If you want to create only a database backup, refer to these instructions for MySQL and PostgreSQL.

Backup on Linux and Mac OS X

Follow these steps:

  • Change to the directory in which you wish to save your backup.

     $ cd /your/directory
    
  • Stop all servers.

     $ sudo installdir/ctlscript.sh stop
    
  • Create a compressed file with the stack contents.

     $ sudo tar -pczvf application-backup.tar.gz installdir
    
  • Start all servers.

     $ sudo installdir/ctlscript.sh start
    
  • Download or transfer the application-backup.tar.gz file to a safe location.

You should now download or transfer the application-backup.tar.gz file to a safe location.

Backup on Windows

Follow these steps:

  • Stop all servers using the shortcuts in the Start Menu or the graphical manager tool.

  • Create a compressed file with the stack contents. You can use a graphical tool like 7-Zip or WinZip or just right-click the folder, click "Send to", and select the "Compressed (zipped) folder" option.

  • Download or transfer the compressed file to a safe location.

  • Start all servers using the shortcuts in the Start Menu or the graphical manager tool.

Restore on Linux and Mac OS X

Follow these steps:

  • Change to the directory containing your backup:

    $ cd /your/directory
    
  • Stop all servers.

    $ sudo installdir/ctlscript.sh stop
    
  • Move the current stack to a different location:

    $ sudo mv installdir /tmp/bitnami-backup
    
  • Uncompress the backup file to the original directory:

    $ sudo tar -pxzvf application-backup.tar.gz -C /
    
  • Start all servers.

    $ sudo installdir/ctlscript.sh start
    
IMPORTANT: When restoring, remember to maintain the original permissions for the files and folders. For example, if you originally installed the stack as the root user on Linux, make sure that the restored files are owned by root as well.

Restore on Windows

  • Change to the directory containing your backup:

       $ cd /your/directory
    
  • Stop all servers using the shortcuts in the Start Menu or the graphical manager tool.

  • Uninstall the previous services by executing the following command:

        $ serviceinstall.bat
    
  • Create a safe folder named Backups in the desktop and move the current stack to it. Remember to replace PATH with the right location of your folder:

        $ move installdir \PATH\Backups
    
  • Uncompress the backup file using a tool like 7-Zip or Winzip or just double-click the .zip file to uncompress it, and move it to the original directory.
  • Install services by running the following commands from an elevated command prompt:

      $ cd installdir
      $ serviceinstall.bat INSTALL
    
  • Start all servers using the shortcuts in the Start Menu or the graphical manager tool.

How to debug errors in your database?

The main log file is created at installdir/mysql/data/mysqld.log on the MySQL database server host.

How to access a Django server application?

Access the application by browsing to http://localhost:8000/. Depending on how your system is configured, it may be necessary to first open that port in the server firewall.

How to configure Django with Aptana or Eclipse?

Bitnami Stacks are self-contained and independent of your system. If you want to configure the Aptana development tool, load the stack environment before using it.

$ source installdir/scripts/setenv.sh
$ /opt/Aptana_Studio_3/AptanaStudio3

You can also integrate with Eclipse:

$ source installdir/scripts/setenv.sh
$ eclipse

Find a quick guide (Spanish) at http://pategon.blogspot.com.es/2012/09/bitnami-djangostack-eclipse-pydev-aptana.html.

nativeInstaller

Bitnami Documentation