Site for study
parksjin01 / 2017- Goto Github PK
View Code? Open in Web Editor NEWNLP language education
NLP language education
Site for study
λ΄μ 보 ννμμ
Messages μ°μΈ‘ λ보기 ν΄λ¦μ
Page not found μλ¬κ° λμ΅λλ€
Request Method: POST
Request URL: http://192.168.43.41:8891/read/
Django Version: 1.10.5
Python Version: 2.7.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'LangPi']
Installed 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']
Traceback:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Volumes/UUI/2017-/MyLang/LangPi/views.py" in reading
331. score = read(request.POST.get('foreign'), request.POST.get('kor'))
File "/Volumes/UUI/2017-/MyLang/LangPi/reading.py" in read
44. answer.append(unicode(Translate(string, 'en', 'ko')))
File "/Volumes/UUI/2017-/MyLang/LangPi/reading.py" in Translate
21. result = Translate_Google_without_API.translate(string, src, dst)
File "/Volumes/UUI/2017-/MyLang/LangPi/Reading/Translate_Google_without_API.py" in translate
20. display = Display(visible=0, size=(800, 800))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyvirtualdisplay/display.py" in __init__
34. self._obj = self.display_class(
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyvirtualdisplay/display.py" in display_class
52. cls.check_installed()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyvirtualdisplay/xvfb.py" in check_installed
38. ubuntu_package=PACKAGE).check_installed()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/easyprocess/__init__.py" in check_installed
180. raise EasyProcessCheckInstalledError(self)
Exception Type: EasyProcessCheckInstalledError at /read/
Exception Value: cmd=['Xvfb', '-help']
OSError=[Errno 35] Resource temporarily unavailable
Program install error! ```
λΉλ‘κ·ΈμΈν
λͺ¨λ κ²μν(곡μ§μ¬ν, μμ κ²μν, Q&A, κ°λ°μμκ²)μμ κΈμ°κΈ° ν΄λ¦ λλ₯΄λ©΄
AttributeError κ° λμ΅λλ€.
λͺ¨λ μΉΈμ μ
λ ₯ν
your password is duplicated with others
λΌλ λ©νΈκ° λΉλλ€.
passwordλ₯Ό κ°κ² μ λ ₯νλλ°λ λΆκ΅¬νκ³ μ€λ³΅λλ€λ λ©νΈκ° λ¨λκ² μ΄ν΄κ° κ°μ§ μμ΅λλ€.
λ‘κ·ΈμΈμ νμ§ μμμνμμ
κ²μνμ κΈμ λ€μ΄κ°κ² λλ©΄
AttributeError κ° λμ΅λλ€.
μ λμ½λλ‘ μ
λ ₯μ μμ κ° λμ§μλ νμμ΄ λ°μνμμ΅λλ€.
ex) 'and 1=1
λ¨μ΄ μΆκ°μμ 곡백μ λ ₯ν μΆκ°κ° κ°λ₯ν©λλ€.
Sometimes Selenium module occur some kinds of error
So I will change selenium module to urllib module
λ€λ₯Έ μ¬μ©μλ‘ λ‘κ·ΈμΈ ν μμ μ νμ¬λ
μμ μ΄ κ°λ₯ν©λλ€.
λ§μ΄νμ΄μ§>λ¨μ΄>μ’μμ!/μ«μ΄μ! λΆλΆ μ¬μ©μμΆκ°λ¨μ΄λΆλΆμ΄ λΉ μ Έμμ΅λλ€
μ’μμ!/μ«μ΄μ! κ° μλνμ§ μμ΅λλ€(μΌλ³Έμ΄test)
λ¨μ΄ testκ° κ·Έλ₯ μν°μ
λ ₯μ DoesNotError
λ¨μ΄μΆκ° ν μ€λ₯Έμͺ½μλ¨νμ΄ ν΅μ§Έλ‘ μ¬λΌμ‘μ΅λλ€.(/add/vocabulary/)
λ¨μ΄μΆκ° ν λ§μ΄νμ΄μ§μμ μ λλ‘ μΆκ°λμ΄μμ§ μμ΅λλ€.
IDμ Password μ
λ ₯ ν
λ±λ‘λμ΄μμ§ μμ IDμ νλ¦° Passwordλ₯Ό μ
λ ₯νμ¬λ
μλ¬΄λ° κ²½κ³ λ¬Έκ΅¬κ° λ¨μ§μλλ°,
λ±λ‘λμ΄μμ§μμ IDμ΄κ±°λ Passwordλ₯Ό μλͺ»μ
λ ₯νμμ΅λλ€.
λΌλ μμ λ¬Έκ΅¬κ° λμμΌλ©΄ μ’κ² μ΅λλ€.
ν΄μ, λ¨μ΄νκ° κ΄ν΄λ§κΈ°
λ΄μ©μ κΈ°λ³Έκ°μ΄ μμ±λμμμλ‘ λμ΄μμ§λ§
μ λͺ©μ κΈ°λ³Έκ°μ΄ κ²μν μΌλ‘ λμ΄μμ΅λλ€.
μ΄λ κΈ°λ³Έκ°μ μμ±νκ²μΌλ‘ νμμΌλ©΄ ν©λλ€.
μ½κΈ° μΉ΄ν κ³ λ¦¬μμ κ·Έλνμ μ μλ°μμ΄ λμ§ μμ΅λλ€.
κ²μνμ΄ νλ μμμΌλ©΄ μ’κ² μ΅λλ€.
μ©λ
λ±λ±
μμ΄λ μ€λ³΅ νμΈ x(μμ΄λ λ³κ²½μ°½μμ)
λ¨μ΄ μ±μ λ¨μ΄ νλ ν΄λ¦ν μ±μ νλ©΄ μλ¬
μμ΄μΈμ λ€λ₯Έλ¨μ΄ μνλ³Όλ λ¨μ΄μνκ°μκ° 20κ°κ° μλ λΆμ‘±ν κ²½μ°κ°μμ΅λλ€.
μ’μμ/μ«μ΄μ λ¨μ΄ μΆμ²/λΉμΆμ²νλλ°λ μλ¦Όμ΄ μμ΅λλ€.
λΉκ³΅κ°λ²νΌ -> μ€μ (무λ°μ)
λ§μ΄νμ΄μ§μ μ€μ λ²μλ₯Ό μ€μ ν΄λ λ°μλμ§ μμ΅λλ€.
μ’μμ/μ«μ΄μ μ’μμ λ§ μμ ν μ«μ΄μμ λͺ¨λ λ¨μ΄λ€μ΄ μμ λμ΄μμ΅λλ€.
μ’μμ/μ«μ΄μ μ€ 1κ°λ§ μ λΆ μμ ν΄λ μ°½μ΄ μ΄λ¦¬μ§ μμ΅λλ€.
λ£κΈ° μλ§μ μλͺ» μ°Ύμμ€λ κ²½μ°κ° μμ΅λλ€.
λ£κΈ° λΉμΉΈμ μΆμ μ€λ΅μ²λ¦¬ μλμ΄μμ
λκΈ μΆμ²/λΉμΆμ²κΈ°λ₯ λλ₯Όκ²½μ° attributeerror
νμΈμ μ μ νμ΄μ§ μ μ ν κ²μν>λκΈ ν΄λ¦μ IndexError
νμΈμ μ μ νμ΄μ§ μ μ ν κ²μν>μΆμ²νκ²μκΈ ν΄λ¦μ DoesNotExist
νμ¬μ©μκ° μμ νμμκ²½μ° κΆνμ΄ μμ΅λλ€. λΌλ λ©νΈκ° λμ€μ§λ§
κ·Έ ν μμ νλ μ°½μΌλ‘ λμ΄κ°ν μμ μ΄ κ°λ₯ν©λλ€.
λν ν μ¬μ©μκ° μμ λ κ°λ₯ν©λλ€.
λΉλ‘κ·ΈμΈμ Reading λΆλΆ μ¬μ©μ΄ κ°λ₯νλ°
Compare λ²νΌμ λλ₯΄λ©΄ λ‘κ·ΈμΈνλΌλ μ°½μ΄ λΉλλ€.
λ€λ₯Έ λ©λ΄μ°½μ²λΌ μ²μλΆν° λ‘κ·ΈμΈνλΌλ μ°½μ΄ λ³μΌλ©΄ ν©λλ€.
λ‘κ·ΈμΈ ν ννμ΄μ§μμ μμ μ μμ΄λλ₯Ό λ³Ό μ μμμΌλ©΄ μ’κ² μ΅λλ€.
μ°μΈ‘μλ¨νμ Mypage λ³΄λ€ @@@'s page λ‘ λ°κΎΈμμΌλ©΄ νλ ν¬λ§μ¬νμ
λλ€.
μ½κΈ° μ μ¬λ λΉκ΅ ν
[id]μ μ 보 κ° μλ
μ μ 보
λΌλ λ¬Έκ΅¬λ‘ λμ μμ΅λλ€.
##κΈμ°κΈ°
μμ μΆκ° ν μλ
λ£κΈ° νμμ μμμ΄ μΆκ°λμ΄μμ§ μμ΅λλ€.
E-mailμ μμ λλ 문ꡬκ°
Your validation key: AB=`!n<Iln
λ‘ λμ΄ μμ΅λλ€λ§, μ’ λ μμλ£κΈ° μ¬μ΄ λ¬Έκ΅¬λ‘ μμ μ΄ λμμΌλ©΄ ν©λλ€.
ID μ€λ³΅ν μ€λ³΅μ²΄ν¬λ₯Ό νλ©΄ μλ¬(λλ κ²½κ³ )λ¬Έκ΅¬κ° λ¨μ§λ§
κ·Έ μ¬λΆμ κ΄κ³μμ΄ IDκ° μ€λ³΅λμ΄μ κ°μ
μ΄ κ°λ₯ν©λλ€.
λν IDμΉΈμ 곡λμΌλ‘ λν νμκ°μ
μ νμ¬λ
νμκ°μ
μ΄ κ°λ₯ν©λλ€.
νμ¬ μμ΄λ/λΉλ°λ²νΈ λ³κ²½μ μμ΄λ μ μ΄λ©μΌ μ μ¬μ λ ₯νκ² λμ΄μλλ°,
λΉλ°λ²νΈ μ λ ₯νλ λ°©λ²μΌλ‘ λ°λμμΌλ©΄ μ’κ² μ΅λλ€.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.