start project

This commit is contained in:
2024-08-29 14:21:58 +05:00
commit 456b5cdf3c
126 changed files with 1269 additions and 0 deletions

0
main/__init__.py Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

3
main/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
main/apps.py Normal file
View 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
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
main/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

31
main/urls.py Normal file
View 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
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.