From: John Janus Date: Tue, 14 Oct 2014 07:54:38 +0000 (+0200) Subject: initial X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=HEAD;p=djangotest.git initial --- f52dffcafeff896f9d8cda076bc59d00d7356063 diff --git a/.eric5project/dajngoTest.e4q b/.eric5project/dajngoTest.e4q new file mode 100644 index 0000000..04d9b87 --- /dev/null +++ b/.eric5project/dajngoTest.e4q @@ -0,0 +1,6 @@ + + + + + + diff --git a/.eric5project/dajngoTest.e4t b/.eric5project/dajngoTest.e4t new file mode 100644 index 0000000..bb6d52a --- /dev/null +++ b/.eric5project/dajngoTest.e4t @@ -0,0 +1,25 @@ + + + + + + + + WARNING: keep the secret key used in production secret! + + 2014-10-13, 22:41:01 + + djangeTest/settings.py + 19 + + + + WARNING: don't run with debug turned on in production! + + 2014-10-13, 22:41:01 + + djangeTest/settings.py + 22 + + + diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bugtracker/__init__.py b/bugtracker/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bugtracker/__pycache__/__init__.cpython-33.pyc b/bugtracker/__pycache__/__init__.cpython-33.pyc new file mode 100644 index 0000000..cfc187a Binary files /dev/null and b/bugtracker/__pycache__/__init__.cpython-33.pyc differ diff --git a/bugtracker/__pycache__/models.cpython-33.pyc b/bugtracker/__pycache__/models.cpython-33.pyc new file mode 100644 index 0000000..94dc61e Binary files /dev/null and b/bugtracker/__pycache__/models.cpython-33.pyc differ diff --git a/bugtracker/admin.py b/bugtracker/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/bugtracker/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/bugtracker/models.py b/bugtracker/models.py new file mode 100644 index 0000000..af11af7 --- /dev/null +++ b/bugtracker/models.py @@ -0,0 +1,23 @@ +from django.db import models + +# Create your models here. +class Developer(models.Model): + name = models.CharField(max_length=40) + location = models.CharField(max_length=20) + + def __str__(self): + return self.name + + +class Bug(models.Model): + name = models.CharField(max_length=40) + description = models.CharField(max_length=1000) + filedBy = models.CharField(max_length=40) + assignedDeveloper = models.ForeignKey(Developer) + dateFiled = models.DateTimeField('date filed') + dateStatusChanged = models.DateTimeField('date fixed') + status = models.IntegerField(default=0) + + def __str__(self): + return self.name + diff --git a/bugtracker/tests.py b/bugtracker/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/bugtracker/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/bugtracker/views.py b/bugtracker/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/bugtracker/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/dajngoTest.e4p b/dajngoTest.e4p new file mode 100644 index 0000000..d422029 --- /dev/null +++ b/dajngoTest.e4p @@ -0,0 +1,50 @@ + + + + + + + en_US + 763c0c7f947fbf0ef4bdfd9e6c04b1dfc6f659cd + Python3 + Django + + 0.1 + John Janus + mail@johnzone.org + locale/%language%/LC_MESSAGES/django.po + + manage.py + djangeTest/urls.py + djangeTest/__init__.py + djangeTest/settings.py + djangeTest/wsgi.py + __init__.py + bugtracker/tests.py + bugtracker/admin.py + bugtracker/__init__.py + bugtracker/models.py + bugtracker/views.py + + + + + + + + None + + + + + + + + + + + + + + + diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000..0fea8cb Binary files /dev/null and b/db.sqlite3 differ diff --git a/djangeTest/__init__.py b/djangeTest/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/djangeTest/__pycache__/__init__.cpython-33.pyc b/djangeTest/__pycache__/__init__.cpython-33.pyc new file mode 100644 index 0000000..6097d9e Binary files /dev/null and b/djangeTest/__pycache__/__init__.cpython-33.pyc differ diff --git a/djangeTest/__pycache__/settings.cpython-33.pyc b/djangeTest/__pycache__/settings.cpython-33.pyc new file mode 100644 index 0000000..b02ba58 Binary files /dev/null and b/djangeTest/__pycache__/settings.cpython-33.pyc differ diff --git a/djangeTest/__pycache__/urls.cpython-33.pyc b/djangeTest/__pycache__/urls.cpython-33.pyc new file mode 100644 index 0000000..fc60014 Binary files /dev/null and b/djangeTest/__pycache__/urls.cpython-33.pyc differ diff --git a/djangeTest/__pycache__/wsgi.cpython-33.pyc b/djangeTest/__pycache__/wsgi.cpython-33.pyc new file mode 100644 index 0000000..3aafb48 Binary files /dev/null and b/djangeTest/__pycache__/wsgi.cpython-33.pyc differ diff --git a/djangeTest/settings.py b/djangeTest/settings.py new file mode 100644 index 0000000..f40854c --- /dev/null +++ b/djangeTest/settings.py @@ -0,0 +1,83 @@ +""" +Django settings for djangeTest project. + +For more information on this file, see +https://docs.djangoproject.com/en/1.6/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.6/ref/settings/ +""" + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +import os +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'b$d1n-z_a(r&!kh=2d7%eb=z$u74li9y9$o$+#2$9mhn)mirq)' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +TEMPLATE_DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = ( + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'bugtracker', +) + +MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +) + +ROOT_URLCONF = 'djangeTest.urls' + +WSGI_APPLICATION = 'djangeTest.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.6/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + } +} + +# Internationalization +# https://docs.djangoproject.com/en/1.6/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'Europe/Berlin' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.6/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/djangeTest/urls.py b/djangeTest/urls.py new file mode 100644 index 0000000..caac3d4 --- /dev/null +++ b/djangeTest/urls.py @@ -0,0 +1,12 @@ +from django.conf.urls import patterns, include, url + +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + # Examples: + # url(r'^$', 'djangeTest.views.home', name='home'), + # url(r'^blog/', include('blog.urls')), + + url(r'^admin/', include(admin.site.urls)), +) diff --git a/djangeTest/wsgi.py b/djangeTest/wsgi.py new file mode 100644 index 0000000..338cb9a --- /dev/null +++ b/djangeTest/wsgi.py @@ -0,0 +1,14 @@ +""" +WSGI config for djangeTest project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ +""" + +import os +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangeTest.settings") + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..d3a251e --- /dev/null +++ b/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangeTest.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv)