vkk
This module contains the Django application of this project.
This application is broken up into several submodules. While some, such as
generic
, system
, templatetags
and users
, offer functionality used
throughout the project, others have a more narrow scope and thus follow
roughly the websites offered paths for navigation.
This project is based almost exclusively on and assumes some basic knowledge of the Django framework. For further reading, please always consult the Django documentation first.
1""" 2This module contains the Django application of this project. 3 4This application is broken up into several submodules. While some, such as 5`generic`, `system`, `templatetags` and `users`, offer functionality used 6throughout the project, others have a more narrow scope and thus follow 7roughly the websites offered paths for navigation. 8 9This project is based almost exclusively on and assumes some basic knowledge 10of the Django framework. For further reading, please always consult the 11[Django documentation](https://docs.djangoproject.com/) first. 12""" 13 14import os 15if os.environ.get('DOC_GEN'): 16 import django 17 18 os.environ['DJANGO_SETTINGS_MODULE'] = 'vkkdjango.settings' 19 os.environ['DJANGO_ALLOWED_HOSTS'] = 'localhost 127.0.0.1 [::1]' 20 os.environ['EMAIL_PORT'] = '587' 21 os.environ['PYTHONPATH'] = "../" 22 23 django.setup()