mirror of
https://github.com/ConjureETS/site-2015.git
synced 2026-03-24 04:21:23 +00:00
Merge pull request #2 from ConjureETS/projet
Added all templates, fixed medias with dj_static and added requiremen…
This commit is contained in:
commit
2344d6c189
@ -8,7 +8,8 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from dj_static import Cling, MediaCling
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "conjure.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "conjure.settings")
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
application = get_wsgi_application()
|
application = Cling(MediaCling(get_wsgi_application()))
|
||||||
|
|||||||
BIN
conjure/wsgi.pyc
BIN
conjure/wsgi.pyc
Binary file not shown.
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
BIN
medias/projects_downloads/gpa775-gabarit.zip
Normal file
BIN
medias/projects_downloads/gpa775-gabarit.zip
Normal file
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 453 KiB |
BIN
member/admin.pyc
BIN
member/admin.pyc
Binary file not shown.
BIN
member/forms.pyc
BIN
member/forms.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
member/templates/member/.index.html.swp
Normal file
BIN
member/templates/member/.index.html.swp
Normal file
Binary file not shown.
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if admin.photo %}
|
{% if admin.photo %}
|
||||||
<img src="{{ admin.photo }}" class="avatar" alt="">
|
<img src="{{ admin.photo.url }}" class="avatar" alt="">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{% static 'img/profile.png' %}" class="avatar" alt="">
|
<img src="{% static 'img/profile.png' %}" class="avatar" alt="">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if member.photo %}
|
{% if member.photo %}
|
||||||
<img src="{{ member.photo }}" class="avatar" alt="">
|
<img src="{{ member.photo.url }}" class="avatar" alt="">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{% static 'img/profile.png' %}" class="avatar" alt="">
|
<img src="{% static 'img/profile.png' %}" class="avatar" alt="">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
BIN
member/views.pyc
BIN
member/views.pyc
Binary file not shown.
@ -1,11 +1,33 @@
|
|||||||
{% extends 'template.html' %}
|
{% extends 'template.html' %}
|
||||||
|
{% load staticfiles %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<!-- projet Grid Section -->
|
||||||
<ul>
|
<section id="projet">
|
||||||
{% for project in projects %}
|
<div class="container">
|
||||||
<li>{{ project.name }}</li>
|
<div class="row">
|
||||||
{% endfor %}
|
<div class="col-lg-12 text-center">
|
||||||
</ul>
|
<h2 class="">Projets</h2>
|
||||||
|
<hr class="star-light">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
{% for project in projects %}
|
||||||
|
<div class="col-sm-4 list-item">
|
||||||
|
<a href="{% url 'project:show' project.id %}" class="list-link">
|
||||||
|
<div class="caption">
|
||||||
|
<div class="caption-content">
|
||||||
|
<i class="fa fa-search-plus fa-3x"><h3>{{ project.name }}</h3></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% if project.screenshot %}
|
||||||
|
<img src="{{ project.screenshot.url }}" class="img-responsive" alt="">
|
||||||
|
{% else %}
|
||||||
|
<img src="{% static 'img/projet/cabin.png' %}" class="img-responsive" alt="">
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
50
project/templates/project/projet.html
Normal file
50
project/templates/project/projet.html
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{% extends 'template.html' %}
|
||||||
|
{% load staticfiles %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="projet">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h1>{{ project.name }}</h1>
|
||||||
|
|
||||||
|
{% if project.screenshot %}
|
||||||
|
<img class="img-responsive" src="{{ project.screenshot.url }}" alt="">
|
||||||
|
{% else %}
|
||||||
|
<img class="img-responsive" src="http://placehold.it/1100x400" alt="">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="caption-full">
|
||||||
|
<h4>Descripiton du projet:</h4>
|
||||||
|
<p>{{ project.description }}</p>
|
||||||
|
<a class="btn btn-large" href="{{ project.download }}">Download</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<section id="membre">
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
<h2 class="">Équipe</h2>
|
||||||
|
<hr class="star-light">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
{% for member in project.members.all %}
|
||||||
|
<div class="col-sm-4 list-item">
|
||||||
|
<a href="{% url 'member:show' member.id %}" class="list-link" >
|
||||||
|
<div class="caption">
|
||||||
|
<div class="caption-content">
|
||||||
|
<i class="fa fa-search-plus fa-3x"><h3>{{ member.first_name }} {{ member.last_name }}</h3></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% if member.photo %}
|
||||||
|
<img src="{{ member.photo.url }}" class="avatar" alt="">
|
||||||
|
{% else %}
|
||||||
|
<img src="{% static 'img/profile.png' %}" class="avatar" alt="">
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endblock %}
|
||||||
@ -11,4 +11,4 @@ def index(request):
|
|||||||
def show(request, project_id):
|
def show(request, project_id):
|
||||||
project = Project.objects.get(pk=project_id)
|
project = Project.objects.get(pk=project_id)
|
||||||
|
|
||||||
return render(request, 'project/show.html', {'project': project})
|
return render(request, 'project/projet.html', {'project': project})
|
||||||
|
|||||||
Binary file not shown.
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Django==1.8.2
|
||||||
|
Pillow==2.8.2
|
||||||
|
argparse==1.2.1
|
||||||
|
dj-static==0.0.6
|
||||||
|
django-ckeditor==4.4.8
|
||||||
|
static3==0.6.1
|
||||||
|
wsgiref==0.1.2
|
||||||
@ -105,4 +105,4 @@ footer {
|
|||||||
margin: 0 0 30px;
|
margin: 0 0 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user