From d32fd4106f7138df100d6edd1aa8410391e4c828 Mon Sep 17 00:00:00 2001 From: vaishk Date: Sat, 20 May 2017 17:48:30 +0530 Subject: [PATCH] first commit --- camp/__init__.py | 0 camp/__init__.pyc | Bin 0 -> 122 bytes camp/settings.py | 122 ++++++++++++++++++++++++++++++++++++++++++++++ camp/settings.pyc | Bin 0 -> 2572 bytes camp/urls.py | 21 ++++++++ camp/urls.pyc | Bin 0 -> 963 bytes camp/wsgi.py | 16 ++++++ manage.py | 22 +++++++++ 8 files changed, 181 insertions(+) create mode 100644 camp/__init__.py create mode 100644 camp/__init__.pyc create mode 100644 camp/settings.py create mode 100644 camp/settings.pyc create mode 100644 camp/urls.py create mode 100644 camp/urls.pyc create mode 100644 camp/wsgi.py create mode 100755 manage.py diff --git a/camp/__init__.py b/camp/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/camp/__init__.pyc b/camp/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d9e2964dacc25e2361dd00b352fb180be1d94a29 GIT binary patch literal 122 zcmZSn%*$0~s1TXV00oRd+5w1*S%5?e14FO|NW@PANHCxg#mYc2{m|mnqGJ8B#LVK1 oZ2jcK+yV#@AD@|*SrQ+wS5R5P0aRy`o1apelWGSttr&@~ literal 0 HcmV?d00001 diff --git a/camp/settings.py b/camp/settings.py new file mode 100644 index 0000000..5b4de38 --- /dev/null +++ b/camp/settings.py @@ -0,0 +1,122 @@ +""" +Django settings for camp project. + +Generated by 'django-admin startproject' using Django 1.11.1. + +For more information on this file, see +https://docs.djangoproject.com/en/1.11/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/1.11/ref/settings/ +""" + +import os + +# Build paths inside the project like this: os.path.join(BASE_DIR, ...) +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.11/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = ')lzq#s+we0&7f=(@g)e2^9n@_fo5vz7l8q7py%5qx%_2dq-o!#' + +# 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 = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'camp.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 = 'camp.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/1.11/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'camp', + 'USER': 'root', + 'PASSWORD': 'sqlsql' + } +} + + +# Password validation +# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/1.11/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.11/howto/static-files/ + +STATIC_URL = '/static/' diff --git a/camp/settings.pyc b/camp/settings.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e216b6ccb44af2bfd8171a285f26ec44266048ee GIT binary patch literal 2572 zcmb7F>vPja5MSHDNetnYP$={vnnDsFGNC1*ot8$iMeyK9#*#_VhiYWq*}kBMqdO78 z*Z#@v_jd1O$7bT0HkN$a+sE(rezz+X{#q*iy`{bLVf35F=Pv$vH3vWd92|2%@(|>} z$pOv5Q67#8=Y%<+m*CIb=yr-g3gFBGT>xhh`iN5kG6&=m5H!sLSpb6iA~=_Upb5t- zK$d`91#%6@b?DE7gPI%QECIv7n?ROf8-d6QY$GbU1=|c0`vS;qAa{U#34L_C3)|!# z`eCw&^c6VQ0KFu@*Fe5O-OKI&)T0fIEl!WUz zH-J0>2a|dX&a&F&iW+aJ5tDiX4(62yYkgC)`2^W4Rgb)=A8VWn!JSq;cUTV&u7|r5qu&5#pA}rGXGb{&TrZVxQ~TBI6YNI4sksED_5h9x|Vo$N82sd@-O} zFAV}MU|eW%Z?YdRBDfM|iT1$@Qpzv1SVDVKE3tp@*W}NTyN%$}@hX3OLZ3d|>HWIC z+uxwi{`e`{b$jvi51)2|7sorp(+AIwKR$4uk>kzy{wiO=uxwkpA4ei#U0rd=muDDK zG2r*k>t!H~gg6~i&TpT$b5tX{Gi@Q-ygm+hXT%9S6)j9Rk zgo#t#8VQXv8~^nV80?x}5AVI@nfZeBe5rIZz+#Gt=XZFaBq_~VKDXME4Vm*>ELIPZVP z@r;ivcQuK_crsub9s3Ium+1*n1*#4^~GQU@!JI;vi>_5Wjevw zy#Pit4Qays^B|WHghrbw7X_3$c7;n0%lJ9Lb}X;Ub5caQE`APNSL9Ipr2`83WX`8nD#(bxc>?EZ^W>PixI{RV?C8J(% z9hz15b<46XaTPVSre&iRb=XFhf@##M)w+3Tv`ujZJ=(37?RMJrN~`%w$Tqgk#zEb% zO-o$I*`c*xld<($#gO%>T&jj`$kZ$$w`z3k*Y3E0+_y%(hV~YAuS}_KH1|8kzUfw4 zRWrk{HB8rOVV%kyVlle4tryL+Nqy^SQ&p$5*iN={8`rMLEY~pvCIer^X<61DFMseD zAG|Ni!q0~BM^+!6D)e8%n4|%Hc^PAP7l&g0O5xFbu~5txi-p|yTAUk8^0`$a& literal 0 HcmV?d00001 diff --git a/camp/urls.py b/camp/urls.py new file mode 100644 index 0000000..e759e98 --- /dev/null +++ b/camp/urls.py @@ -0,0 +1,21 @@ +"""camp URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/1.11/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. Import the include() function: from django.conf.urls import url, include + 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) +""" +from django.conf.urls import url +from django.contrib import admin + +urlpatterns = [ + url(r'^admin/', admin.site.urls), +] diff --git a/camp/urls.pyc b/camp/urls.pyc new file mode 100644 index 0000000000000000000000000000000000000000..12950ab2eaded073246f439f3b0b7c00d8bf40c8 GIT binary patch literal 963 zcma)5UvJYe5Wl2cgTBk%)o!LG)oefb9_OV^~M9H~~I@uh}r(vlXS!OQWdJbed16)SFtCjs|av^&L&le+AB;!-Zw~%#&)C6Hix`SpX4C6e>EzJb#wal%nkn%v z4RSh8&MM~I>m~NakMjNxhw&R>1C+ewssr>1bG7&%jVDCp%oQO`HhzHVQkPZ3rCuWu zZN<=Di4*NOx@^fI2nJ^qd_^`Us{@_0J!Siu;4t(m56pL1QJ!>BkH@^M%$g#PUAZ(E z+Pvv_oXFpJvIw`(ht&?ex5@w&#+B6W1f}a%q+hZp!7*5h0@tS~{0QZTc;{#X|NNgX z-pb{?&D=-3lV12Bg!cT?z0hrVhARBM+)GsHl@r#{9g}YJgNA=)e}(wGzViXsTV;4t RiT5v1cHzGoMx$ud`vZ0N7gzuQ literal 0 HcmV?d00001 diff --git a/camp/wsgi.py b/camp/wsgi.py new file mode 100644 index 0000000..e21697e --- /dev/null +++ b/camp/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for camp 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.11/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "camp.settings") + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..2883365 --- /dev/null +++ b/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "camp.settings") + try: + from django.core.management import execute_from_command_line + except ImportError: + # The above import may fail for some other reason. Ensure that the + # issue is really that Django is missing to avoid masking other + # exceptions on Python 2. + try: + import django + except ImportError: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) + raise + execute_from_command_line(sys.argv)