]> Johnzone git - djangotest.git/commitdiff
initial master
authorJohn Janus <john.janus@haw-hamburg.de>
Tue, 14 Oct 2014 07:54:38 +0000 (09:54 +0200)
committerJohn Janus <john.janus@haw-hamburg.de>
Tue, 14 Oct 2014 07:54:38 +0000 (09:54 +0200)
21 files changed:
.eric5project/dajngoTest.e4q [new file with mode: 0644]
.eric5project/dajngoTest.e4t [new file with mode: 0644]
__init__.py [new file with mode: 0644]
bugtracker/__init__.py [new file with mode: 0644]
bugtracker/__pycache__/__init__.cpython-33.pyc [new file with mode: 0644]
bugtracker/__pycache__/models.cpython-33.pyc [new file with mode: 0644]
bugtracker/admin.py [new file with mode: 0644]
bugtracker/models.py [new file with mode: 0644]
bugtracker/tests.py [new file with mode: 0644]
bugtracker/views.py [new file with mode: 0644]
dajngoTest.e4p [new file with mode: 0644]
db.sqlite3 [new file with mode: 0644]
djangeTest/__init__.py [new file with mode: 0644]
djangeTest/__pycache__/__init__.cpython-33.pyc [new file with mode: 0644]
djangeTest/__pycache__/settings.cpython-33.pyc [new file with mode: 0644]
djangeTest/__pycache__/urls.cpython-33.pyc [new file with mode: 0644]
djangeTest/__pycache__/wsgi.cpython-33.pyc [new file with mode: 0644]
djangeTest/settings.py [new file with mode: 0644]
djangeTest/urls.py [new file with mode: 0644]
djangeTest/wsgi.py [new file with mode: 0644]
manage.py [new file with mode: 0644]

diff --git a/.eric5project/dajngoTest.e4q b/.eric5project/dajngoTest.e4q
new file mode 100644 (file)
index 0000000..04d9b87
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE UserProject SYSTEM "UserProject-4.0.dtd">
+<!-- eric5 user project file for project dajngoTest -->
+<!-- Saved: 2014-10-13, 23:04:03 -->
+<!-- Copyright (C) 2014 John Janus, mail@johnzone.org -->
+<UserProject version="4.0"/>
diff --git a/.eric5project/dajngoTest.e4t b/.eric5project/dajngoTest.e4t
new file mode 100644 (file)
index 0000000..bb6d52a
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Tasks SYSTEM "Tasks-5.1.dtd">
+<!-- eric5 tasks file for project dajngoTest -->
+<!-- Saved: 2014-10-13, 23:04:03 -->
+<Tasks version="5.1">
+  <ProjectScanFilter></ProjectScanFilter>
+  <Task priority="1" completed="False" type="2">
+    <Summary>WARNING: keep the secret key used in production secret!</Summary>
+    <Description></Description>
+    <Created>2014-10-13, 22:41:01</Created>
+    <Resource>
+      <Filename>djangeTest/settings.py</Filename>
+      <Linenumber>19</Linenumber>
+    </Resource>
+  </Task>
+  <Task priority="1" completed="False" type="2">
+    <Summary>WARNING: don't run with debug turned on in production!</Summary>
+    <Description></Description>
+    <Created>2014-10-13, 22:41:01</Created>
+    <Resource>
+      <Filename>djangeTest/settings.py</Filename>
+      <Linenumber>22</Linenumber>
+    </Resource>
+  </Task>
+</Tasks>
diff --git a/__init__.py b/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/bugtracker/__init__.py b/bugtracker/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/bugtracker/__pycache__/__init__.cpython-33.pyc b/bugtracker/__pycache__/__init__.cpython-33.pyc
new file mode 100644 (file)
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 (file)
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 (file)
index 0000000..8c38f3f
--- /dev/null
@@ -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 (file)
index 0000000..af11af7
--- /dev/null
@@ -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 (file)
index 0000000..7ce503c
--- /dev/null
@@ -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 (file)
index 0000000..91ea44a
--- /dev/null
@@ -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 (file)
index 0000000..d422029
--- /dev/null
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Project SYSTEM "Project-5.1.dtd">
+<!-- eric5 project file for project dajngoTest -->
+<!-- Saved: 2014-10-13, 23:02:54 -->
+<!-- Copyright (C) 2014 John Janus, mail@johnzone.org -->
+<Project version="5.1">
+  <Language>en_US</Language>
+  <Hash>763c0c7f947fbf0ef4bdfd9e6c04b1dfc6f659cd</Hash>
+  <ProgLanguage mixed="0">Python3</ProgLanguage>
+  <ProjectType>Django</ProjectType>
+  <Description></Description>
+  <Version>0.1</Version>
+  <Author>John Janus</Author>
+  <Email>mail@johnzone.org</Email>
+  <TranslationPattern>locale/%language%/LC_MESSAGES/django.po</TranslationPattern>
+  <Sources>
+    <Source>manage.py</Source>
+    <Source>djangeTest/urls.py</Source>
+    <Source>djangeTest/__init__.py</Source>
+    <Source>djangeTest/settings.py</Source>
+    <Source>djangeTest/wsgi.py</Source>
+    <Source>__init__.py</Source>
+    <Source>bugtracker/tests.py</Source>
+    <Source>bugtracker/admin.py</Source>
+    <Source>bugtracker/__init__.py</Source>
+    <Source>bugtracker/models.py</Source>
+    <Source>bugtracker/views.py</Source>
+  </Sources>
+  <Forms/>
+  <Translations/>
+  <Resources/>
+  <Interfaces/>
+  <Others/>
+  <Vcs>
+    <VcsType>None</VcsType>
+  </Vcs>
+  <FiletypeAssociations>
+    <FiletypeAssociation pattern="*.htm" type="FORMS"/>
+    <FiletypeAssociation pattern="*.html" type="FORMS"/>
+    <FiletypeAssociation pattern="*.idl" type="INTERFACES"/>
+    <FiletypeAssociation pattern="*.js" type="SOURCES"/>
+    <FiletypeAssociation pattern="*.mo" type="TRANSLATIONS"/>
+    <FiletypeAssociation pattern="*.po" type="TRANSLATIONS"/>
+    <FiletypeAssociation pattern="*.pot" type="TRANSLATIONS"/>
+    <FiletypeAssociation pattern="*.py" type="SOURCES"/>
+    <FiletypeAssociation pattern="*.py3" type="SOURCES"/>
+    <FiletypeAssociation pattern="*.pyw" type="SOURCES"/>
+    <FiletypeAssociation pattern="*.pyw3" type="SOURCES"/>
+  </FiletypeAssociations>
+</Project>
diff --git a/db.sqlite3 b/db.sqlite3
new file mode 100644 (file)
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 (file)
index 0000000..e69de29
diff --git a/djangeTest/__pycache__/__init__.cpython-33.pyc b/djangeTest/__pycache__/__init__.cpython-33.pyc
new file mode 100644 (file)
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 (file)
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 (file)
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 (file)
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 (file)
index 0000000..f40854c
--- /dev/null
@@ -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 (file)
index 0000000..caac3d4
--- /dev/null
@@ -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 (file)
index 0000000..338cb9a
--- /dev/null
@@ -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 (file)
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)