Skip to content

state-hiu/2C-Geonode-Templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State-Geonode-Templates

templates for 2C-GeoNode

The Plan:

This repo will hold the modified template and static files for the State GeoNode.

This repo is supposed to exist within the GeoNode application directory. For example, if the GeoNode application is named 'my_geonode', then this repository will be located within the 'my_geonode/my_geonode' directory.

This repo will also contain a script that will automatically load the template and static files into the right directories, and a script that will pull in modified files back into the repository before a commit.

directories to load: -static -templates

**gotchas:

  • watch out for permissions, after you copy the files from this repo inside the GeoNode app, you may need to adjust the permissions for GeoNode to be able to read them. I mistakanely did this and got a 'TemplateDoesNotExist' error
  • The static files may not copy over the existing files with the 'collectstatic' command. In this case you make need to manually clear out the /www/var/static folder first.

**extra note: When loading the templates I did 2 modifications to the settings file, which may have resulted in the proper templates and static files being loaded. They were adding this:

# URL that handles the static files like app media.
# Example: "http://media.lawrence.com"
STATIC_URL = os.getenv('STATIC_URL',"/static/")

as well as adding the 'debug toolbar' app to this code block:

if PROJECT_NAME not in INSTALLED_APPS:
    INSTALLED_APPS += (PROJECT_NAME,'debug_toolbar')

I also installed the debug toolbar:

pip install django-debug-toolbar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published