Skip to content

Commit

Permalink
adiciona facade got
Browse files Browse the repository at this point in the history
Co-authored-by: WillAllmeida <will.allmeida@gmail.com>
Co-authored-by: aquiles23 <jjoseaquiless@gmail.com>
Co-authored-by: jpmota2208 <jpmota.unb@gmail.com>
Co-authored-by: igorveludo <velvet.guimaraes@gmail.com>
  • Loading branch information
5 people committed May 27, 2019
1 parent 26be135 commit f327db5
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/artigo/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.conf.urls import url
from artigo import views

#templates tagging
#app_name = 'principal_app'

urlpatterns = [
url(r'usuario_artigo/$',views.usuario_artigo,name='usuario_artigo'),
]
3 changes: 2 additions & 1 deletion src/artigo/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.shortcuts import render

# Create your views here.
def usuario_artigo(request):
return render(request, 'usuario_artigo.html')
9 changes: 9 additions & 0 deletions src/principal/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.conf.urls import url
from principal import views

#templates tagging
#app_name = 'principal_app'

urlpatterns = [
url(r'^$',views.index,name='index'),
]
5 changes: 5 additions & 0 deletions src/templates/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block title %}fheihfoehef{% endblock %}
{% block body %}
<h1>gofzao da massa</h1>
{% endblock %}
5 changes: 5 additions & 0 deletions src/templates/usuario_artigo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block title %}fheihfoehef{% endblock %}
{% block body %}
<h1>artigo da massa</h1>
{% endblock %}
2 changes: 1 addition & 1 deletion src/unbind/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

#TEMPLATES_DIR = os.path.join(BASE_DIR,'templates')

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
Expand Down
9 changes: 7 additions & 2 deletions src/unbind/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
from django.contrib import admin
from django.conf.urls import include, url
from django.urls import include, path

from usuario.views import register
from principal.views import index
from artigo.views import usuario_artigo

urlpatterns = [
# path('admin/', admin.site.urls),
url(r'^admin/', admin.site.urls),
path('', index, name='index'),
url(r'^$',include('principal.urls')),
url(r'^usuario/',include('usuario.urls')),
url(r'^artigo/',include('artigo.urls')),

#path('', index, name='index'),
# path('usuario/', include('usuario.urls')),
]
9 changes: 9 additions & 0 deletions src/usuario/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.conf.urls import url
from usuario import views

#templates tagging
#app_name = 'principal_app'

urlpatterns = [
url(r'register/$',views.register,name='register'),
]
3 changes: 2 additions & 1 deletion src/usuario/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.shortcuts import render

# Create your views here.
def register(request):
return render(request, 'register.html')

0 comments on commit f327db5

Please sign in to comment.