vmwaredjango

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://SERVER-IP/Project. You can modify the sample project using the files at /opt/bitnami/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 /opt/bitnami/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.