django_website package¶
Subpackages¶
Submodules¶
django_website.LogGenerator module¶
django_website.admin module¶
django_website.geofunctions module¶
django_website.load module¶
This file exemplifies the manual insertion of geographical data into INACITY backend’s database.
The data to be inserted refers to bus stops in the city of São Paulo-Brazil.
This data comes from the GeoSampa GIS and is contained in a file named: SAD69-96_SHP_pontoonibus_point.shp
-
django_website.load.
run
(verbose=True)[source]¶ Convenience function used to insert into the database data from the GeoSampa bus stops.
Notice that the GeoSampa Bus Stops file has the EPSG:29183 projection as its Source Reference System (SRS).
- verbose=TrueBoolean
Displays messages related to the progress of the insertion.
none
django_website.models module¶
-
class
django_website.models.
FilterResult
(id, geoImage, mask, density, presence)[source]¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
density
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
geoImage
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
geoImage_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
mask
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
presence
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
django_website.models.
GeoImage
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
featureReference - Some unique string used as an Id imageURL - Some path to the actual urban image parametersJSON - Custom field for general purposes
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
featureReference
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
filterresult_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
imageURL
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
parametersJSON
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
django_website.models.
Session
(id, user, sessionName, uimodelJSON)[source]¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
sessionName
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
uimodelJSON
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
user
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
user_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
django_website.settings module¶
Django settings for django_website project.
Generated by ‘django-admin startproject’ using Django 1.9.1.
For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/
django_website.settings_old module¶
Django settings for django_website project.
Generated by ‘django-admin startproject’ using Django 1.9.1.
For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/
django_website.settings_secret module¶
You can copy this template into a file named “settings_secret.py” and fill out with your passwords/keys. It’s strongly advised to keep the filled file out of public access, in a secure place.
django_website.settings_secret_template module¶
You can copy this template into a file named “settings_secret.py” and fill out with your passwords/keys. It’s strongly advised to keep the filled file out of public access, in a secure place.
django_website.urls module¶
Definition of urls for django_website.
-
django_website.urls.
path
(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)¶
-
django_website.urls.
re_path
(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RegexPattern'>)¶
django_website.views module¶
django_website.wsgi module¶
WSGI config for django_website project.
This module contains the WSGI application used by Django’s development server
and any production WSGI deployments. It should expose a module-level variable
named application
. Django’s runserver
and runfcgi
commands discover
this application via the WSGI_APPLICATION
setting.
Usually you will have the standard Django WSGI application here, but it also might make sense to replace the whole Django WSGI application with a custom one that later delegates to the Django one. For example, you could introduce WSGI middleware here, or combine a Django application with an application of another framework.