장고는 코드를 블로그에 올리기엔 지나치게 방대해서 손을 못댔다.
그냥 간간히 느끼는걸 올리고자 한다.
오..... 졸라 멘붕되네..?
이거 뭐 어디서 어떻게 부터 손대야하냐?
진짜 django는 개발을 시작한지 이제막 한달이 되어가고있는 내 입장에선
1. 파이썬 기반의
2. 장고를 쓰는데
3. 여기에는 95%가 html로 구현된다.
4. 나머지 5%는 자바, css등으로.
정말 이계 연계성이 오지다보니깐 뭐 어떻게 코드고 자시고 올리기도 어렵네;
현재 내가 건드리고 있는 프로젝트가 가시적으론 매우 간편한것같은데
몇페이지~몇십페이지가 엮여있다;
한페이지에 심하면 몇백줄까지 가니깐 어......
이게 언제쯤 적응될까?
적응될때쯤엔 다른게 다가오지 않을까?
그렇게 생각할 만한 이유가
여태까지
1. 파이썬
2. 깃
3. javascript
4. html
5. css
6. django
를 알려주셨다. 무려 한달이 안되는 시간동안에;
20일정도 강의를 했다.
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
그러고보면 어이없어서 웃음만 나온다.
그래도 뭐.
코드를 볼때 이해하려는 노력은 최소한으로 한다.
최소한의 노력으로 이해가 가는것은 다행이지만 그렇지 않은것은
이해될때까지 무한 인풋할 예정이다.
왠지 그래야할것같으니깐
====================
그나저나 django 지금 책보면서 따라하는 중인데
어디서부터 손대야할지를 모르겠다;
아래의 것이 에러 코드인데, 뭔가 맨 밑부터 손대면 댈것같으면서도
그쪽엔 아무런 코드가 없다;
심지어 from으로도 쓰이고 form으로도, forms로도 쓰였으니
오타가 있을법도 한데 어디에 있을까?
갈아엎어야할까 처음부터 차근차근 다시 봐야할까?
하.... ㅋㅋㅋㅋㅋㅋㅋㅋ
(mysite) C:\projects\mysite>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\venvs\mysite\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\venvs\mysite\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:\venvs\mysite\lib\site-packages\django\core\management\base.py", line 392, in check
all_issues = checks.run_checks(
File "C:\venvs\mysite\lib\site-packages\django\core\checks\registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 408, in check
for pattern in self.url_patterns:
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\projects\mysite\config\urls.py", line 18, in <module>
from pybo import views
File "C:\projects\mysite\pybo\views.py", line 5, in <module>
from .forms import QustionForm
File "C:\projects\mysite\pybo\forms.py", line 1, in <module>
from django import froms
ImportError: cannot import name 'froms' from 'django' (C:\venvs\mysite\lib\site-packages\django\__init__.py)
(mysite) C:\projects\mysite>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\venvs\mysite\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\venvs\mysite\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:\venvs\mysite\lib\site-packages\django\core\management\base.py", line 392, in check
all_issues = checks.run_checks(
File "C:\venvs\mysite\lib\site-packages\django\core\checks\registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\venvs\mysite\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 408, in check
for pattern in self.url_patterns:
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 589, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\venvs\mysite\lib\site-packages\django\utils\functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\venvs\mysite\lib\site-packages\django\urls\resolvers.py", line 582, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Users\danie\AppData\Local\Programs\Python\Python38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\projects\mysite\config\urls.py", line 18, in <module>
from pybo import views
File "C:\projects\mysite\pybo\views.py", line 5, in <module>
from .forms import QustionForm
File "C:\projects\mysite\pybo\forms.py", line 1, in <module>
from django import froms
ImportError: cannot import name 'froms' from 'django' (C:\venvs\mysite\lib\site-packages\django\__init__.py)
'개발일지 > Django' 카테고리의 다른 글
Django - 필터처리 (1) | 2022.09.30 |
---|---|
Django - 동적 뷰, 라우팅 조작 (어려움) (0) | 2022.09.29 |
Django 어플리케이션 생성 및 실행 (어려움 주의) (1) | 2022.09.29 |
Django 프로젝트 생성 및 실행 (1) | 2022.09.29 |
Django 기본환경설정 (0) | 2022.09.27 |