Explorar el Código

add startpage

master
erichhasl hace 8 años
padre
commit
2fd2d663ad
Se han modificado 9 ficheros con 30 adiciones y 0 borrados
  1. +2
    -0
      .gitignore
  2. +1
    -0
      web_dev/sas_web/sas_web/urls.py
  3. +0
    -0
      web_dev/sas_web/startpage/__init__.py
  4. +3
    -0
      web_dev/sas_web/startpage/admin.py
  5. +5
    -0
      web_dev/sas_web/startpage/apps.py
  6. +3
    -0
      web_dev/sas_web/startpage/models.py
  7. +3
    -0
      web_dev/sas_web/startpage/tests.py
  8. +7
    -0
      web_dev/sas_web/startpage/urls.py
  9. +6
    -0
      web_dev/sas_web/startpage/views.py

+ 2
- 0
.gitignore Ver fichero

@@ -12,3 +12,5 @@ test.pdf

my.cnf
venv

*/*/*/migrations/*

+ 1
- 0
web_dev/sas_web/sas_web/urls.py Ver fichero

@@ -17,5 +17,6 @@ from django.conf.urls import include, url
from django.contrib import admin

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

+ 0
- 0
web_dev/sas_web/startpage/__init__.py Ver fichero


+ 3
- 0
web_dev/sas_web/startpage/admin.py Ver fichero

@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.

+ 5
- 0
web_dev/sas_web/startpage/apps.py Ver fichero

@@ -0,0 +1,5 @@
from django.apps import AppConfig


class StartpageConfig(AppConfig):
name = 'startpage'

+ 3
- 0
web_dev/sas_web/startpage/models.py Ver fichero

@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.

+ 3
- 0
web_dev/sas_web/startpage/tests.py Ver fichero

@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.

+ 7
- 0
web_dev/sas_web/startpage/urls.py Ver fichero

@@ -0,0 +1,7 @@
from django.conf.urls import url

from . import views

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

+ 6
- 0
web_dev/sas_web/startpage/views.py Ver fichero

@@ -0,0 +1,6 @@
from django.http import HttpResponse


# Create your views here.
def index(request):
return HttpResponse("Hey!")

Cargando…
Cancelar
Guardar