Over a million developers have joined DZone.

Installing DjangoCMS on dotCLoud in 12 Easy Steps

DZone 's Guide to

Installing DjangoCMS on dotCLoud in 12 Easy Steps

· Web Dev Zone ·
Free Resource

Do you want to use Django-cms on dotcloud but don't know where to start? All you need to do is follow these 12 easy steps, they will get you on your way.

  1. Create a place to store your project
        $ mkdir -p ~/projects
  2. Go into the projects directory
        $ cd ~/projects
  3. Clone git repo from github, requires git client.
        $ git clone git://github.com/kencochrane/django-cms-dotcloud.git
  4. Go into the new project directory
        $ cd django-cms-dotcloud
  5. Creating the virtualenv (using virtualenvwrapper, virtualenv, and pip)
        $ mkvirtualenv --no-site-packages --distribute django-cms-dotcloud
  6. Installing the dotCloud client http://docs.dotcloud.com/firststeps/install/ (here are the steps for Linux and Mac OSX)
        $ sudo pip install -U dotcloud
  7. Sign up for a doCloud account https://www.dotcloud.com/accounts/register/ if you haven't already.
  8. The first time you use the dotCloud account you will need to add your API key.  So type dotCloud and follow the steps.  You can find your API key at http://www.dotcloud.com/account/settings
    $ dotcloud

  9. Create your dotCloud application
        $ dotcloud create mycmsapp
  10. Push your code into dotCloud
    $ dotcloud push mycmsapp
  11. Find your application URL
        $ dotcloud url mycmsapp
  12. Open the URL in your browser and start using DjagoCMS on dotCloud
  13. Optional: If you don't like the URL they gave you, you can use your custom domain.  Assuming your applciation was ramen.www and you domian was www.example.com you would do the following:
        $ dotcloud alias add ramen.www www.example.com

Once you get comfortable with how things work, you could add more plug-ins, create your own custom templates and then change your DEBUG setting to False. So go ahead fork my project on github and get started.

After you make changes to your local project directory, you can test it on the server by running the dotcloud push command again.

For more info about dotcloud and django-cms and what you can do with with it. check out their docs


Source: http://kencochrane.net/blog/2011/12/installing-djangocms-dotcloud-12-easy-steps/


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}