diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c10666e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +*.pyc diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..7291fa1 --- /dev/null +++ b/manage.py @@ -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) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b690c9c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +Django==1.7.6 +mysqlclient \ No newline at end of file diff --git a/roadmap/__init__.py b/roadmap/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/roadmap/settings.py b/roadmap/settings.py new file mode 100644 index 0000000..5c2f152 --- /dev/null +++ b/roadmap/settings.py @@ -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'), +) \ No newline at end of file diff --git a/roadmap/urls.py b/roadmap/urls.py new file mode 100644 index 0000000..b46c0fe --- /dev/null +++ b/roadmap/urls.py @@ -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)), +) diff --git a/roadmap/wsgi.py b/roadmap/wsgi.py new file mode 100644 index 0000000..1a35a57 --- /dev/null +++ b/roadmap/wsgi.py @@ -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()