From 48e469656b83c2442aea313c7f8261840d4bbe55 Mon Sep 17 00:00:00 2001 From: jindalg Date: Tue, 14 Jun 2016 16:51:14 +0530 Subject: [PATCH] project and app initialize --- .gitignore | 1 + myresume/account/__init__.py | 0 myresume/account/admin.py | 3 + myresume/account/migrations/__init__.py | 0 myresume/account/models.py | 3 + myresume/account/tests.py | 3 + myresume/account/views.py | 3 + myresume/manage.py | 10 ++ myresume/myresume/__init__.py | 0 myresume/myresume/settings.py | 102 +++++++++++++++++++ myresume/myresume/urls.py | 21 ++++ myresume/myresume/wsgi.py | 16 +++ myresume/user_profile/__init__.py | 0 myresume/user_profile/admin.py | 3 + myresume/user_profile/migrations/__init__.py | 0 myresume/user_profile/models.py | 3 + myresume/user_profile/tests.py | 3 + myresume/user_profile/views.py | 3 + 18 files changed, 174 insertions(+) create mode 100644 .gitignore create mode 100644 myresume/account/__init__.py create mode 100644 myresume/account/admin.py create mode 100644 myresume/account/migrations/__init__.py create mode 100644 myresume/account/models.py create mode 100644 myresume/account/tests.py create mode 100644 myresume/account/views.py create mode 100755 myresume/manage.py create mode 100644 myresume/myresume/__init__.py create mode 100644 myresume/myresume/settings.py create mode 100644 myresume/myresume/urls.py create mode 100644 myresume/myresume/wsgi.py create mode 100644 myresume/user_profile/__init__.py create mode 100644 myresume/user_profile/admin.py create mode 100644 myresume/user_profile/migrations/__init__.py create mode 100644 myresume/user_profile/models.py create mode 100644 myresume/user_profile/tests.py create mode 100644 myresume/user_profile/views.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/myresume/account/__init__.py b/myresume/account/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myresume/account/admin.py b/myresume/account/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/myresume/account/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/myresume/account/migrations/__init__.py b/myresume/account/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myresume/account/models.py b/myresume/account/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/myresume/account/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/myresume/account/tests.py b/myresume/account/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/myresume/account/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/myresume/account/views.py b/myresume/account/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/myresume/account/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/myresume/manage.py b/myresume/manage.py new file mode 100755 index 0000000..a31f0ae --- /dev/null +++ b/myresume/manage.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myresume.settings") + + from django.core.management import execute_from_command_line + + execute_from_command_line(sys.argv) diff --git a/myresume/myresume/__init__.py b/myresume/myresume/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myresume/myresume/settings.py b/myresume/myresume/settings.py new file mode 100644 index 0000000..7a593e9 --- /dev/null +++ b/myresume/myresume/settings.py @@ -0,0 +1,102 @@ +""" +Django settings for myresume project. + +Generated by 'django-admin startproject' using Django 1.8.2. + +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 = 'k70ayo&k2-wv!5u@@@tbsg^oxl@ta02tci-p$ca=e029kct523' + +# 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', +) + +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 = 'myresume.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 = 'myresume.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/' diff --git a/myresume/myresume/urls.py b/myresume/myresume/urls.py new file mode 100644 index 0000000..ffe0914 --- /dev/null +++ b/myresume/myresume/urls.py @@ -0,0 +1,21 @@ +"""myresume 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)), +] diff --git a/myresume/myresume/wsgi.py b/myresume/myresume/wsgi.py new file mode 100644 index 0000000..14e43d0 --- /dev/null +++ b/myresume/myresume/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for myresume 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", "myresume.settings") + +application = get_wsgi_application() diff --git a/myresume/user_profile/__init__.py b/myresume/user_profile/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myresume/user_profile/admin.py b/myresume/user_profile/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/myresume/user_profile/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/myresume/user_profile/migrations/__init__.py b/myresume/user_profile/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myresume/user_profile/models.py b/myresume/user_profile/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/myresume/user_profile/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/myresume/user_profile/tests.py b/myresume/user_profile/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/myresume/user_profile/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/myresume/user_profile/views.py b/myresume/user_profile/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/myresume/user_profile/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.