Commit 57f02213 authored by Johan Bloemberg's avatar Johan Bloemberg

Packaging.

parent 02ecfb75
#!/usr/bin/env python
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "failmap_admin.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
if __name__ == "__main__":
main()
"""Django settings for admin project.
"""Django settings for failmap-admin project.
Generated by 'django-admin startproject' using Django 1.9.5.
......@@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'fail',
'failmap_admin.fail',
'django_countries'
]
......@@ -53,7 +53,7 @@ MIDDLEWARE_CLASSES = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'admin.urls'
ROOT_URLCONF = 'failmap_admin.urls'
TEMPLATES = [
{
......@@ -71,7 +71,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'admin.wsgi.application'
WSGI_APPLICATION = 'failmap_admin.wsgi.application'
# Database
......
......@@ -2,9 +2,14 @@
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "admin.settings")
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "failmap_admin.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
if __name__ == "__main__":
main()
......@@ -3,5 +3,11 @@ from setuptools import find_packages, setup
setup(
name='failmap-admin',
version='0.1',
packages=find_packages('admin', 'fail'),
packages=find_packages('.'),
install_requires=open('requirements.txt').readlines(),
entry_points={
'console_scripts': [
'failmap-admin = failmap_admin.manage:main',
],
}
)
......@@ -3,4 +3,4 @@ envlist = py34
[testenv]
deps = pylama
commands = pylama fail admin
commands = pylama failmap_admin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment