Skip to content

Commit

Permalink
Sam F. added some contact form stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
armaangoel78 committed May 23, 2018
1 parent bfc37c7 commit 67b5d0f
Show file tree
Hide file tree
Showing 28 changed files with 65 additions and 645 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified ClubWebsite_django/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file modified ClubWebsite_django/__pycache__/urls.cpython-36.pyc
Binary file not shown.
392 changes: 0 additions & 392 deletions ClubWebsite_django/index.html

This file was deleted.

126 changes: 0 additions & 126 deletions ClubWebsite_django/projects.html

This file was deleted.

3 changes: 2 additions & 1 deletion ClubWebsite_django/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'website'
'website',
'form'
]

MIDDLEWARE = [
Expand Down
126 changes: 0 additions & 126 deletions ClubWebsite_django/team.html

This file was deleted.

1 change: 1 addition & 0 deletions ClubWebsite_django/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('website.urls')),
url(r'^form/', include('form.urls')),
]
Binary file modified db.sqlite3
Binary file not shown.
Empty file added form/__init__.py
Empty file.
Binary file added form/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added form/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file added form/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file added form/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file added form/__pycache__/views.cpython-36.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions form/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions form/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class FormConfig(AppConfig):
name = 'form'
26 changes: 26 additions & 0 deletions form/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-05-23 14:54
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Group',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('firstName', models.CharField(max_length=120)),
('lastName', models.CharField(max_length=120)),
('comment', models.CharField(max_length=960)),
('email', models.EmailField(max_length=254)),
],
),
]
Empty file added form/migrations/__init__.py
Empty file.
Binary file not shown.
Binary file added form/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
11 changes: 11 additions & 0 deletions form/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.db import models



class Group(models.Model):
objects = models.Manager()

firstName = models.CharField(max_length=120)
lastName = models.CharField(max_length=120)
comment = models.CharField(max_length=960)
email = models.EmailField()
3 changes: 3 additions & 0 deletions form/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
8 changes: 8 additions & 0 deletions form/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.conf.urls import url

from . import views

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

]
5 changes: 5 additions & 0 deletions form/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.shortcuts import render, redirect

# Create your views here.
def form(request):
return render(request, 'form.html', {})
Binary file added resources/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions resources/templates/form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>form</h1>
Binary file modified static/.DS_Store
Binary file not shown.

0 comments on commit 67b5d0f

Please sign in to comment.