Skip to content

Instantly share code, notes, and snippets.

View t-book's full-sized avatar
💭
reading

Toni t-book

💭
reading
View GitHub Profile
Results for "$('"
/Users/ts/Dropbox (Privat)/code/github/geonode/geonode/templates/500.html:
318: var autocomplete = $('#search_input').yourlabsAutocomplete({
324: appendAutocomplete: $('#search_input')
326: $('#search_input').bind('selectChoice', function(e, choice, autocomplete) {
328: $('#search_input').val(choice[0].innerHTML);
329: $('#search').submit();
@t-book
t-book / startup.sh
Created September 17, 2019 09:25
geonode dev startup
#!/bin/sh
export DEBUG_STATIC=True
export EMAIL_ENABLE=True
export EMAIL_USE_TLS=True
export EMAIL_HOST=imap.googlemail.com
export EMAIL_PORT=587
export EMAIL_HOST_USER=
export EMAIL_HOST_PASSWORD=
export DEFAULT_FROM_EMAIL=
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<skos:ConceptScheme xmlns:skos="http://www.w3.org/2004/02/skos/core#" rdf:about="http://inspire.ec.europa.eu/theme">
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">GEMET - INSPIRE themes, version 1.0</dc:title>
<dcterms:issued xmlns:dcterms="http://purl.org/dc/terms/">2018-05-23T10:25:56</dcterms:issued>
<dcterms:modified xmlns:dcterms="http://purl.org/dc/terms/">2018-05-23T10:25:56</dcterms:modified>
</skos:ConceptScheme>
<skos:Concept xmlns:skos="http://www.w3.org/2004/02/skos/core#" rdf:about="http://inspire.ec.europa.eu/theme/ad">
<skos:prefLabel xml:lang="en">Addresses</skos:prefLabel>
<skos:prefLabel xml:lang="de">Adressen</skos:prefLabel>

Add custom fields to Registration form

We assume the use of geonode-project. For adding new fields to geonodes registration form we create a custom Signup form as part of our geonode project. In this example we're adding first_name and last_name to the registration form. To do so we're creating a forms.py in our project folder

forms.py

from django import forms
?php
/**
* This sample lists videos that are associated with a particular keyword and are in the radius of
* particular geographic coordinates by:
*
* 1. Searching videos with "youtube.search.list" method and setting "type", "q", "location" and
* "locationRadius" parameters.
* 2. Retrieving location details for each video with "youtube.videos.list" method and setting
* "id" parameter to comma separated list of video IDs in search result.
*