Got basic webpage working. Need to make base page, static folders
This commit is contained in:
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/__future__.py
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_bootlocale.py
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_collections_abc.py
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_dummy_thread.py
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/abc.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/base64.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/bisect.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/collections
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/copy.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/copyreg.py
|
||||
@@ -0,0 +1,101 @@
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
import imp
|
||||
import opcode # opcode is not a virtualenv module, so we can use it to find the stdlib
|
||||
# Important! To work on pypy, this must be a module that resides in the
|
||||
# lib-python/modified-x.y.z directory
|
||||
|
||||
dirname = os.path.dirname
|
||||
|
||||
distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
|
||||
if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__)):
|
||||
warnings.warn(
|
||||
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
|
||||
else:
|
||||
__path__.insert(0, distutils_path)
|
||||
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
|
||||
# Copy the relevant attributes
|
||||
try:
|
||||
__revision__ = real_distutils.__revision__
|
||||
except AttributeError:
|
||||
pass
|
||||
__version__ = real_distutils.__version__
|
||||
|
||||
from distutils import dist, sysconfig
|
||||
|
||||
try:
|
||||
basestring
|
||||
except NameError:
|
||||
basestring = str
|
||||
|
||||
## patch build_ext (distutils doesn't know how to get the libs directory
|
||||
## path on windows - it hardcodes the paths around the patched sys.prefix)
|
||||
|
||||
if sys.platform == 'win32':
|
||||
from distutils.command.build_ext import build_ext as old_build_ext
|
||||
class build_ext(old_build_ext):
|
||||
def finalize_options (self):
|
||||
if self.library_dirs is None:
|
||||
self.library_dirs = []
|
||||
elif isinstance(self.library_dirs, basestring):
|
||||
self.library_dirs = self.library_dirs.split(os.pathsep)
|
||||
|
||||
self.library_dirs.insert(0, os.path.join(sys.real_prefix, "Libs"))
|
||||
old_build_ext.finalize_options(self)
|
||||
|
||||
from distutils.command import build_ext as build_ext_module
|
||||
build_ext_module.build_ext = build_ext
|
||||
|
||||
## distutils.dist patches:
|
||||
|
||||
old_find_config_files = dist.Distribution.find_config_files
|
||||
def find_config_files(self):
|
||||
found = old_find_config_files(self)
|
||||
system_distutils = os.path.join(distutils_path, 'distutils.cfg')
|
||||
#if os.path.exists(system_distutils):
|
||||
# found.insert(0, system_distutils)
|
||||
# What to call the per-user config file
|
||||
if os.name == 'posix':
|
||||
user_filename = ".pydistutils.cfg"
|
||||
else:
|
||||
user_filename = "pydistutils.cfg"
|
||||
user_filename = os.path.join(sys.prefix, user_filename)
|
||||
if os.path.isfile(user_filename):
|
||||
for item in list(found):
|
||||
if item.endswith('pydistutils.cfg'):
|
||||
found.remove(item)
|
||||
found.append(user_filename)
|
||||
return found
|
||||
dist.Distribution.find_config_files = find_config_files
|
||||
|
||||
## distutils.sysconfig patches:
|
||||
|
||||
old_get_python_inc = sysconfig.get_python_inc
|
||||
def sysconfig_get_python_inc(plat_specific=0, prefix=None):
|
||||
if prefix is None:
|
||||
prefix = sys.real_prefix
|
||||
return old_get_python_inc(plat_specific, prefix)
|
||||
sysconfig_get_python_inc.__doc__ = old_get_python_inc.__doc__
|
||||
sysconfig.get_python_inc = sysconfig_get_python_inc
|
||||
|
||||
old_get_python_lib = sysconfig.get_python_lib
|
||||
def sysconfig_get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
|
||||
if standard_lib and prefix is None:
|
||||
prefix = sys.real_prefix
|
||||
return old_get_python_lib(plat_specific, standard_lib, prefix)
|
||||
sysconfig_get_python_lib.__doc__ = old_get_python_lib.__doc__
|
||||
sysconfig.get_python_lib = sysconfig_get_python_lib
|
||||
|
||||
old_get_config_vars = sysconfig.get_config_vars
|
||||
def sysconfig_get_config_vars(*args):
|
||||
real_vars = old_get_config_vars(*args)
|
||||
if sys.platform == 'win32':
|
||||
lib_dir = os.path.join(sys.real_prefix, "libs")
|
||||
if isinstance(real_vars, dict) and 'LIBDIR' not in real_vars:
|
||||
real_vars['LIBDIR'] = lib_dir # asked for all
|
||||
elif isinstance(real_vars, list) and 'LIBDIR' in args:
|
||||
real_vars = real_vars + [lib_dir] # asked for list
|
||||
return real_vars
|
||||
sysconfig_get_config_vars.__doc__ = old_get_config_vars.__doc__
|
||||
sysconfig.get_config_vars = sysconfig_get_config_vars
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
# This is a config file local to this virtualenv installation
|
||||
# You may include options that will be used by all distutils commands,
|
||||
# and by easy_install. For instance:
|
||||
#
|
||||
# [easy_install]
|
||||
# find_links = http://mylocalsite
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/enum.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/fnmatch.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/functools.py
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/genericpath.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/heapq.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hmac.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/imp.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/io.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/keyword.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/linecache.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/locale.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ntpath.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/operator.py
|
||||
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/os.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/random.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/readline.cpython-36m-darwin.so
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/reprlib.py
|
||||
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/rlcompleter.py
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py
|
||||
@@ -0,0 +1,3 @@
|
||||
UNKNOWN
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,27 @@
|
||||
Copyright (c) Django Software Foundation and individual contributors.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of Django nor the names of its contributors may be used
|
||||
to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,37 @@
|
||||
Metadata-Version: 2.0
|
||||
Name: Django
|
||||
Version: 2.0.1
|
||||
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
|
||||
Home-page: https://www.djangoproject.com/
|
||||
Author: Django Software Foundation
|
||||
Author-email: [email protected]
|
||||
License: BSD
|
||||
Description-Content-Type: UNKNOWN
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Web Environment
|
||||
Classifier: Framework :: Django
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Topic :: Internet :: WWW/HTTP
|
||||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
||||
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
|
||||
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Requires-Python: >=3.4
|
||||
Requires-Dist: pytz
|
||||
Provides-Extra: argon2
|
||||
Requires-Dist: argon2-cffi (>=16.1.0); extra == 'argon2'
|
||||
Provides-Extra: bcrypt
|
||||
Requires-Dist: bcrypt; extra == 'bcrypt'
|
||||
|
||||
UNKNOWN
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.30.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[console_scripts]
|
||||
django-admin = django.core.management:execute_from_command_line
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"classifiers": ["Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules"], "description_content_type": "UNKNOWN", "extensions": {"python.commands": {"wrap_console": {"django-admin": "django.core.management:execute_from_command_line"}}, "python.details": {"contacts": [{"email": "[email protected]", "name": "Django Software Foundation", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst", "license": "LICENSE.txt"}, "project_urls": {"Home": "https://www.djangoproject.com/"}}, "python.exports": {"console_scripts": {"django-admin": "django.core.management:execute_from_command_line"}}}, "extras": ["argon2", "bcrypt"], "generator": "bdist_wheel (0.30.0)", "license": "BSD", "metadata_version": "2.0", "name": "Django", "requires_python": ">=3.4", "run_requires": [{"extra": "argon2", "requires": ["argon2-cffi (>=16.1.0)"]}, {"extra": "bcrypt", "requires": ["bcrypt"]}, {"requires": ["pytz"]}], "summary": "A high-level Python Web framework that encourages rapid development and clean, pragmatic design.", "version": "2.0.1"}
|
||||
@@ -0,0 +1 @@
|
||||
django
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
from django.utils.version import get_version
|
||||
|
||||
VERSION = (2, 0, 1, 'final', 0)
|
||||
|
||||
__version__ = get_version(VERSION)
|
||||
|
||||
|
||||
def setup(set_prefix=True):
|
||||
"""
|
||||
Configure the settings (this happens as a side effect of accessing the
|
||||
first setting), configure logging and populate the app registry.
|
||||
Set the thread-local urlresolvers script prefix if `set_prefix` is True.
|
||||
"""
|
||||
from django.apps import apps
|
||||
from django.conf import settings
|
||||
from django.urls import set_script_prefix
|
||||
from django.utils.log import configure_logging
|
||||
|
||||
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
|
||||
if set_prefix:
|
||||
set_script_prefix(
|
||||
'/' if settings.FORCE_SCRIPT_NAME is None else settings.FORCE_SCRIPT_NAME
|
||||
)
|
||||
apps.populate(settings.INSTALLED_APPS)
|
||||
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
Invokes django-admin when the django module is run as a script.
|
||||
|
||||
Example: python -m django check
|
||||
"""
|
||||
from django.core import management
|
||||
|
||||
if __name__ == "__main__":
|
||||
management.execute_from_command_line()
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user