Project using python/Cloning Airbnb
-
Deploy django app on AWS EC2Project using python/Cloning Airbnb 2021. 4. 24. 22:57
AWS EC2(Amazon Elastic Computing Cloud)는 호스트에게 컴퓨팅을 대여해주는 클라우드 서비스다. 원하는 시스템과 컴퓨팅 파워를 선택하고 그에 해당하는 요금만 지불하면 된다. On-premise 서버보다 좋은 점은 저렴한 비용으로 서버를 탄력적으로 운용할 수 있다. EC2 생성 AWS Console 사이트에서 서비스 nav bar에서 EC2를 선택하자. 좌측에서 EC2를 선택하자. 우측에 '인스턴스 시작'을 클릭하자. 여러 가지 OS가 있는데 이 중 Ubuntu Server 20.04 LTS version을 선택한다. 각자 원하는 사양을 선택해도 좋은데, 나는 프리티어 버전인 t2.micro를 선택하겠다. '다음:인스턴스 세부 정보 구성'을 선택하자. 인스턴스 세부 정보 구성 단..
-
django create-message by FBVProject using python/Cloning Airbnb 2021. 4. 23. 17:19
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from . import views app_name = "conversations" urlpatterns = [ path( "conversation-list/", views.conversationList, name="conversation-list", ), ] templates pages/conversations/conversation_detail.html {% extends 'base.html' %..
-
django conversation-list by FBV with ListViewProject using python/Cloning Airbnb 2021. 4. 23. 17:05
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from . import views app_name = "conversations" urlpatterns = [ path( "conversation-list/", views.ConversationList.as_view(), name="conversation-list", ), ] templates pages/conversations/conversation_host_list.html {% extends ..
-
django conversations-list by FBVProject using python/Cloning Airbnb 2021. 4. 23. 16:55
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from . import views app_name = "conversations" urlpatterns = [ path( "conversation-list/", views.conversationList, name="conversation-list", ), ] Client pages/conversations/conversation_host_list.html {% extends 'base.html' %..
-
django conversation-detail by CBV with DetailViewProject using python/Cloning Airbnb 2021. 4. 23. 16:38
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from conversations import views app_name = "conversations" urlpatterns = [ path( "///", views.createConversation, name="create-conversation", ), path( "/conversation-detail/", views.ConversationDetailView.as_view(), name="con..
-
django fav-list by CBV with ListViewProject using python/Cloning Airbnb 2021. 4. 23. 16:02
url 설정 config/urls.py urlpatterns = [ path("lists/", include("lists.urls", namespace="lists")) ] lists/urls.py from django.urls import path from lists import views app_name = "lists" urlpatterns = [ path("favs/", views.FavsList.as_view(), name="favs"), ] CBV(Class Based View) lists/views.py CBV는 django에서 정의한 여러가지 View들을 이용한다. 그 중 ListView를 이용해서 fav-list page를 작성한다. ListView는 model을 꼭 정의해줘야 한다. 하..
-
django conversations-detail by FBVProject using python/Cloning Airbnb 2021. 4. 23. 15:38
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from . import views app_name = "conversations" urlpatterns = [ path( "//", views.createConversation, name="create-conversation", ), path( "/conversation-detail/", views.conversationDetail, name="conversation-detail", ), ] Cli..
-
django create-conversation by FBVProject using python/Cloning Airbnb 2021. 4. 23. 15:32
url 설정 config/urls.py urlpatterns = [ path("conversations/", include("conversations.urls", namespace="conversations")), ] conversations/urls.py from django.urls import path from . import views app_name = "conversations" urlpatterns = [ path( "//", views.createConversation, name="create-conversation", ), ] Client room_detail.html {% trans "Response rate" %} : 100% {% trans "Response time : In one..