Browse Source

djangoprojekt

master
parent
commit
e6b64e7877

+ 4
- 1
news1/.idea/.gitignore View File

@@ -1,3 +1,6 @@

# Default ignored files
/workspace.xml
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

+ 22
- 0
news1/.idea/dataSources.xml View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="db" uuid="d9ef4968-0bb1-40c4-8bac-a12a0fb7e9f1">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:$PROJECT_DIR$/db.sqlite3</jdbc-url>
<driver-properties>
<property name="enable_load_extension" value="true" />
</driver-properties>
<libraries>
<library>
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.25.1/sqlite-jdbc-3.25.1.jar</url>
</library>
<library>
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.25.1/license.txt</url>
</library>
</libraries>
</data-source>
</component>
</project>

BIN
news1/db.sqlite3 View File


+ 5
- 1
news1/posts/models.py View File

@@ -1,3 +1,7 @@
from django.db import models
class Notice(models.Model):
notice_title = models.CharField(max_length=80)
notice_text = models.CharField(max_length=400)
pub_start = models.DateTimeField()
pub_end = models.DateTimeField()

# Create your models here.

+ 1
- 1
news1/posts/templates/posts/index.html View File

@@ -8,7 +8,7 @@
<p class="lead">Hier ist meine Internet Seite Aufgrung mein Projektarbeit für der Winter Semester 2019.</p>
<hr class="my-4">
<p>Und der Bericht wird am ende der Semester abgegeben werden und danach vorgetragen.</p>
<a class="btn btn-primary btn-lg" href="#" role="button">Return</a>
<a class="btn btn-primary btn-lg" href="http://www.google.de" role="button">Weiter</a>
</div>
<h1>Index der posts Applikation</h1>
{% endblock %}

+ 7
- 0
news1/posts/views.py View File

@@ -4,3 +4,10 @@ from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'posts/index.html')








+ 1
- 1
news1/templates/base.html View File

@@ -38,7 +38,7 @@
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="http://www.kavo.com">Kavo</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>

Loading…
Cancel
Save