양선아

5/20 update

1 #무시할 파일 확장자 1 #무시할 파일 확장자
2 *.csv 2 *.csv
3 +
4 +
5 +# Created by https://www.gitignore.io/api/django
6 +# Edit at https://www.gitignore.io/?templates=django
7 +
8 +### Django ###
9 +*.log
10 +*.pot
11 +*.pyc
12 +__pycache__/
13 +local_settings.py
14 +db.sqlite3
15 +db.sqlite3-journal
16 +media
17 +
18 +# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
19 +# in your Git repository. Update and uncomment the following line accordingly.
20 +# <django-project-name>/staticfiles/
21 +
22 +### Django.Python Stack ###
23 +# Byte-compiled / optimized / DLL files
24 +*.py[cod]
25 +*$py.class
26 +
27 +# C extensions
28 +*.so
29 +
30 +# Distribution / packaging
31 +.Python
32 +build/
33 +develop-eggs/
34 +dist/
35 +downloads/
36 +eggs/
37 +.eggs/
38 +lib/
39 +lib64/
40 +parts/
41 +sdist/
42 +var/
43 +wheels/
44 +pip-wheel-metadata/
45 +share/python-wheels/
46 +*.egg-info/
47 +.installed.cfg
48 +*.egg
49 +MANIFEST
50 +
51 +# PyInstaller
52 +# Usually these files are written by a python script from a template
53 +# before PyInstaller builds the exe, so as to inject date/other infos into it.
54 +*.manifest
55 +*.spec
56 +
57 +# Installer logs
58 +pip-log.txt
59 +pip-delete-this-directory.txt
60 +
61 +# Unit test / coverage reports
62 +htmlcov/
63 +.tox/
64 +.nox/
65 +.coverage
66 +.coverage.*
67 +.cache
68 +nosetests.xml
69 +coverage.xml
70 +*.cover
71 +.hypothesis/
72 +.pytest_cache/
73 +
74 +# Translations
75 +*.mo
76 +
77 +# Scrapy stuff:
78 +.scrapy
79 +
80 +# Sphinx documentation
81 +docs/_build/
82 +
83 +# PyBuilder
84 +target/
85 +
86 +# pyenv
87 +.python-version
88 +
89 +# pipenv
90 +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91 +# However, in case of collaboration, if having platform-specific dependencies or dependencies
92 +# having no cross-platform support, pipenv may install dependencies that don't work, or not
93 +# install all needed dependencies.
94 +#Pipfile.lock
95 +
96 +# celery beat schedule file
97 +celerybeat-schedule
98 +
99 +# SageMath parsed files
100 +*.sage.py
101 +
102 +# Spyder project settings
103 +.spyderproject
104 +.spyproject
105 +
106 +# Rope project settings
107 +.ropeproject
108 +
109 +# Mr Developer
110 +.mr.developer.cfg
111 +.project
112 +.pydevproject
113 +
114 +# mkdocs documentation
115 +/site
116 +
117 +# mypy
118 +.mypy_cache/
119 +.dmypy.json
120 +dmypy.json
121 +
122 +# Pyre type checker
123 +.pyre/
124 +
125 +# End of https://www.gitignore.io/api/django
...\ No newline at end of file ...\ No newline at end of file
......
1 +{
2 + "python.pythonPath": "c:\\Users\\tjsdk\\Desktop\\5학년 1학기\\캡스톤디자인2\\returnFarmvenv\\Scripts\\python.exe"
3 +}
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
1 -<html>
2 - <head>
3 - <!-- link에 들어가 있는건 지도 데이터를 위한 css 파일 -->
4 - <!-- script에 들어가 있는건 지도 데이터를 위한 js 파일 -->
5 - <!-- 직접 다운받아 넣을 수도 있는데 우선은 그냥 웹에서 불러올 수 있도록 해놨다. -->
6 - <link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" />
7 - <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"></script>
8 - <!--css 내용 여기에 direct로 넣었다-->
9 - <style>
10 - #map {top:100; bottom:100; left:10; right:10; }
11 - </style>
12 - </head>
13 -
14 - <body>
15 - {% for cont in educations %}
16 - <p>where : {{cont.city}}</p>
17 - <p>where : {{cont.ct}}</p>
18 - {% endfor %}
19 -
20 - <div id="map"></div>
21 -
22 - <script>
23 - // map 객체 생성
24 - // 위도, 경도, zoom 수준
25 - var map = L.map('map').setView([0,0],3);
26 - // tilelayer를 씌우는 작업 OSM을 사용했음
27 - L.tileLayer('https://api.maptiler.com/maps/positron/{z}/{x}/{y}.png?key=IHLiEj11tKzE3WCyeanP',{
28 - attribution: '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>',
29 - }).addTo(map)
30 -
31 - </script>
32 - </body>
33 -</html>
...\ No newline at end of file ...\ No newline at end of file
...@@ -2,5 +2,5 @@ from django.conf.urls import url ...@@ -2,5 +2,5 @@ from django.conf.urls import url
2 from . import views 2 from . import views
3 3
4 urlpatterns = [ 4 urlpatterns = [
5 - url('test', views.test), 5 + url('edulist', views.edulist),
6 ] 6 ]
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -4,7 +4,7 @@ from .models import RT_edu ...@@ -4,7 +4,7 @@ from .models import RT_edu
4 4
5 # Create your views here. 5 # Create your views here.
6 6
7 -def test(request): 7 +def edulist(request):
8 educations = RT_edu.objects.values('city').annotate(ct=Count('city')) 8 educations = RT_edu.objects.values('city').annotate(ct=Count('city'))
9 context = {'educations': educations} 9 context = {'educations': educations}
10 - return render(request, 'test.html', context)
...\ No newline at end of file ...\ No newline at end of file
10 + return render(request, 'edulist.html', context)
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +function global:deactivate ([switch]$NonDestructive) {
2 + # Revert to original values
3 + if (Test-Path function:_OLD_VIRTUAL_PROMPT) {
4 + copy-item function:_OLD_VIRTUAL_PROMPT function:prompt
5 + remove-item function:_OLD_VIRTUAL_PROMPT
6 + }
7 +
8 + if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) {
9 + copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME
10 + remove-item env:_OLD_VIRTUAL_PYTHONHOME
11 + }
12 +
13 + if (Test-Path env:_OLD_VIRTUAL_PATH) {
14 + copy-item env:_OLD_VIRTUAL_PATH env:PATH
15 + remove-item env:_OLD_VIRTUAL_PATH
16 + }
17 +
18 + if (Test-Path env:VIRTUAL_ENV) {
19 + remove-item env:VIRTUAL_ENV
20 + }
21 +
22 + if (!$NonDestructive) {
23 + # Self destruct!
24 + remove-item function:deactivate
25 + }
26 +}
27 +
28 +deactivate -nondestructive
29 +
30 +$env:VIRTUAL_ENV="C:\Users\tjsdk\Desktop\5학년 1학기\캡스톤디자인2\returnFarmvenv"
31 +
32 +if (! $env:VIRTUAL_ENV_DISABLE_PROMPT) {
33 + # Set the prompt to include the env name
34 + # Make sure _OLD_VIRTUAL_PROMPT is global
35 + function global:_OLD_VIRTUAL_PROMPT {""}
36 + copy-item function:prompt function:_OLD_VIRTUAL_PROMPT
37 + function global:prompt {
38 + Write-Host -NoNewline -ForegroundColor Green '(returnFarmvenv) '
39 + _OLD_VIRTUAL_PROMPT
40 + }
41 +}
42 +
43 +# Clear PYTHONHOME
44 +if (Test-Path env:PYTHONHOME) {
45 + copy-item env:PYTHONHOME env:_OLD_VIRTUAL_PYTHONHOME
46 + remove-item env:PYTHONHOME
47 +}
48 +
49 +# Add the venv to the PATH
50 +copy-item env:PATH env:_OLD_VIRTUAL_PATH
51 +$env:PATH = "$env:VIRTUAL_ENV\Scripts;$env:PATH"
1 +# This file must be used with "source bin/activate" *from bash*
2 +# you cannot run it directly
3 +
4 +deactivate () {
5 + # reset old environment variables
6 + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7 + PATH="${_OLD_VIRTUAL_PATH:-}"
8 + export PATH
9 + unset _OLD_VIRTUAL_PATH
10 + fi
11 + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12 + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13 + export PYTHONHOME
14 + unset _OLD_VIRTUAL_PYTHONHOME
15 + fi
16 +
17 + # This should detect bash and zsh, which have a hash command that must
18 + # be called to get it to forget past commands. Without forgetting
19 + # past commands the $PATH changes we made may not be respected
20 + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21 + hash -r
22 + fi
23 +
24 + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25 + PS1="${_OLD_VIRTUAL_PS1:-}"
26 + export PS1
27 + unset _OLD_VIRTUAL_PS1
28 + fi
29 +
30 + unset VIRTUAL_ENV
31 + if [ ! "$1" = "nondestructive" ] ; then
32 + # Self destruct!
33 + unset -f deactivate
34 + fi
35 +}
36 +
37 +# unset irrelevant variables
38 +deactivate nondestructive
39 +
40 +VIRTUAL_ENV="C:\Users\tjsdk\Desktop\5학년 1학기\캡스톤디자인2\returnFarmvenv"
41 +export VIRTUAL_ENV
42 +
43 +_OLD_VIRTUAL_PATH="$PATH"
44 +PATH="$VIRTUAL_ENV/Scripts:$PATH"
45 +export PATH
46 +
47 +# unset PYTHONHOME if set
48 +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
49 +# could use `if (set -u; : $PYTHONHOME) ;` in bash
50 +if [ -n "${PYTHONHOME:-}" ] ; then
51 + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
52 + unset PYTHONHOME
53 +fi
54 +
55 +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
56 + _OLD_VIRTUAL_PS1="${PS1:-}"
57 + if [ "x(returnFarmvenv) " != x ] ; then
58 + PS1="(returnFarmvenv) ${PS1:-}"
59 + else
60 + if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
61 + # special case for Aspen magic directories
62 + # see http://www.zetadev.com/software/aspen/
63 + PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
64 + else
65 + PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
66 + fi
67 + fi
68 + export PS1
69 +fi
70 +
71 +# This should detect bash and zsh, which have a hash command that must
72 +# be called to get it to forget past commands. Without forgetting
73 +# past commands the $PATH changes we made may not be respected
74 +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
75 + hash -r
76 +fi
1 +@echo off
2 +
3 +rem This file is UTF-8 encoded, so we need to update the current code page while executing it
4 +for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do (
5 + set "_OLD_CODEPAGE=%%a"
6 +)
7 +if defined _OLD_CODEPAGE (
8 + "%SystemRoot%\System32\chcp.com" 65001 > nul
9 +)
10 +
11 +set "VIRTUAL_ENV=C:\Users\tjsdk\Desktop\5학년 1학기\캡스톤디자인2\returnFarmvenv"
12 +
13 +if not defined PROMPT (
14 + set "PROMPT=$P$G"
15 +)
16 +
17 +if defined _OLD_VIRTUAL_PROMPT (
18 + set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
19 +)
20 +
21 +if defined _OLD_VIRTUAL_PYTHONHOME (
22 + set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
23 +)
24 +
25 +set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
26 +set "PROMPT=(returnFarmvenv) %PROMPT%"
27 +
28 +if defined PYTHONHOME (
29 + set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
30 + set PYTHONHOME=
31 +)
32 +
33 +if defined _OLD_VIRTUAL_PATH (
34 + set "PATH=%_OLD_VIRTUAL_PATH%"
35 +) else (
36 + set "_OLD_VIRTUAL_PATH=%PATH%"
37 +)
38 +
39 +set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%"
40 +
41 +:END
42 +if defined _OLD_CODEPAGE (
43 + "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
44 + set "_OLD_CODEPAGE="
45 +)
1 +@echo off
2 +
3 +if defined _OLD_VIRTUAL_PROMPT (
4 + set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
5 +)
6 +set _OLD_VIRTUAL_PROMPT=
7 +
8 +if defined _OLD_VIRTUAL_PYTHONHOME (
9 + set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
10 + set _OLD_VIRTUAL_PYTHONHOME=
11 +)
12 +
13 +if defined _OLD_VIRTUAL_PATH (
14 + set "PATH=%_OLD_VIRTUAL_PATH%"
15 +)
16 +
17 +set _OLD_VIRTUAL_PATH=
18 +
19 +set VIRTUAL_ENV=
20 +
21 +:END
No preview for this file type
1 +#!c:\users\tjsdk\desktop\5학년 1학기\캡스톤디자인2\returnfarmvenv\scripts\python.exe
2 +from django.core import management
3 +
4 +if __name__ == "__main__":
5 + management.execute_from_command_line()
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1 +home = C:\Users\tjsdk\AppData\Local\Programs\Python\Python37-32
2 +include-system-site-packages = false
3 +version = 3.7.3
No preview for this file type