djangoprojekt
This commit is contained in:
parent
de8f10e8dd
commit
aff5d814d0
0
news1/posts/__init__.py
Normal file
0
news1/posts/__init__.py
Normal file
3
news1/posts/admin.py
Normal file
3
news1/posts/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
5
news1/posts/apps.py
Normal file
5
news1/posts/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PostsConfig(AppConfig):
|
||||
name = 'posts'
|
0
news1/posts/migrations/__init__.py
Normal file
0
news1/posts/migrations/__init__.py
Normal file
3
news1/posts/models.py
Normal file
3
news1/posts/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
news1/posts/tests.py
Normal file
3
news1/posts/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
6
news1/posts/urls.py
Normal file
6
news1/posts/urls.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
|
||||
from.import views
|
||||
urlpatterns =[
|
||||
path('', views.index, name='index'),
|
||||
]
|
5
news1/posts/views.py
Normal file
5
news1/posts/views.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.shortcuts import HttpResponse
|
||||
|
||||
# Create your views here.
|
||||
def index(request):
|
||||
return HttpResponse("Index-Seite der posts-Applikation")
|
Loading…
x
Reference in New Issue
Block a user