선생님,안녕하세요 다음과 같은 오류가 발생했는데 어떻게 해결해야할까요? Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 3.0.14 Python Version: 3.9.7 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'blog1'] 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 (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\sessions\backends\base.py", line 199, in _get_session return self._session_cache During handling of the above exception ('SessionStore' object has no attribute '_session_cache'), another exception occurred: File "C:\ProgramData\Anaconda3\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\ProgramData\Anaconda3\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\ProgramData\Anaconda3\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\admin\sites.py", line 249, in wrapper return self.admin_view(view, cacheable)(*args, **kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\django\utils\decorators.py", line 130, in _wrapped_view response = view_func(request, *args, **kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\django\views\decorators\cache.py", line 44, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\admin\sites.py", line 220, in inner if not self.has_permission(request): File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\admin\sites.py", line 194, in has_permission return request.user.is_active and request.user.is_staff File "C:\ProgramData\Anaconda3\lib\site-packages\django\utils\functional.py", line 224, in inner self._setup() File "C:\ProgramData\Anaconda3\lib\site-packages\django\utils\functional.py", line 360, in _setup self._wrapped = self._setupfunc() File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\auth\middleware.py", line 24, in <lambda> request.user = SimpleLazyObject(lambda: get_user(request)) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\auth\middleware.py", line 12, in get_user request._cached_user = auth.get_user(request) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\auth\__init__.py", line 173, in get_user user_id = _get_user_session_key(request) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\auth\__init__.py", line 58, in _get_user_session_key return get_user_model()._meta.pk.to_python(request.session[SESSION_KEY]) File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\sessions\backends\base.py", line 64, in __getitem__ return self._session[key] File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\sessions\backends\base.py", line 204, in _get_session self._session_cache = self.load() File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\sessions\backends\db.py", line 44, in load return self.decode(s.session_data) if s else {} File "C:\ProgramData\Anaconda3\lib\site-packages\django\contrib\sessions\backends\base.py", line 110, in decode encoded_data = base64.b64decode(session_data.encode('ascii')) File "C:\ProgramData\Anaconda3\lib\base64.py", line 87, in b64decode return binascii.a2b_base64(s) Exception Type: Error at /admin/ Exception Value: Incorrect padding
안녕하세요~ 강사님! 미니수업 제공해 주셔서 너무 공부 잘하고 있습니다! 감사합니다. 강의 듣던 도중 3가지 질문이 생겨서 뒤에 진도를 못 나가고 있습니다 ㅠㅠ [주요 SQL 해설] 이메일 분석 관련 쿼리 13초 쯤에 1. LEFT JOIN tutorial.yammer_emails e2 를 작성하셨는데, e1랑, Table 이름이 tutorial.yammer_emails 로 동일한데, 왜 e2으로 한번 더 쓰는지 궁금합니다. 2. FROM tutorial.yammer_emails e1 LEFT JOIN tutorial.yammer_emails e2 ON e2.occurred_at BETWWEN e1.occurred_at AND e1.occurred_at + INTERVAL '5 MINUTE' 이 부분에서 들여쓰기도 어떻게 해석을 하고 얼만큼 들여 써야 하는지도 궁금합니다. 3. LEFT JOIN 을 쓴 같은 라인에, e1이 있는데, 그러면 해석을 tutorial.yammer_emails 의 LEFT JOIN 을 의미하나요? LEFT JOIN은 그럼 어디를 말하는건가요?
선생님, 안녕하세요 :) 로그인 폼과 회원가입 폼의 버튼의 label 변경이 되지 않습니다. 분명 제가 오타를 낸 것 같은데, 아무리 선생님의 예제랑 비교해도 다른 부분을 찾을 수가 없어서 사소한 내용이지만 질문 드립니다. 귀찮게 해드리는 것 같아 죄송해요ㅠㅠㅠㅠㅠㅠ 1. _form.html {% load bootstrap4 %} < form action ="" method ="post" enctype ="multipart/form-data" > {% csrf_token %} {% bootstrap_form form %} {% buttons %} < button type ="submit" class ="btn btn-primary" > {{ submit_label | default : "Submit" }} </ button > {% endbuttons %} </ form > 2. login_form.html {% extends "accounts/layout.html" %} {% block content %} < div class ="container" > < div class ="row" > < div class ="col-sm-6 offset-sm-3" > {% include "_form.html" with submit_lable = "로그인" %} </ div > </ div > </ div > {% endblock content %} 3. 로그인 페이지 화면
안녕하세요 강사님 강의 정말 잘 듣고 있습니다 제가 고민을 해봐도 해결되지 않는 내용이 있어서 질문을 드립니다 제가 유저 개인정보 변경 이력 테이블을 만들려고 하는데요 유저 개인정보는 관리자가 관리자 페이지를 통해서 변경할 수도 있고 사용자가 직접 마이 페이지를 통해 변경할 수도 있습니다 예를 들어 바뀔 수 있는 항목 3개라 치고 A, B, C라고 칭한다면 (항목은 이메일, 담당자 이름, 근무지, 근무 상태 같은 것들입니다) 변경 전 before A, before B, before C 변경 후 after A, after B, after C 변경일자 xxxx.xx.xx 개인정보가 변경 될 때마다 데이터가 쌓여, 변경일자 내림차순으로 화면에 보여지는 방식입니다 A만 변경했다고 하더라도 A, B, C는 전부 표기되어야 합니다 1. 이력 관리는 1개의 테이블에 같이 저장하면서 대신 컬럼 하나 추가해서 개인정보를 관리자가 변경했으면 1, 사용자가 변경했으면 2 이런 식으로 플래그를 주려고 합니다 이러한 방식으로 설계하는 게 맞다고 생각은 되는데 혹시 요구사항에 따라서 2개의 테이블(관리자가 이력 관리한 테이블, 사용자가 이력 관리한 테이블)로 분리해서 각각 저장하는 방식으로 설계하는 경우도 있을지 궁금합니다 2. 만약에 화면에 보여지는 그대로 before, after, 변경일자 테이블 컬럼을 생성한다면 설계는 쉽겠지만 추후 변경할 수 있는 개인정보 항목이 더 늘어날 걸 생각하면 확장성이 좋지 못하고 또 1개 항목만 바꾸고 저장했을 때도 전부 다 DB에 저장하는 거는 더미 데이터가 많이 쌓여서 좋지 못할 것 같습니다 이력 관리 테이블 설계에 대해서 혹시 조언해주실 수 있는 점이 있으실까요?
1. 첫번째 동그라미와 같이 만들려면 file : <input type ~ >이런게 붙어있어야 하는지 궁금합니다. 2. get방식으로 넘겨주면 쿼리형태?로 넘어간다 하셔서 다음과 같은 사이트가 있어 get방식으로 해보았는데 post와 똑같이 결과가 나왔습니다. 이유가 궁금합니다..!
다름이 아니라 제가 프로젝트를 만들려고 이제 막 https://start.spring.io/여기서 프로젝트를 생성했는데 여기서 Artifact 이름을 본 강의와 똑같은 core로 해서 그런지 이 프로젝트에서 build.gradle을 실행한 뒤로 본 강의에서 생성한 hello.core의 파일들이 다 다 이런 식으로 애노테이션 부분하고 import부분에 springframework부분이 오류가 다 나버렸는데 혹시 이게 어떤 게 원인이고 이걸 어떻게 고칠 수 있는지 알 수 있을까요....?
(처음부터 다시 한번 해보겠습니다..) 클러스터에 있는 host들을 다 삭제하고 다시 host 추가를 한 상황입니다. inspector의 몇가지가 경고 문구가 뜬 것중에 ... 설명이나 꼭 교체되어야 하는 것이 있다면 코멘트 부탁드려도 될까요 ?! 설정문제는 괜찮을 것 같은데, 버전이 안맞는 것들은 수정이 필요해 보여서요 !! Supervisord, Java, Postgresql
강사님 공지 + 다른분들도 서버 실행시 에러나는 케이스가 많은 것 같아 저의 케이스를 공유드립니다. 결론 : 스프링 클라우드 버전 변경 <spring-cloud.version> 2020.0.1 </spring-cloud.version> 기타 TMI https://start.spring.io/ 에서는 스프링 부트 최신 버전만 있어서 일단 2.5.X 로 받으면 스프링 클라우드 버전도 자동으로 최신 버전(2020.0.5)으로 만들어집니다. 버전 이슈로 인한 실습에 문제가 없도록 강의 초반부 영상을 따라 모든 프로젝트를 스프링 부트 2.4.2 버전으로 다운그레이드 합니다. 이렇게하니 Spring Cloud Config 섹션 전까지는 문제가 없었네요. Config 섹션에서 ecommerce.yml 설정 파일을 못읽는 문제가 발생하더라구요. 거의 하루종일 삽질하면서 손을 놓으려할때... 스프링 클라우드 버전을 다운 그레이드하니 문제가 없었습니다. 그래서 이 부분은 해결 되었고... 이 강의까지 오면서 문제없다가 RabbitMQ 설정하고 서버 실행시키는데 공지와 다른 질문자들처럼 에러가 나더라구요. config-service는 잘 올라가는데 user-service, apigateway-service는 안올라가서 또 원인 파악하다가 스프링 클라우드 버전 2020.0.1로 바꾸니 잘 됩니다. 스프링 부트 버전보다는 스프링 클라우드 버전이 중요한것 같습니다. 강사님 git에 있는 소스도 참고해보니 2020.0.0 이더라구요. 모두 화이팅하세요~!
The online business is increasing day by day and if you are interested in getting a promotion of your website, then you will need to take the help of top professional experts who can help you to have an appealing website. People have started preferring online websites for doing shopping instead of choosing the local markets because they get reliable services at online websites. If you also want to start or expand your online shopping business, then you can hire a professional website designing company in India . There should be several payment options for the customers so that they can choose the best for themselves. The customers can use their debit cards/credit cards, net banking, Paytm, and various other options to make payments for the products they purchase from online websites. Better payment gateway options will automatically help you to own a website with a high number of customers. The number of customers will keep increasing when they will choose to get their choice of payment options on your shopping website. The shopping carts are beneficial for you in every way as the customers would save items in the cart which they can purchase later. The shopping cart option would keep reminding them of purchasing those particular products. The items saved in the shopping cart would help you to get your sales enhanced within some days. product management If you want to manage products on an online website, then you should take the help of a professional website design company in Noida where there are a number of customers who can help you to earn profits. When the products would be managed perfectly, then the customers would be able to get the opportunity to purchase the products more easily. They won't have to search for similar kinds of products because they would automatically get the products in fronts of the same as the one searched by them. If you are interested in hiring professional eCommerce website services, then you can choose to search for them on an online platform. You won't need to pay a high amount of money for getting web designing services. You would be able to get the services at reasonable prices whenever you will look for a trusted company professional. If you are interested in getting immediate services, then no one can stop you from enjoying a high amount of sales because the professionals will make sure that you get services as soon as possible. They will try to complete work before the completion of the deadline. These are the services provided by the professional web design services which you will get from the best website development company in India . Having a perfect eCommerce website would help you to enjoy a higher amount of sales without much hassle. You won't need to do anything other than hire the professionals because the rest of the work will be done by them and you can also discuss the type of work you want to get done by them. If you want to manage products on an online website, then you should take the help of a professional website design company in India where several customers can help you to earn profits. When the products would be managed perfectly, then the customers would be able to get the opportunity to purchase the products more easily.
안녕하세요. 윈도우에서 H2 데이터베이스를 사용하다 궁금증이 생겨 질문 남깁니다. 사용 OS: 윈도우 11 사용 터미널 : Window terminal(리눅스) 터미널을 이용해서 ./h2.sh 를 실행하면 http://127.0.0.1로 열려 브라우저가 열리지 않는데 이것을 바로 localhost가 열리게 하는 방법이 따로 있는 것일까요? 저 주소를 localhost로 바꾸면 실행은 잘 됩니다. cat으로 h2.sh 파일을 확인해보니 dir=$(dirname "$0") java -cp "$dir/h2-1.4.200.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "$@" 위와 같은 내용입니다. 여기서 $CLASSPATH가 경로인것 같은데 CLASSPATH경로는 수정을 하지 못하는 것인가요?