-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teile der Readme in die Dokumentation übernommen
- Loading branch information
Showing
5 changed files
with
115 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Konfiguration | ||
============= | ||
|
||
Es ist möglich Demostat über Variablen in `mysite/settings.py` zu konfigurieren. | ||
|
||
Alle Angaben sind Optional. Entweder haben werden sie durch Vorbelegungen ersetzt oder einfach nicht angzeigt. | ||
|
||
String `SITE_TITLE` | ||
------------------- | ||
|
||
Wird als Titel im Header und der Navigation genutzt. | ||
|
||
:: | ||
|
||
SITE_TITLE = "Demos in Erfurt" | ||
|
||
|
||
Url `SITE_IMPRINT_URL` | ||
---------------------- | ||
|
||
Url zum Impressum, wird im Footer angezeigt. | ||
|
||
Url `SITE_PRIVACY_URL` | ||
---------------------- | ||
|
||
Url zur Datenschutzerklärung, wird im Footer angezeigt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
Installieren | ||
============ | ||
|
||
Eigenständige Entwicklungsversion | ||
--------------------------------- | ||
|
||
Demostat Entwicklungsversion herunterladen: | ||
|
||
:: | ||
|
||
git clone -b dev https://github.com/demostat/demostat.git | ||
|
||
|
||
Abhängigkeiten installieren: | ||
|
||
:: | ||
|
||
pip3 install -r demostat/requirements.txt | ||
|
||
|
||
Neues Django Projekt starten: | ||
|
||
:: | ||
|
||
django-admin startproject mysite | ||
cd mysite | ||
|
||
|
||
Demostat einbinden: | ||
|
||
:: | ||
|
||
ln -s ../demostat/demostat | ||
|
||
|
||
Füge in `mysite/settings.py` Demostat zu `INSTALLED_APPS` hinzu: | ||
|
||
:: | ||
|
||
INSTALLED_APPS = [ | ||
'demostat', | ||
... | ||
] | ||
|
||
|
||
Beachte, dass Django-Admin ebenfalls geladen wird. (In der Standartinstallation sollte das schon geschehen sein) | ||
|
||
Binde in `mysite/urls.py` Demostat-Urls ein: | ||
|
||
:: | ||
|
||
from django.urls import include | ||
|
||
urlpatterns = [ | ||
path('', include('demostat.urls')), | ||
... | ||
] | ||
|
||
|
||
Datenbank-Migrieren: | ||
|
||
:: | ||
|
||
python3 manage.py migrate | ||
|
||
|
||
Erstelle Administrationsaccount: | ||
|
||
:: | ||
|
||
python3 manage.py createsuperuser | ||
|
||
|
||
Starte Webserver: | ||
|
||
:: | ||
|
||
python3 manage.py runserver | ||
|
||
|
||
Website ist erreichbar über: | ||
http://127.0.0.1:8000/ | ||
|
||
Administration über: | ||
http://127.0.0.1:8000/admin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ Willkommen zu Demostat! | |
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
deploy | ||
conf | ||
|
||
Über | ||
==== | ||
|
||
|