Added database things, and git ignore, requirements updated

This commit is contained in:
Tyrel Souza 2015-03-09 22:14:52 -04:00
parent 19d2e2e2b2
commit 4d74c944e3
7 changed files with 99 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
*.pyc

10
manage.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "roadmap.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Django==1.7.6
mysqlclient

0
roadmap/__init__.py Normal file
View File

61
roadmap/settings.py Normal file
View File

@ -0,0 +1,61 @@
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SECRET_KEY = 'fidb9aj&ixz%p!h-_7btngq$+!*7%dh+degle^3(xlaj00=ctg'
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
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',
)
ROOT_URLCONF = 'roadmap.urls'
WSGI_APPLICATION = 'roadmap.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'roadmap',
'USER': 'django',
'PASSWORD': 'django',
'HOST': 'localhost',
'PORT': '5432',
}
}
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'EST'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'templates'),
)

10
roadmap/urls.py Normal file
View File

@ -0,0 +1,10 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'roadmap.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)

14
roadmap/wsgi.py Normal file
View File

@ -0,0 +1,14 @@
"""
WSGI config for roadmap 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "roadmap.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()