start project
This commit is contained in:
0
main/__init__.py
Normal file
0
main/__init__.py
Normal file
BIN
main/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
main/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
main/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/admin.cpython-310.pyc
Normal file
BIN
main/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/admin.cpython-311.pyc
Normal file
BIN
main/__pycache__/admin.cpython-311.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/apps.cpython-310.pyc
Normal file
BIN
main/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/apps.cpython-311.pyc
Normal file
BIN
main/__pycache__/apps.cpython-311.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/models.cpython-310.pyc
Normal file
BIN
main/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/models.cpython-311.pyc
Normal file
BIN
main/__pycache__/models.cpython-311.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/urls.cpython-310.pyc
Normal file
BIN
main/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
main/__pycache__/urls.cpython-311.pyc
Normal file
BIN
main/__pycache__/urls.cpython-311.pyc
Normal file
Binary file not shown.
3
main/admin.py
Normal file
3
main/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
main/apps.py
Normal file
6
main/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MainConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'main'
|
3
main/models.py
Normal file
3
main/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
main/tests.py
Normal file
3
main/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
31
main/urls.py
Normal file
31
main/urls.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# urls.py
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from users.views import UserViewSet, DailyRewardViewSet, DailyRewardsListViewSet, BalanceViewSet, LevelsViewSet
|
||||
from tapdata.views import FarmingViewSet
|
||||
from stacking.views import UserStakeViewSet, StakeViewSet
|
||||
|
||||
|
||||
""" from tapdata.views import TapDataViewSet
|
||||
from stacking.views import UserStakeViewSet, StakeViewSet """
|
||||
|
||||
|
||||
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r'users', UserViewSet)
|
||||
router.register(r'dailyreward', DailyRewardViewSet)
|
||||
router.register(r'dailyrewardlist', DailyRewardsListViewSet)
|
||||
router.register(r'balance', BalanceViewSet)
|
||||
router.register(r'levels', LevelsViewSet)
|
||||
router.register(r'farming', FarmingViewSet)
|
||||
router.register(r'stacking', UserStakeViewSet)
|
||||
router.register(r'stake', StakeViewSet)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('api/', include(router.urls)),
|
||||
]
|
3
main/views.py
Normal file
3
main/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Reference in New Issue
Block a user