Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- Files created (scripts/template files/etc)
- Change in database (for now, we'll change it later)
  • Loading branch information
nishi7409 committed Dec 27, 2020
1 parent a57aba2 commit 2c36683
Show file tree
Hide file tree
Showing 21 changed files with 207 additions and 1 deletion.
Binary file modified web_app/app/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file added web_app/app/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added web_app/app/__pycache__/views.cpython-36.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions web_app/app/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
]
17 changes: 17 additions & 0 deletions web_app/app/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
from django.http import HttpResponse, HttpRequest, HttpResponseServerError, HttpResponseRedirect
from django.shortcuts import render, redirect
from django.shortcuts import render
from django.conf import settings
from .models import *
from django import views
from django.core import mail
from django.utils import timezone
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth.decorators import login_required
from django.db.models import Q
from django import forms
import json

# Create your views here.
def index(request):
return render(request, 'index.html', {})
1 change: 1 addition & 0 deletions web_app/microservices/cal/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pass
1 change: 1 addition & 0 deletions web_app/microservices/google-cal/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pass
1 change: 1 addition & 0 deletions web_app/microservices/universities/rpi/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pass
1 change: 1 addition & 0 deletions web_app/microservices/universities/suny-buffalo/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pass
Binary file added web_app/static/img/temp_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions web_app/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% load static %}
<!doctype html>
<html>

<head>
<title>{% block title %}Home{% endblock %}</title>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<script src="https://kit.fontawesome.com/38a0fd0978.js" crossorigin="anonymous"></script>
</head>

<body>
<!-- Navigational Bar [START] -->
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="https://media.discordapp.net/attachments/771416611092692992/792773588099923968/unknown.png" width="112" height="28">
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-danger">
<strong>Sign up</strong>
</a>
<a class="button is-success">
Log in
</a>
</div>
</div>
</div>
</div>
</nav>
<!-- Navigational Bar [END] -->

<!-- Main Content [START] -->
<div class='page' style="width:100%;height:100%;margin:0;">
{% block content %}
{% endblock %}
</div>
<!-- Main Content [END] -->

<!-- Footer Bar [START] -->
<footer class="footer" style="width:100%;margin:0;">
<div class="content has-text-centered">
<p>
<strong>CourseCal</strong> was developed by <a href="https://github.com/nishi7409/CourseCal/">amazing people</a> <i style="color:tomato;" class="fas fa-heart"></i></a>
</p>
</div>
</footer>
<!-- Footer Bar [END] -->
</body>
</html>
30 changes: 30 additions & 0 deletions web_app/templates/dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% extends 'base.html' %}
{% load static %}

<!-- put main code here -->
{% block content %}

<div class="card">
<div class="card-content">
<p class="title">
"Life is a journey"
</p>
<p class="subtitle">
Dad
</p>
</div>
<footer class="card-footer">
<p class="card-footer-item">
<span>
View on <a href="https://twitter.com/codinghorror/status/506010907021828096">Twitter</a>
</span>
</p>
<p class="card-footer-item">
<span>
Share on <a href="#">Facebook</a>
</span>
</p>
</footer>
</div>

{% endblock %}
30 changes: 30 additions & 0 deletions web_app/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% extends 'base.html' %}
{% load static %}

<!-- put main code here -->
{% block content %}

<div class="card">
<div class="card-content">
<p class="title">
“Life is a journey”
</p>
<p class="subtitle">
Dad
</p>
</div>
<footer class="card-footer">
<p class="card-footer-item">
<span>
View on <a href="https://twitter.com/codinghorror/status/506010907021828096">Twitter</a>
</span>
</p>
<p class="card-footer-item">
<span>
Share on <a href="#">Facebook</a>
</span>
</p>
</footer>
</div>

{% endblock %}
30 changes: 30 additions & 0 deletions web_app/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% extends 'base.html' %}
{% load static %}

<!-- put main code here -->
{% block content %}

<div class="card">
<div class="card-content">
<p class="title">
"Life is a journey"
</p>
<p class="subtitle">
Dad
</p>
</div>
<footer class="card-footer">
<p class="card-footer-item">
<span>
View on <a href="https://twitter.com/codinghorror/status/506010907021828096">Twitter</a>
</span>
</p>
<p class="card-footer-item">
<span>
Share on <a href="#">Facebook</a>
</span>
</p>
</footer>
</div>

{% endblock %}
30 changes: 30 additions & 0 deletions web_app/templates/sign-up.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% extends 'base.html' %}
{% load static %}

<!-- put main code here -->
{% block content %}

<div class="card">
<div class="card-content">
<p class="title">
“There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.”
</p>
<p class="subtitle">
Jeff Atwood
</p>
</div>
<footer class="card-footer">
<p class="card-footer-item">
<span>
View on <a href="https://twitter.com/codinghorror/status/506010907021828096">Twitter</a>
</span>
</p>
<p class="card-footer-item">
<span>
Share on <a href="#">Facebook</a>
</span>
</p>
</footer>
</div>

{% endblock %}
Binary file added web_app/web_app/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file modified web_app/web_app/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file modified web_app/web_app/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added web_app/web_app/__pycache__/views.cpython-36.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion web_app/web_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
os.path.join(BASE_DIR, 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down
2 changes: 2 additions & 0 deletions web_app/web_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path

urlpatterns = [
path('', include('app.urls')),
path('admin/', admin.site.urls),
]

0 comments on commit 2c36683

Please sign in to comment.