Skip to content

Commit

Permalink
Merge pull request #1 from ESEGroup/index_development
Browse files Browse the repository at this point in the history
Index development and instructions for use
  • Loading branch information
DamascenoRafael authored Nov 15, 2016
2 parents 51c1ad0 + 984c95f commit d1dcdc4
Show file tree
Hide file tree
Showing 14 changed files with 551 additions and 736 deletions.
3 changes: 3 additions & 0 deletions .idea/dictionaries/Avell_G1512NEW.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

423 changes: 368 additions & 55 deletions .idea/workspace.xml

Large diffs are not rendered by default.

674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

## Sobre
O OportunidadeUFRJ procura resolver a pouca divulgação e muitas vezes a não oferta de bolsas em tempo hábil desperdiçando oportunidades de pesquisa, extensão e estágio, bem como a perda de oportunidade para candidatura de alunos com perfil adequado a essas vagas disponíveis.
Dentro deste objetivo, o escopo do sistema é também uniformizar as ofertas, de forma a facilitar a sua busca, além de uniformizar também as informações curriculares dos alunos, descomplicando a visualização e decisão de recrutadores.

Dentro deste objetivo, o escopo do sistema é também uniformizar as ofertas, de forma a facilitar a sua busca, além de uniformizar também as informações curriculares dos alunos, descomplicando a visualização e decisão de recrutadores.

## Uso
Para iniciar o servidor abra o terminal, vá até a pasta deste repositório (onde se encontra o arquivo manage.py) e execute:

```
python manage.py runserver
```

Com isso, o servidor estará funcionando e o site poderá ser acessado em `localhost:8000`

## Código
O código deste repositório foi desenvolvido utilizando [Python](https://www.python.org/) e o web framework [Django](https://www.djangoproject.com/).
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
13 changes: 7 additions & 6 deletions ofertas/templates/ofertas/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src="{{ oferta.imagem }}" height="200">

<h1>{{ oferta.titulo }}</h1>
<h3>{{ oferta.criador }}</h3>
<h3>Ofertante: {{ oferta.criador }}</h3>

{% if error_message %}
<p><strong>{{ error_message }}</strong></p>
Expand All @@ -16,13 +16,14 @@ <h3>{{ oferta.criador }}</h3>
{% for candidato in oferta.candidato_set.all %}
<input type="radio" id="candidato{{ forloop.counter }}" name="candidato" value="{{ candidato.id }}"/>
<label for="candidato{{ forloop.counter }}">
{{ candidato.nome }}
{% if candidato.is_favorite %}
<img src="http://www.clipartbest.com/cliparts/dcr/MK5/dcrMK5xc9.jpeg" height="16">
{% endif %}
{{ candidato.nome }}<br>
</label>
{% if candidato.is_favorite %}
<img src="http://www.clipartbest.com/cliparts/dcr/MK5/dcrMK5xc9.jpeg" height="16">
{% endif %}
&nbsp;Curso: {{ candidato.curso }}
<br>
{% endfor %}
<input type="submit" value="Esolher">
<input type="submit" value="Escolher">
</form>
{% endblock %}
Empty file added oportunidadesufrj/__init__.py
Empty file.
Binary file added oportunidadesufrj/__init__.pyc
Binary file not shown.
121 changes: 121 additions & 0 deletions oportunidadesufrj/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
"""
Django settings for oportunidadesufrj project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""

import os

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


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'c@lu+z37^f+=e2hd0=x28f141)nrj9(2awdbegjnr3ku^(4^-_'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'ofertas.apps.OfertasConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'oportunidadesufrj.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'oportunidadesufrj.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}


# Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/1.10/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/

STATIC_URL = '/static/'
Binary file added oportunidadesufrj/settings.pyc
Binary file not shown.
25 changes: 25 additions & 0 deletions oportunidadesufrj/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""oportunidadesufrj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.contrib import admin
from ofertas import views


urlpatterns = [
url(r'^ofertas/', include('ofertas.urls')),
url(r'^$', views.index, name='index'),
url(r'^admin/', admin.site.urls),
]
Binary file added oportunidadesufrj/urls.pyc
Binary file not shown.
16 changes: 16 additions & 0 deletions oportunidadesufrj/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
WSGI config for oportunidadesufrj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "oportunidadesufrj.settings")

application = get_wsgi_application()
Binary file added oportunidadesufrj/wsgi.pyc
Binary file not shown.

0 comments on commit d1dcdc4

Please sign in to comment.