Django CMS is a free open-source content management system based on the Django web framework, which ensures a quick integration of the databases and new modules. Django CMS helps to simplify the process of creating complex websites due to its intuitive and easy-to-learn drag and drop interface. Simultaneously, it is powerful and expandable enough to satisfy the most demanding content editors.
Below, we’ll overview the steps required to automatically or manually install the Django CMS solution to the cloud.
Django CMS Automatic Installation
You can automatically get a preconfigured ready-to-work Django CMS instance up and running within minutes using Jelastic Marketplace.
1. Log in to your Jelastic account and click the Marketplace button at the top of the dashboard.
2. Search for the DjangoCMS solution in the opened window.
Hover over the located package and click Install.
3. Within the appeared installation frame, you can adjust the following fields:
- Environment – set your environment name
- Display Name – define a preferable alias
- Region – select the environment region (if multiple are available)
Proceed with the Install button.
4. That’s it! In just a few minutes your Django CMS application will be installed.
Use the info within the pop-up to access your Django CMS home and admin panel pages.
Django CMS Manual Installation
You can deploy Django CMS manually with the help of the following step-by-step instruction and take the complete control over the process.
Let’s start by creating an environment for the Python applications hosting. To do this, follow the next steps:
1. Click the New environment button.
2. Navigate to the Python programming language tab, where the Apache application server will be selected automatically. State the resource limits, choose the region (if available) and enter the name (e.g. django-cms) for your environment.
Finally, click Create at the bottom right corner of the frame.
3. Just in a minute, your environment will appear at the dashboard.
Now, you can install Django CMS from scratch or deploy your existing application into the environment. We’ll check both these options one-by-one.
Install Django CMS
1. Connect to your application server via Web SSH:
2. You should create an isolated virtual Python environment for your application, using the virtual environment tool, which allows managing projects’ dependencies independently and without the administrator privileges:
3. Activate and switch to the newly created virtual environment by executing the next command:
4. Install the Django CMS installer using the pip package manager:
pip install djangocms-installer
Wait a minute for the operation to be completed.
5. Next, remove the pre-installed application and create a new Django CMS application:
rm -rf ROOT
djangocms -p . ROOT -s
6. Edit the mod_wsgi module (the /var/www/webroot/ROOT/wsgi.py file) by replacing its content with the lines below:
Save the made changes.
7. Also, adjust the next parameters in the /var/www/webroot/ROOT/settings.py configuration file:
Don’t forget to Save the changes.
8. Create new subdirectories for the static/media content and run the synchronization of resources:
python manage.py collectstatic
9. That’s all! Now, you can access your environment by clicking Open in Browser.
Within the opened page log in to the admin panel using the default admin/admin credentials.
Here, you can immediately start working by creating your first page with Django CMS.
Deploy Existing Django Application
In case you have already the previously built and packaged Django application, the deployment procedure can be performed just in a few steps.
1. Upload your application to the deployment manager, for example:
2. Deploy your Django application into the environment with the Apache Python application server.
3. In a minute (after successful deployment), click the Open in Browser button for your environment to access the application.
4. Great! Your Django application is up and running in just a few minutes!
With our example, you’ll be redirected to the Django CMS admin panel, where you should log in with the default jelastic/jelastic credentials to start working.
As you can see, it’s quite easy to deploy Django-based applications with the Jelastic Python hosting. Try it yourself with free trial on one of the Jelastic service providers.