Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Porkepix
memopol
Commits
b85d511e
Commit
b85d511e
authored
Oct 31, 2015
by
Jamesie Pic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic travis config
parent
47f4faba
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
165 additions
and
0 deletions
+165
-0
.travis.yml
.travis.yml
+10
-0
README.md
README.md
+1
-0
setup.py
setup.py
+3
-0
test_project/manage.py
test_project/manage.py
+10
-0
test_project/test_project/__init__.py
test_project/test_project/__init__.py
+0
-0
test_project/test_project/settings.py
test_project/test_project/settings.py
+104
-0
test_project/test_project/urls.py
test_project/test_project/urls.py
+21
-0
test_project/test_project/wsgi.py
test_project/test_project/wsgi.py
+16
-0
No files found.
.travis.yml
0 → 100644
View file @
b85d511e
sudo
:
false
language
:
python
python
:
-
"
2.7"
install
:
-
pip install django
-
pip install -e git+https://github.com/political-memory/django-representatives.git#egg=representatives
-
pip install -e .
script
:
-
test_project/manage.py migrate
README.md
0 → 100644
View file @
b85d511e
[

](https://travis-ci.org/political-memory/django-representatives-votes)
setup.py
View file @
b85d511e
...
...
@@ -12,6 +12,9 @@ setup(
include_package_data
=
True
,
license
=
'GPLv3'
,
keywords
=
'django government parliament votes'
,
install_requires
=
[
'django-representatives'
,
],
classifiers
=
[
'Development Status :: 1 - Alpha/Planning'
,
'Environment :: Web Environment'
,
...
...
test_project/manage.py
0 → 100755
View file @
b85d511e
#!/usr/bin/env python
import
os
import
sys
if
__name__
==
"__main__"
:
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"test_project.settings"
)
from
django.core.management
import
execute_from_command_line
execute_from_command_line
(
sys
.
argv
)
test_project/test_project/__init__.py
0 → 100644
View file @
b85d511e
test_project/test_project/settings.py
0 → 100644
View file @
b85d511e
"""
Django settings for test_project project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import
os
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.8/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
'hul=ds-wua5*3r+o2k-%&jlleub99q7dot+lb(((v*^-@yk%g7'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[]
# Application definition
INSTALLED_APPS
=
(
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'representatives'
,
'representatives_votes'
,
)
MIDDLEWARE_CLASSES
=
(
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.SessionAuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
'django.middleware.security.SecurityMiddleware'
,
)
ROOT_URLCONF
=
'test_project.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
=
'test_project.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.sqlite3'
,
'NAME'
:
os
.
path
.
join
(
BASE_DIR
,
'db.sqlite3'
),
}
}
# Internationalization
# https://docs.djangoproject.com/en/1.8/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.8/howto/static-files/
STATIC_URL
=
'/static/'
test_project/test_project/urls.py
0 → 100644
View file @
b85d511e
"""test_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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. Add an import: from blog import urls as blog_urls
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
"""
from
django.conf.urls
import
include
,
url
from
django.contrib
import
admin
urlpatterns
=
[
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
]
test_project/test_project/wsgi.py
0 → 100644
View file @
b85d511e
"""
WSGI config for test_project 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.8/howto/deployment/wsgi/
"""
import
os
from
django.core.wsgi
import
get_wsgi_application
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"test_project.settings"
)
application
=
get_wsgi_application
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment