Setup steps


These instructions are only valid if you’ve installed GeoNode systemwide using apt-get!!

If you are working remotely, you should first connect to the machine that has your GeoNode installation. You will need to perform the following steps in a directory where you intend to keep your newly created project.

$ django-admin startproject my_geonode --template= -epy,rst
$ sudo pip install -e my_geonode


You should NOT use the name geonode for your project as it will conflict with your default geonode package name.

These commands create a new template based on the geonode example project.

Rename the to and edit it’s content by setting the SITEURL and SITENAME. This file will be your main settings file for your project. It inherits all the settings from the original one plus you can override the ones that you need.


In order for the edits to the file to take effect, you have to restart apache.

Edit the file /etc/apache2/sites-available/geonode and change the following directive from:

WSGIScriptAlias / /var/www/geonode/wsgi/geonode.wsgi


WSGIScriptAlias / /path/to/my_geonode/my_geonode/

Then restart apache

$ sudo service apache2 restart

Now you can edit the templates in my_geonode/templates, the css and images to match your needs like shown in <Theming your Geonode>_. #Link!


After going through the theming guide you’ll have to return to this site to execute one more command in order to finish the theming!

When you’ve done the changes, run the following command in the my_geonode folder:

$ python collectstatic

And now you should see all the changes you’ve made to your GeoNode.

Source code revision control

It is recommended that you immediately put your new project under source code revision control. The GeoNode development team uses Git and GitHub and recommends that you do the same. If you do not already have a GitHub account, you can easily set one up. A full review of Git and distributed source code revision control systems is beyond the scope of this tutorial, but you may find the Git Book useful if you are not already familiar with these concepts.

  1. Create a new repository in GitHub. You should use the GitHub user interface to create a new repository for your new project.


    Creating a new GitHub Repository From GitHub’s Homepage


    Specifying new GitHub Repository Parameters


    Your new Empty GitHub Repository

  2. Initialize your own repository in the my_geonode folder:

    $ git init
  3. Add the remote repository reference to your local git configuration:

    $ git remote add
  4. Add your project files to the repository:

    $ git add .
  5. Commit your changes:

    $ git commit -am "Initial commit"
  6. Push to the remote repository:

    $ git push origin master

Project structure

Your GeoNode project will now be structured as depicted below:

|-- README.rst
|-- my_geonode
|   |--
|   |--
|   |--
|   |-- static
|   |   |-- README
|   |   |-- css
|   |   |   |-- site_base.css
|   |   |-- img
|   |   |   |-- README
|   |   |-- js
|   |       |-- README
|   |-- templates
|   |   |-- site_base.html
|   |   |-- site_index.html
|   |--
|   |--

You can also view your project on GitHub.


Viewing your project on GitHub

Each of the key files in your project are described below. is the main entry point for managing your project during development. It allows running all the management commands from each app in your project. When run with no arguments, it will list all of the management commands. is the primary settings file for your project. It imports the settings from the system geonode and adds the local paths. It is quite common to put all sensible defaults here and keep deployment specific configuration in the file. All of the possible settings values and their meanings are detailed in the Django documentation.

A common paradigm for handing ‘local settings’ (and in other areas where some python module may not be available) is:

from local_settings import *

This is not required and there are many other solutions to handling varying deployment configuration requirements. is where your application specific URL routes go. Additionally, any overrides can be placed here, too.

This is a generated file to make deploying your project to a WSGI server easier. Unless there is very specific configuration you need, can be left alone.

There are several packaging options in python but a common approach is to place your project metadata (version, author, etc.) and dependencies in

This is a large topic and not necessary to understand while getting started with GeoNode development but will be important for larger projects and to make development easier for other developers.



The static directory will contain your fixed resources: css, html, images, etc. Everything in this directory will be copied to the final media directory (along with the static resources from other apps in your project).


All of your projects templates go in the templates directory. While no organization is required for your project specific templates, when overriding or replacing a template from another app, the path must be the same as the template to be replaced.

Staying in sync with mainline GeoNode

One of the primary reasons to set up your own GeoNode project using this method is so that you can stay in sync with the mainline GeoNode as the core development team makes new releases. Your own project should not be adversely affected by these changes, but you will receive bug fixes and other improvements by staying in sync.

Upgrade GeoNode:

$ apt-get update
$ apt-get install geonode

Verify that your new project works with the upgraded GeoNode:

$ python runserver

Navigate to http://localhost:8000.