Browse Source

djp

master
Janko Hartwig 6 years ago
parent
commit
287d3c78f4

+ 17
- 0
.idea/MEIM.iml View File

<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="dghj" />
<orderEntry type="module" module-name="untitled" />
<orderEntry type="module" module-name="untitled1" />
<orderEntry type="module" module-name="untitled1" />
<orderEntry type="module" module-name="django_project" />
</component>
<component name="TestRunnerService">
<option name="projectConfiguration" value="py.test" />
<option name="PROJECT_TEST_RUNNER" value="py.test" />
</component>
</module>

+ 4
- 0
.idea/misc.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (untitled)" project-jdk-type="Python SDK" />
</project>

+ 12
- 0
.idea/modules.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/MEIM.iml" filepath="$PROJECT_DIR$/.idea/MEIM.iml" />
<module fileurl="file://$PROJECT_DIR$/../dghj/.idea/dghj.iml" filepath="$PROJECT_DIR$/../dghj/.idea/dghj.iml" />
<module fileurl="file://$PROJECT_DIR$/django_project/.idea/django_project.iml" filepath="$PROJECT_DIR$/django_project/.idea/django_project.iml" />
<module fileurl="file://$PROJECT_DIR$/../untitled/.idea/untitled.iml" filepath="$PROJECT_DIR$/../untitled/.idea/untitled.iml" />
<module fileurl="file://$PROJECT_DIR$/../prakt3_django/.idea/untitled1.iml" filepath="$PROJECT_DIR$/../prakt3_django/.idea/untitled1.iml" />
</modules>
</component>
</project>

+ 31
- 0
djp/.idea/djp.iml View File

<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="FacetManager">
<facet type="django" name="Django">
<configuration>
<option name="rootFolder" value="$MODULE_DIR$" />
<option name="settingsModule" value="djp/settings.py" />
<option name="manageScript" value="$MODULE_DIR$/manage.py" />
<option name="environment" value="&lt;map/&gt;" />
<option name="doNotUseTestRunner" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TemplatesService">
<option name="TEMPLATE_CONFIGURATION" value="Django" />
<option name="TEMPLATE_FOLDERS">
<list>
<option value="$MODULE_DIR$/../djp\templates" />
</list>
</option>
</component>
<component name="TestRunnerService">
<option name="projectConfiguration" value="py.test" />
<option name="PROJECT_TEST_RUNNER" value="py.test" />
</component>
</module>

+ 4
- 0
djp/.idea/misc.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (untitled)" project-jdk-type="Python SDK" />
</project>

+ 8
- 0
djp/.idea/modules.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/djp.iml" filepath="$PROJECT_DIR$/.idea/djp.iml" />
</modules>
</component>
</project>

+ 6
- 0
djp/.idea/vcs.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

+ 0
- 0
djp/db.sqlite3 View File


+ 3
- 2
djp/djp/urls.py View File

1. Import the include() function: from django.urls import include, path 1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.conf.urls import url, include
from django.contrib import admin from django.contrib import admin
from django.urls import path


urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls),
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
] ]

+ 0
- 0
djp/polls/__init__.py View File


+ 3
- 0
djp/polls/admin.py View File

from django.contrib import admin

# Register your models here.

+ 5
- 0
djp/polls/apps.py View File

from django.apps import AppConfig


class PollsConfig(AppConfig):
name = 'polls'

+ 0
- 0
djp/polls/migrations/__init__.py View File


+ 3
- 0
djp/polls/models.py View File

from django.db import models

# Create your models here.

+ 3
- 0
djp/polls/tests.py View File

from django.test import TestCase

# Create your tests here.

+ 6
- 0
djp/polls/urls.py View File

from django.conf.urls import url

from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]

+ 6
- 0
djp/polls/views.py View File

from django.http import HttpResponse

def index(request):
return HttpResponse('lalala')

# Create your views here.

Loading…
Cancel
Save