Remove unused contact app
This commit is contained in:
parent
06d138343e
commit
1e6359489e
@ -1,10 +0,0 @@
|
|||||||
from crispy_forms.helper import FormHelper
|
|
||||||
from crispy_forms.layout import Submit
|
|
||||||
from envelope.forms import ContactForm
|
|
||||||
|
|
||||||
|
|
||||||
class ContactForm(ContactForm):
|
|
||||||
def __init__(self, *args, **kwargs):
|
|
||||||
super(ContactForm, self).__init__(*args, **kwargs)
|
|
||||||
self.helper = FormHelper()
|
|
||||||
self.helper.add_input(Submit("submit", "Submit", css_class="btn-lg pull-right"))
|
|
@ -1,21 +0,0 @@
|
|||||||
{% extends "base_page.html" %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
{% load envelope_tags %}
|
|
||||||
|
|
||||||
{% block page_name %}Contact{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="container">
|
|
||||||
<div class="page-lead">
|
|
||||||
<h2>Contact</h2>
|
|
||||||
<p class="lead">Send us your thoughts and feedback.</p>
|
|
||||||
</div>
|
|
||||||
{% bootstrap_messages %}
|
|
||||||
<form action="{% url 'contact' %}" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% antispam_fields %}
|
|
||||||
{% crispy form %}
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
@ -1,2 +0,0 @@
|
|||||||
# from django.test import TestCase
|
|
||||||
# Create your tests here.
|
|
@ -1,5 +0,0 @@
|
|||||||
from django.conf.urls import url
|
|
||||||
|
|
||||||
from . import views
|
|
||||||
|
|
||||||
urlpatterns = [url(r"^$", views.ContactView.as_view(), name="contact")]
|
|
@ -1,11 +0,0 @@
|
|||||||
from braces.views import FormMessagesMixin
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
|
||||||
from envelope.views import ContactView
|
|
||||||
|
|
||||||
from .forms import ContactForm
|
|
||||||
|
|
||||||
|
|
||||||
class ContactView(FormMessagesMixin, ContactView):
|
|
||||||
form_invalid_message = _(u"There was an error in the contact form.")
|
|
||||||
form_valid_message = _(u"Thanks for your message.")
|
|
||||||
form_class = ContactForm
|
|
@ -39,7 +39,6 @@ else:
|
|||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"apps.contact",
|
|
||||||
"apps.files",
|
"apps.files",
|
||||||
"apps.map",
|
"apps.map",
|
||||||
"apps.profiles",
|
"apps.profiles",
|
||||||
@ -61,7 +60,6 @@ INSTALLED_APPS = [
|
|||||||
"django.contrib.sites",
|
"django.contrib.sites",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
"django_extensions",
|
"django_extensions",
|
||||||
"envelope",
|
|
||||||
"leaflet",
|
"leaflet",
|
||||||
"raven.contrib.django.raven_compat",
|
"raven.contrib.django.raven_compat",
|
||||||
"registration",
|
"registration",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{% extends "base_page.html" %}
|
{% extends "base_page.html" %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
{% load envelope_tags %}
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block page_title %}{% trans "Login"%} | Ojuso{% endblock %}
|
{% block page_title %}{% trans "Login"%} | Ojuso{% endblock %}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{% extends "base_page.html" %}
|
{% extends "base_page.html" %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
{% load envelope_tags %}
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block page_name %}Registration{% endblock %}
|
{% block page_name %}Registration{% endblock %}
|
||||||
|
@ -11,7 +11,6 @@ django-cas-server
|
|||||||
django-compressor
|
django-compressor
|
||||||
django-countries
|
django-countries
|
||||||
django-crispy-forms
|
django-crispy-forms
|
||||||
django-envelope
|
|
||||||
django-extensions
|
django-extensions
|
||||||
django-geojson
|
django-geojson
|
||||||
django-leaflet
|
django-leaflet
|
||||||
|
@ -20,7 +20,6 @@ django-cas-server==1.1.0
|
|||||||
django-compressor==2.3
|
django-compressor==2.3
|
||||||
django-countries==5.4
|
django-countries==5.4
|
||||||
django-crispy-forms==1.7.2
|
django-crispy-forms==1.7.2
|
||||||
django-envelope==1.3
|
|
||||||
django-extensions==2.2.1
|
django-extensions==2.2.1
|
||||||
django-geojson==2.12.0
|
django-geojson==2.12.0
|
||||||
django-leaflet==0.24.0
|
django-leaflet==0.24.0
|
||||||
|
@ -30,7 +30,6 @@ django-countries==5.4
|
|||||||
django-coverage-plugin==1.6.0
|
django-coverage-plugin==1.6.0
|
||||||
django-crispy-forms==1.7.2
|
django-crispy-forms==1.7.2
|
||||||
django-debug-toolbar==2.0
|
django-debug-toolbar==2.0
|
||||||
django-envelope==1.3
|
|
||||||
django-extensions==2.2.1
|
django-extensions==2.2.1
|
||||||
django-geojson==2.12.0
|
django-geojson==2.12.0
|
||||||
django-leaflet==0.24.0
|
django-leaflet==0.24.0
|
||||||
|
Loading…
Reference in New Issue
Block a user