Begin implementing positions
This commit is contained in:
24
app/urls.py
24
app/urls.py
@@ -21,7 +21,7 @@ from django.urls import include, path
|
||||
from django.views.generic import TemplateView
|
||||
from django_otp.forms import OTPAuthenticationForm
|
||||
|
||||
from core.views import accounts, base, callbacks, hooks, trades
|
||||
from core.views import accounts, base, callbacks, hooks, trades, positions
|
||||
from core.views.stripe_callbacks import Callback
|
||||
|
||||
urlpatterns = [
|
||||
@@ -115,4 +115,26 @@ urlpatterns = [
|
||||
trades.TradeAction.as_view(),
|
||||
name="trade_action",
|
||||
),
|
||||
path("positions/<str:type>/", positions.Positions.as_view(), name="positions"),
|
||||
# path("trades/<str:type>/add/", trades.TradeAction.as_view(), name="trade_action"),
|
||||
path(
|
||||
"positions/<str:type>/<str:account_id>/",
|
||||
positions.Positions.as_view(),
|
||||
name="positions",
|
||||
),
|
||||
# path(
|
||||
# "trades/<str:type>/add/<str:name>/",
|
||||
# trades.TradeAction.as_view(),
|
||||
# name="trade_action",
|
||||
# ),
|
||||
# path(
|
||||
# "trades/<str:type>/del/<str:trade_id>/",
|
||||
# trades.TradeAction.as_view(),
|
||||
# name="trade_action",
|
||||
# ),
|
||||
# path(
|
||||
# "trades/<str:type>/edit/<str:trade_id>/",
|
||||
# trades.TradeAction.as_view(),
|
||||
# name="trade_action",
|
||||
# ),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user